Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { GetIngress(ingressName string) (*networking.Ingress, error) GetIngressList() ([]*networking.Ingress, error) GetIngressClass(className string) (*networking.IngressClass, error) GetService(serviceName string) (*api.Service, error) GetEndpoints(service *api.Service) (*api.Endpoints, error) GetConfigMap(configMapName string) (*api.ConfigMap, error) GetTerminatingPods(service *api.Service, track TrackingTarget) ([]*api.Pod, error) GetPod(podName string) (*api.Pod, error) GetPodNamespace() string GetTLSSecretPath(defaultNamespace, secretName string, track TrackingTarget) (CrtFile, error) GetCASecretPath(defaultNamespace, secretName string, track TrackingTarget) (ca, crl File, err error) GetDHSecretPath(defaultNamespace, secretName string) (File, error) GetSecretContent(defaultNamespace, secretName, keyName string, track TrackingTarget) ([]byte, error) SwapChangedObjects() *ChangedObjects NeedFullSync() bool }
Cache ...
type ChangedObjects ¶ added in v0.11.1
type ChangedObjects struct {
//
GlobalCur, GlobalNew map[string]string
//
TCPConfigMapCur, TCPConfigMapNew map[string]string
//
IngressesDel, IngressesUpd, IngressesAdd []*networking.Ingress
//
IngressClassesDel, IngressClassesUpd, IngressClassesAdd []*networking.IngressClass
//
Endpoints []*api.Endpoints
//
ServicesDel, ServicesUpd, ServicesAdd []*api.Service
//
SecretsDel, SecretsUpd, SecretsAdd []*api.Secret
//
ConfigMapsDel, ConfigMapsUpd, ConfigMapsAdd []*api.ConfigMap
//
Pods []*api.Pod
//
Objects []string
}
ChangedObjects ...
type ResourceType ¶ added in v0.11.1
type ResourceType int
ResourceType ...
const ( // IngressType ... IngressType ResourceType = iota // IngressClassType ... IngressClassType // ConfigMapType ... ConfigMapType // ServiceType ... ServiceType // SecretType ... SecretType // PodType ... PodType )
type Tracker ¶ added in v0.11.1
type Tracker interface { Track(isMissing bool, track TrackingTarget, rtype ResourceType, name string) TrackHostname(rtype ResourceType, name, hostname string) TrackBackend(rtype ResourceType, name string, backendID hatypes.BackendID) TrackMissingOnHostname(rtype ResourceType, name, hostname string) TrackStorage(rtype ResourceType, name, storage string) GetDirtyLinks(oldIngressList, addIngressList, oldIngressClassList, addIngressClassList, oldConfigMapList, addConfigMapList, oldServiceList, addServiceList, oldSecretList, addSecretList, addPodList []string) (dirtyIngs, dirtyHosts []string, dirtyBacks []hatypes.BackendID, dirtyUsers, dirtyStorages []string) DeleteHostnames(hostnames []string) DeleteBackends(backends []hatypes.BackendID) DeleteUserlists(userlists []string) DeleteStorages(storages []string) }
Tracker ...
Click to show internal directories.
Click to hide internal directories.