key

package
v0.0.0-...-b8726bf Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPrioCSRTemplate

func GetPrioCSRTemplate(commonName string) *x509.CertificateRequest

Types

type GCPSecretManagerBackup

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

GCPSecretManagerBackup backs up secrets in GCP Secret Manager

func NewGCPSecretManagerBackup

func NewGCPSecretManagerBackup(projectName string) (*GCPSecretManagerBackup, error)

NewGCPSecretManagerBackup creates a new GCPSecretManagerBackup using the provided GCP project name.

func (*GCPSecretManagerBackup) BackupSecret

func (b *GCPSecretManagerBackup) BackupSecret(ctxt context.Context, k8sSecret *k8sv1.Secret) error

BackupSecret backs up the provided Kubernetes secret into GCP Secret Manager, if it is not already backed up.

type PrioKey

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

func NewPrioKey

func NewPrioKey(key *ecdsa.PrivateKey) *PrioKey

func (*PrioKey) CreateCertificateRequest

func (p *PrioKey) CreateCertificateRequest(rand io.Reader, template *x509.CertificateRequest) (csr []byte, err error)

func (*PrioKey) CreatePemEncodedCertificateRequest

func (p *PrioKey) CreatePemEncodedCertificateRequest(rand io.Reader, template *x509.CertificateRequest) (string, error)

Jump to

Keyboard shortcuts

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