core

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: Apache-2.0, MIT Imports: 18 Imported by: 0

Documentation

Index

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

func NormalizeNamespace(namespace string) string

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 (*CompoundHandler) DeletedSecret

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 IssuerHandler interface {
	Type() string
	CanReconcile(issuer *api.Issuer) bool
	Reconcile(logger logger.LogContext, obj resources.Object, issuer *api.Issuer) reconcile.Status
}

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) CalcSecretHash

func (s *Support) CalcSecretHash(secret *corev1.Secret) string

func (*Support) CertificateNamesForIssuer

func (s *Support) CertificateNamesForIssuer(issuer resources.ObjectName) []resources.ObjectName

func (*Support) DefaultIssuerDomainRanges

func (s *Support) DefaultIssuerDomainRanges() []string

func (*Support) DefaultIssuerName

func (s *Support) DefaultIssuerName() string

func (*Support) EnqueueKey

func (s *Support) EnqueueKey(key resources.ClusterObjectKey) error

func (*Support) Failed

func (s *Support) Failed(logger logger.LogContext, obj resources.Object, state string, itype *string, err error) reconcile.Status

func (*Support) GetDefaultClusterId

func (s *Support) GetDefaultClusterId() string

func (*Support) GetIssuerResources

func (s *Support) GetIssuerResources() resources.Interface

func (*Support) GetIssuerSecretHash

func (s *Support) GetIssuerSecretHash(issuer resources.ObjectName) string

func (*Support) GetIssuerSecretResources

func (s *Support) GetIssuerSecretResources() resources.Interface

func (*Support) IssuerNamesForSecret

func (s *Support) IssuerNamesForSecret(secretName resources.ObjectName) resources.ObjectNameSet

func (*Support) IssuerNamespace

func (s *Support) IssuerNamespace() string

func (*Support) ReadIssuerSecret

func (s *Support) ReadIssuerSecret(ref *corev1.SecretReference) (*corev1.Secret, error)

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 (s *Support) SucceededAndTriggerCertificates(logger logger.LogContext, obj resources.Object, itype *string, regRaw []byte) reconcile.Status

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)

Jump to

Keyboard shortcuts

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