Documentation
¶
Index ¶
- type CFController
- type K8SClient
- type K8SItem
- type K8SList
- type K8sData
- type RestClients
- type TunnelConfigMaps
- type WatchFunc
- type Watcher
- type WatcherBindingConfigMap
- type WatcherBindingConfigMapClient
- type WatcherBindingConfigMapList
- type WatcherBindingIngress
- type WatcherBindingIngressClient
- type WatcherBindingIngressList
- type WatcherBindingNamespace
- type WatcherBindingNamespaceClient
- type WatcherBindingNamespaceList
- type WatcherBindingService
- type WatcherBindingServiceClient
- type WatcherBindingServiceList
- type WatcherConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CFController ¶
type CFController interface {
WithComponent(component string, fns ...func(CFController)) CFController
RegisterShutdown(sfn func()) func()
Shutdown() error
Log() *zerolog.Logger
SetLog(*zerolog.Logger)
Cfg() *config.CFControllerConfig
SetCfg(*config.CFControllerConfig)
Rest() RestClients
K8sData() *K8sData
Context() context.Context
CancelFunc() context.CancelFunc
}
type K8sData ¶
type K8sData struct {
// Get func() []TunnelConfigMap
TunnelConfigMaps TunnelConfigMaps
Namespaces Watcher[*corev1.Namespace] // [corev1.Namespace, *corev1.Namespace, WatcherBindingNamespace, WatcherBindingNamespaceClient]
}
type RestClients ¶
type RestClients interface {
// cfc *CFController
// // Cf *cfapi.RESTClient
// cfsLock sync.Mutex
// cfs map[string]*cfapi.RESTClient
CFClientWithoutZoneID() (*cfapi.RESTClient, error)
GetCFClientForDomain(string) (*cfapi.RESTClient, error)
K8s() *kubernetes.Clientset
SetK8s(*kubernetes.Clientset)
}
type TunnelConfigMaps ¶
type WatcherBindingConfigMap ¶
type WatcherBindingConfigMap struct {
// contains filtered or unexported fields
}
func (WatcherBindingConfigMap) GetItem ¶
func (nl WatcherBindingConfigMap) GetItem() *corev1.ConfigMap
func (WatcherBindingConfigMap) GetUID ¶
func (nl WatcherBindingConfigMap) GetUID() types.UID
type WatcherBindingConfigMapClient ¶
type WatcherBindingConfigMapClient struct {
Cif v1.ConfigMapInterface
}
func (WatcherBindingConfigMapClient) List ¶
func (nl WatcherBindingConfigMapClient) List(ctx context.Context, options metav1.ListOptions) (K8SList[*corev1.ConfigMap, WatcherBindingConfigMap], error)
func (WatcherBindingConfigMapClient) Watch ¶
func (nl WatcherBindingConfigMapClient) Watch(ctx context.Context, options metav1.ListOptions) (watch.Interface, error)
type WatcherBindingConfigMapList ¶
type WatcherBindingConfigMapList struct {
// contains filtered or unexported fields
}
func (*WatcherBindingConfigMapList) GetItems ¶
func (nl *WatcherBindingConfigMapList) GetItems() []WatcherBindingConfigMap
type WatcherBindingIngress ¶
type WatcherBindingIngress struct {
// contains filtered or unexported fields
}
func (WatcherBindingIngress) GetItem ¶
func (nl WatcherBindingIngress) GetItem() *netv1.Ingress
func (WatcherBindingIngress) GetUID ¶
func (nl WatcherBindingIngress) GetUID() types.UID
type WatcherBindingIngressClient ¶
type WatcherBindingIngressClient struct {
Cif v1.IngressInterface
}
func (WatcherBindingIngressClient) List ¶
func (nl WatcherBindingIngressClient) List(ctx context.Context, options metav1.ListOptions) (K8SList[*netv1.Ingress, WatcherBindingIngress], error)
func (WatcherBindingIngressClient) Watch ¶
func (nl WatcherBindingIngressClient) Watch(ctx context.Context, options metav1.ListOptions) (watch.Interface, error)
type WatcherBindingIngressList ¶
type WatcherBindingIngressList struct {
// contains filtered or unexported fields
}
func (*WatcherBindingIngressList) GetItems ¶
func (nl *WatcherBindingIngressList) GetItems() []WatcherBindingIngress
type WatcherBindingNamespace ¶
type WatcherBindingNamespace struct {
// contains filtered or unexported fields
}
func (WatcherBindingNamespace) GetItem ¶
func (nl WatcherBindingNamespace) GetItem() *corev1.Namespace
func (WatcherBindingNamespace) GetUID ¶
func (nl WatcherBindingNamespace) GetUID() types.UID
type WatcherBindingNamespaceClient ¶
type WatcherBindingNamespaceClient struct {
Nif v1.NamespaceInterface
}
func (WatcherBindingNamespaceClient) List ¶
func (nl WatcherBindingNamespaceClient) List(ctx context.Context, options metav1.ListOptions) (K8SList[*corev1.Namespace, WatcherBindingNamespace], error)
func (WatcherBindingNamespaceClient) Watch ¶
func (nl WatcherBindingNamespaceClient) Watch(ctx context.Context, options metav1.ListOptions) (watch.Interface, error)
type WatcherBindingNamespaceList ¶
type WatcherBindingNamespaceList struct {
// contains filtered or unexported fields
}
func (*WatcherBindingNamespaceList) GetItems ¶
func (nl *WatcherBindingNamespaceList) GetItems() []WatcherBindingNamespace
type WatcherBindingService ¶
type WatcherBindingService struct {
// contains filtered or unexported fields
}
func (WatcherBindingService) GetItem ¶
func (nl WatcherBindingService) GetItem() *corev1.Service
func (WatcherBindingService) GetUID ¶
func (nl WatcherBindingService) GetUID() types.UID
type WatcherBindingServiceClient ¶
type WatcherBindingServiceClient struct {
Sif v1.ServiceInterface
}
func (WatcherBindingServiceClient) List ¶
func (nl WatcherBindingServiceClient) List(ctx context.Context, options metav1.ListOptions) (K8SList[*corev1.Service, WatcherBindingService], error)
func (WatcherBindingServiceClient) Watch ¶
func (nl WatcherBindingServiceClient) Watch(ctx context.Context, options metav1.ListOptions) (watch.Interface, error)
type WatcherBindingServiceList ¶
type WatcherBindingServiceList struct {
// contains filtered or unexported fields
}
func (*WatcherBindingServiceList) GetItems ¶
func (nl *WatcherBindingServiceList) GetItems() []WatcherBindingService
Click to show internal directories.
Click to hide internal directories.