Documentation ¶
Index ¶
- Constants
- func NewHandlerSupport(c controller.Interface, factories ...IssuerHandlerFactory) (*CompoundHandler, *Support, error)
- func NormalizeNamespace(namespace string) string
- type AssociatedObjects
- func (ao *AssociatedObjects) AddAssoc(src, dst resources.ObjectName)
- func (ao *AssociatedObjects) DestinationsAsArray(src resources.ObjectName) []resources.ObjectName
- func (ao *AssociatedObjects) DestinationsCount(src resources.ObjectName) int
- func (ao *AssociatedObjects) RemoveByDest(dst resources.ObjectName)
- func (ao *AssociatedObjects) RemoveBySource(src resources.ObjectName)
- func (ao *AssociatedObjects) Sources() []resources.ObjectName
- type CompoundHandler
- func (h *CompoundHandler) DeletedIssuer(logger logger.LogContext, key resources.ClusterObjectKey) reconcile.Status
- func (h *CompoundHandler) DeletedSecret(logger logger.LogContext, key resources.ClusterObjectKey) reconcile.Status
- func (h *CompoundHandler) ReconcileIssuer(logger logger.LogContext, obj resources.Object) reconcile.Status
- func (h *CompoundHandler) ReconcileSecret(logger logger.LogContext, obj resources.Object) reconcile.Status
- type Enqueuer
- type IssuerHandler
- type IssuerHandlerFactory
- type ReferencedSecrets
- func (rs *ReferencedSecrets) GetIssuerSecretHash(issuerName resources.ObjectName) string
- func (rs *ReferencedSecrets) IssuerNamesFor(secretName resources.ObjectName) resources.ObjectNameSet
- func (rs *ReferencedSecrets) RememberIssuerSecret(issuerName resources.ObjectName, secretRef *v1.SecretReference, hash string) bool
- func (rs *ReferencedSecrets) RemoveIssuer(issuerName resources.ObjectName) bool
- type Support
- func (s *Support) AddCertificate(logger logger.LogContext, cert *api.Certificate)
- func (s *Support) CalcSecretHash(secret *corev1.Secret) string
- func (s *Support) CertificateNamesForIssuer(issuer resources.ObjectName) []resources.ObjectName
- func (s *Support) DefaultIssuerDomainRanges() []string
- func (s *Support) DefaultIssuerName() string
- func (s *Support) EnqueueKey(key resources.ClusterObjectKey) error
- func (s *Support) Failed(logger logger.LogContext, obj resources.Object, state string, itype *string, ...) reconcile.Status
- func (s *Support) GetDefaultClusterId() string
- func (s *Support) GetIssuerResources() resources.Interface
- func (s *Support) GetIssuerSecretHash(issuer resources.ObjectName) string
- func (s *Support) GetIssuerSecretResources() resources.Interface
- func (s *Support) IssuerNamesForSecret(secretName resources.ObjectName) resources.ObjectNameSet
- func (s *Support) IssuerNamespace() string
- func (s *Support) ReadIssuerSecret(ref *corev1.SecretReference) (*corev1.Secret, error)
- func (s *Support) RememberIssuerSecret(issuer resources.ObjectName, secretRef *corev1.SecretReference, hash string)
- func (s *Support) RemoveCertificate(logger logger.LogContext, certObjName resources.ObjectName)
- func (s *Support) RemoveIssuer(name resources.ObjectName) bool
- func (s *Support) SucceededAndTriggerCertificates(logger logger.LogContext, obj resources.Object, itype *string, regRaw []byte) reconcile.Status
- func (s *Support) UpdateIssuerSecret(issuer metav1.ObjectMeta, reguser *legobridge.RegistrationUser, ...) error
- func (s *Support) WriteIssuerSecretFromRegistrationUser(issuer metav1.ObjectMeta, reguser *legobridge.RegistrationUser, ...) (*corev1.SecretReference, *corev1.Secret, error)
Constants ¶
View Source
const ( OptDefaultIssuer = "default-issuer" OptIssuerNamespace = "issuer-namespace" OptDNSNamespace = "dns-namespace" OptDNSOwnerId = "dns-owner-id" OptDefaultIssuerDomainRanges = "default-issuer-domain-ranges" OptRenewalWindow = "renewal-window" OptCascadeDelete = "cascade-delete" )
Variables ¶
This section is empty.
Functions ¶
func NewHandlerSupport ¶
func NewHandlerSupport(c controller.Interface, factories ...IssuerHandlerFactory) (*CompoundHandler, *Support, error)
func NormalizeNamespace ¶
Types ¶
type AssociatedObjects ¶
type AssociatedObjects struct {
// contains filtered or unexported fields
}
func NewAssociatedObjects ¶
func NewAssociatedObjects() *AssociatedObjects
func (*AssociatedObjects) AddAssoc ¶
func (ao *AssociatedObjects) AddAssoc(src, dst resources.ObjectName)
func (*AssociatedObjects) DestinationsAsArray ¶
func (ao *AssociatedObjects) DestinationsAsArray(src resources.ObjectName) []resources.ObjectName
func (*AssociatedObjects) DestinationsCount ¶
func (ao *AssociatedObjects) DestinationsCount(src resources.ObjectName) int
func (*AssociatedObjects) RemoveByDest ¶
func (ao *AssociatedObjects) RemoveByDest(dst resources.ObjectName)
func (*AssociatedObjects) RemoveBySource ¶
func (ao *AssociatedObjects) RemoveBySource(src resources.ObjectName)
func (*AssociatedObjects) Sources ¶
func (ao *AssociatedObjects) Sources() []resources.ObjectName
type CompoundHandler ¶
type CompoundHandler struct {
// contains filtered or unexported fields
}
func (*CompoundHandler) DeletedIssuer ¶
func (h *CompoundHandler) DeletedIssuer(logger logger.LogContext, key resources.ClusterObjectKey) reconcile.Status
func (*CompoundHandler) DeletedSecret ¶
func (h *CompoundHandler) DeletedSecret(logger logger.LogContext, key resources.ClusterObjectKey) reconcile.Status
func (*CompoundHandler) ReconcileIssuer ¶
func (h *CompoundHandler) ReconcileIssuer(logger logger.LogContext, obj resources.Object) reconcile.Status
func (*CompoundHandler) ReconcileSecret ¶
func (h *CompoundHandler) ReconcileSecret(logger logger.LogContext, obj resources.Object) reconcile.Status
type Enqueuer ¶
type Enqueuer interface {
EnqueueKey(key resources.ClusterObjectKey) error
}
type IssuerHandler ¶
type IssuerHandlerFactory ¶
type IssuerHandlerFactory func(support *Support) (IssuerHandler, error)
type ReferencedSecrets ¶
type ReferencedSecrets struct {
// contains filtered or unexported fields
}
func NewReferencedSecrets ¶
func NewReferencedSecrets() *ReferencedSecrets
func (*ReferencedSecrets) GetIssuerSecretHash ¶
func (rs *ReferencedSecrets) GetIssuerSecretHash(issuerName resources.ObjectName) string
func (*ReferencedSecrets) IssuerNamesFor ¶
func (rs *ReferencedSecrets) IssuerNamesFor(secretName resources.ObjectName) resources.ObjectNameSet
func (*ReferencedSecrets) RememberIssuerSecret ¶
func (rs *ReferencedSecrets) RememberIssuerSecret(issuerName resources.ObjectName, secretRef *v1.SecretReference, hash string) bool
func (*ReferencedSecrets) RemoveIssuer ¶
func (rs *ReferencedSecrets) RemoveIssuer(issuerName resources.ObjectName) bool
type Support ¶
type Support struct {
// contains filtered or unexported fields
}
func (*Support) AddCertificate ¶
func (s *Support) AddCertificate(logger logger.LogContext, cert *api.Certificate)
func (*Support) CertificateNamesForIssuer ¶
func (s *Support) CertificateNamesForIssuer(issuer resources.ObjectName) []resources.ObjectName
func (*Support) DefaultIssuerDomainRanges ¶
func (*Support) DefaultIssuerName ¶
func (*Support) EnqueueKey ¶
func (s *Support) EnqueueKey(key resources.ClusterObjectKey) error
func (*Support) GetDefaultClusterId ¶
func (*Support) GetIssuerResources ¶
func (*Support) GetIssuerSecretHash ¶
func (s *Support) GetIssuerSecretHash(issuer resources.ObjectName) string
func (*Support) GetIssuerSecretResources ¶
func (*Support) IssuerNamesForSecret ¶
func (s *Support) IssuerNamesForSecret(secretName resources.ObjectName) resources.ObjectNameSet
func (*Support) IssuerNamespace ¶
func (*Support) ReadIssuerSecret ¶
func (*Support) RememberIssuerSecret ¶
func (s *Support) RememberIssuerSecret(issuer resources.ObjectName, secretRef *corev1.SecretReference, hash string)
func (*Support) RemoveCertificate ¶
func (s *Support) RemoveCertificate(logger logger.LogContext, certObjName resources.ObjectName)
func (*Support) RemoveIssuer ¶
func (s *Support) RemoveIssuer(name resources.ObjectName) bool
func (*Support) SucceededAndTriggerCertificates ¶
func (*Support) UpdateIssuerSecret ¶
func (s *Support) UpdateIssuerSecret(issuer metav1.ObjectMeta, reguser *legobridge.RegistrationUser, secret *corev1.Secret) error
func (*Support) WriteIssuerSecretFromRegistrationUser ¶
func (s *Support) WriteIssuerSecretFromRegistrationUser(issuer metav1.ObjectMeta, reguser *legobridge.RegistrationUser, secretRef *corev1.SecretReference) (*corev1.SecretReference, *corev1.Secret, error)
Click to show internal directories.
Click to hide internal directories.