Documentation
¶
Index ¶
- Variables
- type CertHandler
- type CertReconciler
- type CertReconcilerOpt
- func WithCA(shouldIssue bool, secretKey types.NamespacedName) CertReconcilerOpt
- func WithCABundle(secretKey mariadbv1alpha1.SecretKeySelector, namespace string) CertReconcilerOpt
- func WithCACommonName(commonName string) CertReconcilerOpt
- func WithCALifetime(lifetime time.Duration) CertReconcilerOpt
- func WithCASecretType(secretType SecretType) CertReconcilerOpt
- func WithCert(shouldIssue bool, secretKey types.NamespacedName, dnsNames []string) CertReconcilerOpt
- func WithCertExtKeyUsage(extKeyUsage ...x509.ExtKeyUsage) CertReconcilerOpt
- func WithCertHandler(certHandler CertHandler) CertReconcilerOpt
- func WithCertIssuerRef(issuerRef *cmmeta.ObjectReference) CertReconcilerOpt
- func WithCertKeyUsage(keyUsage x509.KeyUsage) CertReconcilerOpt
- func WithCertLifetime(lifetime time.Duration) CertReconcilerOpt
- func WithClientCertKeyUsage() CertReconcilerOpt
- func WithRelatedObject(obj RelatedObject) CertReconcilerOpt
- func WithRenewBeforePercentage(percentage int32) CertReconcilerOpt
- func WithServerCertKeyUsage() CertReconcilerOpt
- func WithSupportedPrivateKeys(privateKeys ...pki.PrivateKey) CertReconcilerOpt
- type CertReconcilerOpts
- type DefaultCertHandler
- type ReconcileResult
- type RelatedObject
- type SecretType
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrSkipCertRenewal = errors.New("skipping certificate renewal")
)
Functions ¶
This section is empty.
Types ¶
type CertHandler ¶
type CertReconciler ¶
func NewCertReconciler ¶
func (*CertReconciler) Reconcile ¶
func (r *CertReconciler) Reconcile(ctx context.Context, certOpts ...CertReconcilerOpt) (*ReconcileResult, error)
type CertReconcilerOpt ¶
type CertReconcilerOpt func(*CertReconcilerOpts)
func WithCA ¶
func WithCA(shouldIssue bool, secretKey types.NamespacedName) CertReconcilerOpt
func WithCABundle ¶
func WithCABundle(secretKey mariadbv1alpha1.SecretKeySelector, namespace string) CertReconcilerOpt
func WithCACommonName ¶
func WithCACommonName(commonName string) CertReconcilerOpt
func WithCALifetime ¶
func WithCALifetime(lifetime time.Duration) CertReconcilerOpt
func WithCASecretType ¶
func WithCASecretType(secretType SecretType) CertReconcilerOpt
func WithCert ¶
func WithCert(shouldIssue bool, secretKey types.NamespacedName, dnsNames []string) CertReconcilerOpt
func WithCertExtKeyUsage ¶
func WithCertExtKeyUsage(extKeyUsage ...x509.ExtKeyUsage) CertReconcilerOpt
func WithCertHandler ¶
func WithCertHandler(certHandler CertHandler) CertReconcilerOpt
func WithCertIssuerRef ¶
func WithCertIssuerRef(issuerRef *cmmeta.ObjectReference) CertReconcilerOpt
func WithCertKeyUsage ¶
func WithCertKeyUsage(keyUsage x509.KeyUsage) CertReconcilerOpt
func WithCertLifetime ¶
func WithCertLifetime(lifetime time.Duration) CertReconcilerOpt
func WithClientCertKeyUsage ¶
func WithClientCertKeyUsage() CertReconcilerOpt
func WithRelatedObject ¶
func WithRelatedObject(obj RelatedObject) CertReconcilerOpt
func WithRenewBeforePercentage ¶
func WithRenewBeforePercentage(percentage int32) CertReconcilerOpt
func WithServerCertKeyUsage ¶
func WithServerCertKeyUsage() CertReconcilerOpt
func WithSupportedPrivateKeys ¶
func WithSupportedPrivateKeys(privateKeys ...pki.PrivateKey) CertReconcilerOpt
type CertReconcilerOpts ¶
type CertReconcilerOpts struct {
// contains filtered or unexported fields
}
func NewDefaultCertificateOpts ¶
func NewDefaultCertificateOpts() *CertReconcilerOpts
func (*CertReconcilerOpts) CAx509Opts ¶
func (o *CertReconcilerOpts) CAx509Opts() ([]pki.X509Opt, error)
func (*CertReconcilerOpts) Certx509Opts ¶
func (o *CertReconcilerOpts) Certx509Opts() ([]pki.X509Opt, error)
func (*CertReconcilerOpts) KeyPairOpts ¶
func (o *CertReconcilerOpts) KeyPairOpts() []pki.KeyPairOpt
type DefaultCertHandler ¶
type DefaultCertHandler struct{}
func (*DefaultCertHandler) HandleExpiredCert ¶
func (h *DefaultCertHandler) HandleExpiredCert(ctx context.Context) error
func (*DefaultCertHandler) ShouldRenewCert ¶
type ReconcileResult ¶
func (*ReconcileResult) IsZero ¶
func (r *ReconcileResult) IsZero() bool
Click to show internal directories.
Click to hide internal directories.