Documentation ¶
Index ¶
- Variables
- type Action
- type CaddyController
- type ConfigMapAddedAction
- type ConfigMapDeletedAction
- type ConfigMapUpdatedAction
- type Converter
- type Informer
- type InformerFactory
- type IngressAddedAction
- type IngressDeletedAction
- type IngressUpdatedAction
- type SecretAddedAction
- type SecretDeletedAction
- type SecretUpdatedAction
- type SyncStatusAction
Constants ¶
This section is empty.
Variables ¶
var CertFolder = filepath.FromSlash("/etc/caddy/certs")
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action interface {
// contains filtered or unexported methods
}
Action is an interface for ingress actions.
type CaddyController ¶
type CaddyController struct {
// contains filtered or unexported fields
}
CaddyController represents a caddy ingress controller.
func NewCaddyController ¶
func NewCaddyController( logger *zap.SugaredLogger, kubeClient *kubernetes.Clientset, opts store.Options, converter Converter, stopChan chan struct{}, ) *CaddyController
func (*CaddyController) Run ¶
func (c *CaddyController) Run()
Run method starts the ingress controller.
func (*CaddyController) Shutdown ¶
func (c *CaddyController) Shutdown() error
Shutdown stops the caddy controller.
type ConfigMapAddedAction ¶
type ConfigMapAddedAction struct {
// contains filtered or unexported fields
}
ConfigMapAddedAction provides an implementation of the action interface.
type ConfigMapDeletedAction ¶
type ConfigMapDeletedAction struct {
// contains filtered or unexported fields
}
ConfigMapDeletedAction provides an implementation of the action interface.
type ConfigMapUpdatedAction ¶
type ConfigMapUpdatedAction struct {
// contains filtered or unexported fields
}
ConfigMapUpdatedAction provides an implementation of the action interface.
type Informer ¶
type Informer struct { Ingress cache.SharedIndexInformer ConfigMap cache.SharedIndexInformer TLSSecret cache.SharedIndexInformer }
Informer defines the required SharedIndexInformers that interact with the API server.
type InformerFactory ¶
type InformerFactory struct { PodNamespace informers.SharedInformerFactory WatchedNamespace informers.SharedInformerFactory }
InformerFactory contains shared informer factory We need to type of factory: - One used to watch resources in the Pod namespaces (caddy config, secrets...) - Another one for Ingress resources in the selected namespace
type IngressAddedAction ¶
type IngressAddedAction struct {
// contains filtered or unexported fields
}
IngressAddedAction provides an implementation of the action interface.
type IngressDeletedAction ¶
type IngressDeletedAction struct {
// contains filtered or unexported fields
}
IngressDeletedAction provides an implementation of the action interface.
type IngressUpdatedAction ¶
type IngressUpdatedAction struct {
// contains filtered or unexported fields
}
IngressUpdatedAction provides an implementation of the action interface.
type SecretAddedAction ¶
type SecretAddedAction struct {
// contains filtered or unexported fields
}
SecretAddedAction provides an implementation of the action interface.
type SecretDeletedAction ¶
type SecretDeletedAction struct {
// contains filtered or unexported fields
}
SecretDeletedAction provides an implementation of the action interface.
type SecretUpdatedAction ¶
type SecretUpdatedAction struct {
// contains filtered or unexported fields
}
SecretUpdatedAction provides an implementation of the action interface.
type SyncStatusAction ¶
type SyncStatusAction struct { }
SyncStatusAction provides an implementation of the action interface.