Back to godoc.org

Package secretsmanager

v0.16.1
Latest Go to latest

The latest major version is .

Published: Aug 7, 2020 | License: Apache-2.0 | Module: github.com/jetstack/cert-manager

Index

type SecretData

type SecretData struct {
	PrivateKey, Certificate, CA []byte
}

SecretData is a structure wrapping private key, Certificate and CA data

type SecretsManager

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

func New

func New(
	kubeClient kubernetes.Interface,
	secretLister corelisters.SecretLister,
	enableSecretOwnerReferences bool,
) *SecretsManager

func (*SecretsManager) UpdateData

func (s *SecretsManager) UpdateData(ctx context.Context, crt *cmapi.Certificate, data SecretData) error

UpdateData will ensure the Secret resource contains the given secret data as well as appropriate metadata. If the Secret resource does not exist, it will be created. Otherwise, the existing resource will be updated. The first return argument will be true if the resource was updated/created without error. UpdateData will also update deprecated annotations if they exist.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier