seal

package
v2.24.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BootstrapSealedSecrets

func BootstrapSealedSecrets(ctx context.Context, k *k8s.K8sCluster, namespace string) error

func FetchCert added in v2.15.0

func FetchCert(ctx context.Context, k *k8s.K8sCluster, namespace string, controllerName string) (*x509.Certificate, error)

func HashPublicKey added in v2.16.0

func HashPublicKey(cert *x509.Certificate) (string, error)

func HashSecret added in v2.16.0

func HashSecret(key string, secret []byte, secretName string, secretNamespace string, scope string) string

func ParseCert added in v2.15.0

func ParseCert(data []byte) (*x509.Certificate, error)

Types

type Sealer

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

func NewSealer

func NewSealer(ctx context.Context, cert *x509.Certificate, forceReseal bool) (*Sealer, error)

func (*Sealer) SealFile

func (s *Sealer) SealFile(p string, targetFile string) error

Jump to

Keyboard shortcuts

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