pemfile

package
v0.0.0-...-4885f93 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package pemfile provides a file watching certificate provider plugin implementation which works for files with PEM contents.

Experimental

Notice: All APIs in this package are experimental and may be removed in a later release.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(o Options) (certprovider.Provider, error)

NewProvider returns a new certificate provider plugin that is configured to watch the PEM files specified in the passed in options.

Types

type Options

type Options struct {
	// CertFile is the file that holds the identity certificate.
	// Optional. If this is set, KeyFile must also be set.
	CertFile string
	// KeyFile is the file that holds identity private key.
	// Optional. If this is set, CertFile must also be set.
	KeyFile string
	// RootFile is the file that holds trusted root certificate(s).
	// Optional.
	RootFile string
	// CertRefreshDuration is the amount of time the plugin waits before
	// checking for updates in the specified identity certificate and key file.
	// Optional. If not set, a default value (1 hour) will be used.
	CertRefreshDuration time.Duration
	// RootRefreshDuration is the amount of time the plugin waits before
	// checking for updates in the specified root file.
	// Optional. If not set, a default value (2 hour) will be used.
	RootRefreshDuration time.Duration
}

Options configures a certificate provider plugin that watches a specified set of files that contain certificates and keys in PEM format.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL