certificates

package
v0.0.0-...-affaa53 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCertificatePreserver

func NewCertificatePreserver(clusterCertSecret types.NamespacedName, caCertSecret types.NamespacedName, secretsRepository secrets.Repository) *certificatePreserver

Types

type CSRProvider

type CSRProvider interface {
	CreateCSR(subject pkix.Name) (string, *rsa.PrivateKey, error)
}

func NewCSRProvider

func NewCSRProvider() CSRProvider

type Certificates

type Certificates struct {
	ClientKey []byte
	CRTChain  []byte
	ClientCRT []byte
	CaCRT     []byte
}

type Preserver

type Preserver interface {
	PreserveCertificates(certificates Certificates) error
}

type Provider

type Provider interface {
	GetClientCredentials() (*rsa.PrivateKey, *x509.Certificate, error)
	GetCACertificates() ([]*x509.Certificate, error)
}

func NewCertificateProvider

func NewCertificateProvider(clusterCertSecretName types.NamespacedName, caCertSecretName types.NamespacedName, secretsRepository secrets.Repository) Provider

Directories

Path Synopsis
Code generated by mockery v1.0.0.
Code generated by mockery v1.0.0.

Jump to

Keyboard shortcuts

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