certificatemanager

package
v1.7.14 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager added in v1.7.0

type Manager struct {
	// contains filtered or unexported fields
}

Manager will manage the way certificates are retrieved based in the given k8sClient and rootPath.

func NewManager

func NewManager(certsRootPath string, k8sClient k8sClient) *Manager

NewManager returns a new manager.

func (*Manager) GetSecretString added in v1.7.0

func (m *Manager) GetSecretString(ctx context.Context, secret *api.Secret, ns string) (string, error)

GetSecretString returns a secret string stored in a k8s secret

func (*Manager) GetSecrets added in v1.7.0

func (m *Manager) GetSecrets(ctx context.Context, secret *api.Secret, ns string) (string, map[string][]byte, error)

GetSecrets returns either local or k8s secrets, giving precedence for local secrets if configured. The 'ns' parameter is used as the secret namespace if 'secret.Namespace' is an empty string.

func (*Manager) GetTLSContext added in v1.7.0

func (m *Manager) GetTLSContext(ctx context.Context, tlsCtx *api.TLSContext, ns string) (ca, public, private string, err error)

GetTLSContext returns a new ca, public and private certificates found based in the given api.TLSContext.

Jump to

Keyboard shortcuts

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