types

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2021 License: Apache-2.0 Imports: 4 Imported by: 7

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 CrtFile added in v0.10.1

type CrtFile struct {
	Filename   string
	SHA1Hash   string
	CommonName string
	NotAfter   time.Time
}

CrtFile ...

type File

type File struct {
	Filename string
	SHA1Hash string
}

File ...

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 ...

type TrackingTarget added in v0.11.1

type TrackingTarget struct {
	Hostname string
	Backend  hatypes.BackendID
	Userlist string
}

TrackingTarget ...

Jump to

Keyboard shortcuts

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