controller

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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 Converter

type Converter interface {
	ConvertToCaddyConfig(store *store.Store) (interface{}, error)
}

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.

Jump to

Keyboard shortcuts

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