Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigMapLister ¶
ConfigMapLister makes a Store that lists Configmaps.
type EndpointLister ¶
EndpointLister makes a Store that lists Endpoints.
type Event ¶
type Event struct { Type EventType Obj interface{} }
Event holds the context of an event.
type EventType ¶
type EventType string
EventType type of event associated with an informer
const ( // CreateEvent event associated with new objects in an informer CreateEvent EventType = "CREATE" // UpdateEvent event associated with an object update in an informer UpdateEvent EventType = "UPDATE" // DeleteEvent event associated when an object is removed from an informer DeleteEvent EventType = "DELETE" )
type Informer ¶
type Informer struct { Ingress cache.SharedIndexInformer Endpoint cache.SharedIndexInformer Service cache.SharedIndexInformer Pod cache.SharedIndexInformer }
Informer defines the required SharedIndexInformers that interact with the API server.
type IngressFilterFunc ¶
IngressFilterFunc decides if an Ingress should be omitted or not
type IngressLister ¶
IngressLister makes a Store that lists Ingress.
func (IngressLister) ByKey ¶
func (il IngressLister) ByKey(key string) (*networking.Ingress, error)
ByKey returns the Ingress matching key in the local Ingress Store.
type IngressWithAnnotationsLister ¶
IngressWithAnnotationsLister makes a Store that lists Ingress rules with annotations already parsed
type Lister ¶
type Lister struct { Ingress IngressLister Service ServiceLister Endpoint EndpointLister IngressWithAnnotation IngressWithAnnotationsLister Pod PodLister }
Lister contains object listers (stores).
type NotExistsError ¶
type NotExistsError string
NotExistsError is returned when an object does not exist in a local store.
func (NotExistsError) Error ¶
func (e NotExistsError) Error() string
Error implements the error interface.
type ServiceLister ¶
ServiceLister makes a Store that lists Services.
type Storer ¶
type Storer interface { // GetService returns the Service matching key. GetService(key string) (*corev1.Service, error) // GetServiceEndpoints returns the Endpoints of a Service matching key. GetServiceEndpoints(key string) (*corev1.Endpoints, error) // ListIngresses returns a list of all Ingresses in the store. ListIngresses(IngressFilterFunc) []*ingress.Ingress // GetRunningControllerPodsCount returns the number of Running ingress-nginx controller Pods. GetRunningControllerPodsCount() int // Run initiates the synchronization of the controllers Run(stopCh chan struct{}) }
Storer is the interface that wraps the required methods to gather information about ingresses, services, secrets and ingress annotations.