providers

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateProvider

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

CertificateProvider is the operator internal certificate provider

func NewCertificateProvider

func NewCertificateProvider(ctx context.Context, logger logr.Logger, client client.Client,
	scheme *runtime.Scheme, dsc *operatorv1alpha1.DiscoveryServiceCertificate) *CertificateProvider

NewCertificateProvider returns a CertificateProvider struct for the given parameters

func (*CertificateProvider) CreateCertificate

func (cp *CertificateProvider) CreateCertificate() ([]byte, []byte, error)

CreateCertificate creates a certificate with the config options defined in the spec of the DiscoveryServiceCertificate

func (*CertificateProvider) GetCertificate

func (cp *CertificateProvider) GetCertificate() ([]byte, []byte, error)

GetCertificate loads a certificate form the Secret referred in the DiscoveryServiceCertificate resource

func (*CertificateProvider) UpdateCertificate

func (cp *CertificateProvider) UpdateCertificate() ([]byte, []byte, error)

UpdateCertificate updates the certificate stored in the Secret referred in the DiscoveryServiceCertificate resource

func (*CertificateProvider) VerifyCertificate

func (cp *CertificateProvider) VerifyCertificate() error

VerifyCertificate verifies the validity of a certificate. Returns 'nil' if verification is correct, an error otherwise.

Jump to

Keyboard shortcuts

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