controller

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CFController

type CFController struct {
	Log        *zerolog.Logger
	Cfg        *config.CFControllerConfig
	Rest       *RestClients
	ConfigMaps *TunnelConfigMaps
	Context    context.Context
	CancelFunc context.CancelFunc
	// contains filtered or unexported fields
}

func NewCFController added in v0.0.2

func NewCFController(log *zerolog.Logger) *CFController

func (*CFController) RegisterShutdown added in v0.0.2

func (cfc *CFController) RegisterShutdown(sfn func()) func()

func (*CFController) Shutdown added in v0.0.2

func (cfc *CFController) Shutdown()

func (*CFController) WithComponent

func (cfc *CFController) WithComponent(component string, fns ...func(*CFController)) *CFController

type RestClients

type RestClients struct {
	K8s *kubernetes.Clientset
	// contains filtered or unexported fields
}

func (*RestClients) CFClientWithoutZoneID added in v0.0.6

func (rc *RestClients) CFClientWithoutZoneID() (*cfapi.RESTClient, error)

func (*RestClients) GetCFClientForDomain added in v0.0.6

func (rc *RestClients) GetCFClientForDomain(domain string) (*cfapi.RESTClient, error)

type TunnelConfigMap added in v0.0.8

type TunnelConfigMap struct {
	Cm corev1.ConfigMap
}

type TunnelConfigMaps added in v0.0.8

type TunnelConfigMaps struct {
	CmsLock sync.Mutex
	Cms     map[string]TunnelConfigMap
}

func NewTunnelConfigMaps added in v0.0.8

func NewTunnelConfigMaps() *TunnelConfigMaps

func (*TunnelConfigMaps) ConfigMaps added in v0.0.8

func (tcm *TunnelConfigMaps) ConfigMaps() []TunnelConfigMap

func (*TunnelConfigMaps) WatchConfigMaps added in v0.0.8

func (tcm *TunnelConfigMaps) WatchConfigMaps() WatchFunc

type WatchFunc added in v0.0.8

type WatchFunc func(*CFController, string) (watch.Interface, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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