Documentation
¶
Index ¶
- Constants
- Variables
- func CertSourceController(source CertSourceType, reconcilerType controller.ReconcilerType) controller.Configuration
- func DomainsString(domains []string) string
- func MasterResourcesType(kind schema.GroupKind) reconcilers.Resources
- func SlaveReconcilerType(c controller.Interface) (reconcile.Interface, error)
- func SourceReconciler(sourceType CertSourceType, rtype controller.ReconcilerType) controller.ReconcilerType
- type CertCurrentState
- type CertFeedback
- type CertInfo
- type CertSource
- type CertSourceCreator
- type CertSourceType
- type CertState
- type CertTargetExtractor
- type CertsInfo
- type DefaultCertSource
- func (this *DefaultCertSource) Delete(logger logger.LogContext, obj resources.Object) reconcile.Status
- func (this *DefaultCertSource) Deleted(logger logger.LogContext, key resources.ClusterObjectKey)
- func (this *DefaultCertSource) GetCertsInfo(logger logger.LogContext, obj resources.Object, current *CertCurrentState) (*CertsInfo, error)
- func (this *DefaultCertSource) GetEvents(key resources.ClusterObjectKey) map[string]string
- func (this *DefaultCertSource) NewCertsInfo(logger logger.LogContext, obj resources.Object) *CertsInfo
- func (this *DefaultCertSource) Setup()
- func (this *DefaultCertSource) Start()
- type EventFeedback
Constants ¶
View Source
const ( // ANNOT_DNSNAMES annotation is shared with dns controller manager ANNOT_DNSNAMES = "dns.gardener.cloud/dnsnames" ANNOT_CLASS = "cert.gardener.cloud/class" ANNOT_FORWARD_OWNER_REFS = "cert.gardener.cloud/forward-owner-refs" ANNOT_SECRETNAME = "cert.gardener.cloud/secretname" ANNOT_ISSUER = "cert.gardener.cloud/issuer" OPT_CLASS = "cert-class" OPT_TARGETCLASS = "cert-target-class" OPT_NAMESPACE = "target-namespace" OPT_NAMEPREFIX = "target-name-prefix" DefaultClass = "gardencert" )
Variables ¶
View Source
var REQUEST = resources.NewGroupKind(api.GroupName, api.CertificateKind)
View Source
var SlaveResources = reconcilers.ClusterResources(ctrl.TargetCluster, REQUEST)
Functions ¶
func CertSourceController ¶
func CertSourceController(source CertSourceType, reconcilerType controller.ReconcilerType) controller.Configuration
func DomainsString ¶
func MasterResourcesType ¶
func MasterResourcesType(kind schema.GroupKind) reconcilers.Resources
func SlaveReconcilerType ¶
func SlaveReconcilerType(c controller.Interface) (reconcile.Interface, error)
func SourceReconciler ¶
func SourceReconciler(sourceType CertSourceType, rtype controller.ReconcilerType) controller.ReconcilerType
Types ¶
type CertCurrentState ¶
func (*CertCurrentState) ContainsSecretName ¶
func (s *CertCurrentState) ContainsSecretName(name string) bool
type CertFeedback ¶
type CertFeedback interface {
Succeeded()
Pending(info *CertInfo, msg string)
Ready(info *CertInfo, msg string)
Failed(info *CertInfo, err error)
}
func NewEventFeedback ¶
func NewEventFeedback(logger logger.LogContext, obj resources.Object, events map[string]string) CertFeedback
type CertInfo ¶
func (CertInfo) DomainsString ¶
type CertSource ¶
type CertSource interface {
Start()
Setup()
GetCertsInfo(logger logger.LogContext, obj resources.Object, current *CertCurrentState) (*CertsInfo, error)
Delete(logger logger.LogContext, obj resources.Object) reconcile.Status
Deleted(logger logger.LogContext, key resources.ClusterObjectKey)
}
type CertSourceCreator ¶
type CertSourceCreator func(controller.Interface) (CertSource, error)
type CertSourceType ¶
type CertSourceType interface {
Name() string
GroupKind() schema.GroupKind
Create(controller.Interface) (CertSource, error)
}
func NewCertSourceTypeForCreator ¶
func NewCertSourceTypeForCreator(name string, kind schema.GroupKind, handler CertSourceCreator) CertSourceType
func NewCertSourceTypeForExtractor ¶
func NewCertSourceTypeForExtractor(name string, kind schema.GroupKind, handler CertTargetExtractor) CertSourceType
type CertTargetExtractor ¶
type CertTargetExtractor func(logger logger.LogContext, obj resources.Object, current *CertCurrentState) (string, error)
type CertsInfo ¶
type CertsInfo struct {
Certs map[string]CertInfo
Feedback CertFeedback
}
type DefaultCertSource ¶
type DefaultCertSource struct {
Events map[resources.ClusterObjectKey]map[string]string
// contains filtered or unexported fields
}
func NewDefaultCertSource ¶
func NewDefaultCertSource(handler CertTargetExtractor, _ schema.GroupKind) DefaultCertSource
func (*DefaultCertSource) Delete ¶
func (this *DefaultCertSource) Delete(logger logger.LogContext, obj resources.Object) reconcile.Status
func (*DefaultCertSource) Deleted ¶
func (this *DefaultCertSource) Deleted(logger logger.LogContext, key resources.ClusterObjectKey)
func (*DefaultCertSource) GetCertsInfo ¶
func (this *DefaultCertSource) GetCertsInfo(logger logger.LogContext, obj resources.Object, current *CertCurrentState) (*CertsInfo, error)
func (*DefaultCertSource) GetEvents ¶
func (this *DefaultCertSource) GetEvents(key resources.ClusterObjectKey) map[string]string
func (*DefaultCertSource) NewCertsInfo ¶
func (this *DefaultCertSource) NewCertsInfo(logger logger.LogContext, obj resources.Object) *CertsInfo
func (*DefaultCertSource) Setup ¶
func (this *DefaultCertSource) Setup()
func (*DefaultCertSource) Start ¶
func (this *DefaultCertSource) Start()
type EventFeedback ¶
type EventFeedback struct {
// contains filtered or unexported fields
}
func (*EventFeedback) Failed ¶
func (this *EventFeedback) Failed(info *CertInfo, err error)
func (*EventFeedback) Pending ¶
func (this *EventFeedback) Pending(info *CertInfo, msg string)
func (*EventFeedback) Ready ¶
func (this *EventFeedback) Ready(info *CertInfo, msg string)
func (*EventFeedback) Succeeded ¶
func (this *EventFeedback) Succeeded()
Click to show internal directories.
Click to hide internal directories.