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.
Click to show internal directories.
Click to hide internal directories.