Versions in this module Expand all Collapse all v0 v0.1.1 Apr 11, 2023 v0.1.0 Mar 27, 2023 Changes in this version + func CertificateFromConfig(cfg *rest.Config) (*tls.Certificate, error) + func ConfigWithCertificate(cfg *rest.Config, cert *tls.Certificate) (*rest.Config, error) + func DynamicCertificateConfig(cfg *rest.Config, getCertificate func() *tls.Certificate, ...) (*rest.Config, func(), error) + func IsConfigValid(cfg *rest.Config) bool + func RequestConfig(ctx context.Context, certCfg *rest.Config, signerName string, ...) (*rest.Config, error) + func UseOrRequestConfig(ctx context.Context, cfg *rest.Config, certCfg *rest.Config, signerName string, ...) (resCfg *rest.Config, newConfig bool, err error) + type ConfigRotator interface + AddListener func(listener ConfigRotatorListener) ConfigRotatorListenerRegistration + ClientConfig func() *rest.Config + Init func(ctx context.Context, force bool) error + RemoveListener func(reg ConfigRotatorListenerRegistration) + TransportConfig func() *rest.Config + func NewConfigRotator(cfg, bootstrapCfg *rest.Config, opts ConfigRotatorOptions) (ConfigRotator, error) + type ConfigRotatorListener interface + Enqueue func() + type ConfigRotatorListenerFunc func() + func (f ConfigRotatorListenerFunc) Enqueue() + type ConfigRotatorListenerRegistration interface + type ConfigRotatorOptions struct + DialFunc utilnet.DialFunc + ForceInitial bool + GetUsages func(privateKey any) []certificatesv1.KeyUsage + LogConstructor func() logr.Logger + Name string + NewCertificateRotator func(opts certificate.RotatorOptions) (certificate.Rotator, error) + RequestedDuration *time.Duration + SignerName string + Template *x509.CertificateRequest