Documentation ¶
Index ¶
- Constants
- func GetSvcStatusIPHostname(svc *corev1.Service) (string, string)
- func RemoveAllSelectedNamespaces()
- type FilterableObject
- type IPHostname
- type IngressHostMeta
- func (ihm IngressHostMeta) ApplyFilter() bool
- func (ihm IngressHostMeta) ApplyGDPSelector() bool
- func (ing IngressHostMeta) DeleteMapByKey(key string)
- func (ing IngressHostMeta) GetCluster() string
- func (ing IngressHostMeta) GetClusterKey() string
- func (ing IngressHostMeta) GetControllerUUID() string
- func (ing IngressHostMeta) GetHostname() string
- func (ing IngressHostMeta) GetHostnameFromHostMap(key string) string
- func (ing IngressHostMeta) GetIPAddr() string
- func (ing IngressHostMeta) GetIngressHostCksum() uint32
- func (ing IngressHostMeta) GetIngressHostMetaKey() string
- func (ing IngressHostMeta) GetName() string
- func (ing IngressHostMeta) GetNamespace() string
- func (ing IngressHostMeta) GetPaths() ([]string, error)
- func (ing IngressHostMeta) GetPort() (int32, error)
- func (ing IngressHostMeta) GetProtocol() (string, error)
- func (ing IngressHostMeta) GetTLS() (bool, error)
- func (ing IngressHostMeta) GetType() string
- func (ing IngressHostMeta) GetVirtualServiceUUID() string
- func (ing IngressHostMeta) IngressHostInList(ihmList []IngressHostMeta) (IngressHostMeta, bool)
- func (ing IngressHostMeta) IsPassthrough() bool
- func (ing IngressHostMeta) UpdateHostMap(key string)
- type MetaObject
- type MultiClusterIngressHostMeta
- func (mciHostMeta MultiClusterIngressHostMeta) ApplyFilter() bool
- func (mciHostMeta MultiClusterIngressHostMeta) ApplyGDPSelector() bool
- func (mciHostMeta MultiClusterIngressHostMeta) DeleteMapByKey(key string)
- func (mciHostMeta MultiClusterIngressHostMeta) GetCluster() string
- func (mciHostMeta MultiClusterIngressHostMeta) GetClusterKey() string
- func (mciHostMeta MultiClusterIngressHostMeta) GetControllerUUID() string
- func (mciHostMeta MultiClusterIngressHostMeta) GetHostname() string
- func (mciHostMeta MultiClusterIngressHostMeta) GetHostnameFromHostMap(key string) string
- func (mciHostMeta MultiClusterIngressHostMeta) GetIPAddr() string
- func (mciHostMeta MultiClusterIngressHostMeta) GetIngressHostCksum() uint32
- func (mciHostMeta MultiClusterIngressHostMeta) GetIngressHostMetaKey() string
- func (mciHostMeta MultiClusterIngressHostMeta) GetName() string
- func (mciHostMeta MultiClusterIngressHostMeta) GetNamespace() string
- func (mciHostMeta MultiClusterIngressHostMeta) GetPaths() ([]string, error)
- func (mciHostMeta MultiClusterIngressHostMeta) GetPort() (int32, error)
- func (mciHostMeta MultiClusterIngressHostMeta) GetProtocol() (string, error)
- func (mciHostMeta MultiClusterIngressHostMeta) GetTLS() (bool, error)
- func (mciHostMeta MultiClusterIngressHostMeta) GetType() string
- func (mciHostMeta MultiClusterIngressHostMeta) GetVirtualServiceUUID() string
- func (mciHostMeta MultiClusterIngressHostMeta) IngressHostInList(ihmList []MultiClusterIngressHostMeta) (MultiClusterIngressHostMeta, bool)
- func (mciHostMeta MultiClusterIngressHostMeta) IsPassthrough() bool
- func (mciHostMeta MultiClusterIngressHostMeta) UpdateHostMap(key string)
- type NSMeta
- type ObjHostMap
- type RouteMeta
- func (route RouteMeta) ApplyFilter() bool
- func (route RouteMeta) ApplyGDPSelector() bool
- func (route RouteMeta) DeleteMapByKey(key string)
- func (route RouteMeta) GetCluster() string
- func (route RouteMeta) GetControllerUUID() string
- func (route RouteMeta) GetHostname() string
- func (route RouteMeta) GetHostnameFromHostMap(key string) string
- func (route RouteMeta) GetIPAddr() string
- func (route RouteMeta) GetName() string
- func (route RouteMeta) GetNamespace() string
- func (route RouteMeta) GetPaths() ([]string, error)
- func (route RouteMeta) GetPort() (int32, error)
- func (route RouteMeta) GetProtocol() (string, error)
- func (route RouteMeta) GetTLS() (bool, error)
- func (route RouteMeta) GetType() string
- func (route RouteMeta) GetVirtualServiceUUID() string
- func (route RouteMeta) IsPassthrough() bool
- func (route RouteMeta) UpdateHostMap(key string)
- type SvcMeta
- func (svc SvcMeta) ApplyFilter() bool
- func (svc SvcMeta) ApplyGDPSelector() bool
- func (svc SvcMeta) DeleteMapByKey(key string)
- func (svc SvcMeta) GetCluster() string
- func (svc SvcMeta) GetControllerUUID() string
- func (svc SvcMeta) GetHostname() string
- func (svc SvcMeta) GetHostnameFromHostMap(key string) string
- func (svc SvcMeta) GetIPAddr() string
- func (svc SvcMeta) GetName() string
- func (svc SvcMeta) GetNamespace() string
- func (svc SvcMeta) GetPaths() ([]string, error)
- func (svc SvcMeta) GetPort() (int32, error)
- func (svc SvcMeta) GetProtocol() (string, error)
- func (svc SvcMeta) GetTLS() (bool, error)
- func (svc SvcMeta) GetType() string
- func (svc SvcMeta) GetVirtualServiceUUID() string
- func (svc SvcMeta) IsPassthrough() bool
- func (svc SvcMeta) UpdateHostMap(key string)
Constants ¶
const ( VSAnnotation = "ako.vmware.com/host-fqdn-vs-uuid-map" ControllerAnnotation = "ako.vmware.com/controller-cluster-uuid" )
Variables ¶
This section is empty.
Functions ¶
func RemoveAllSelectedNamespaces ¶
func RemoveAllSelectedNamespaces()
Types ¶
type FilterableObject ¶
type FilterableObject interface {
ApplyFilter() bool
}
type IPHostname ¶
type IngressHostMeta ¶
type IngressHostMeta struct { Cluster string IngName string ObjName string Namespace string Hostname string IPAddr string VirtualServiceUUID string ControllerUUID string Labels map[string]string Paths []string TLS bool }
IngressHostMeta is the metadata for an ingress. It is the minimal information that we maintain for each ingress, accepted or rejected.
func GetIngressHostMeta ¶
func GetIngressHostMeta(ingress *networkingv1.Ingress, cname string) []IngressHostMeta
GetIngressHostMeta returns a ingress split into its backends
func (IngressHostMeta) ApplyFilter ¶
func (ihm IngressHostMeta) ApplyFilter() bool
func (IngressHostMeta) ApplyGDPSelector ¶
func (ihm IngressHostMeta) ApplyGDPSelector() bool
func (IngressHostMeta) DeleteMapByKey ¶
func (ing IngressHostMeta) DeleteMapByKey(key string)
func (IngressHostMeta) GetCluster ¶
func (ing IngressHostMeta) GetCluster() string
func (IngressHostMeta) GetClusterKey ¶
func (ing IngressHostMeta) GetClusterKey() string
func (IngressHostMeta) GetControllerUUID ¶
func (ing IngressHostMeta) GetControllerUUID() string
func (IngressHostMeta) GetHostname ¶
func (ing IngressHostMeta) GetHostname() string
func (IngressHostMeta) GetHostnameFromHostMap ¶
func (ing IngressHostMeta) GetHostnameFromHostMap(key string) string
func (IngressHostMeta) GetIPAddr ¶
func (ing IngressHostMeta) GetIPAddr() string
func (IngressHostMeta) GetIngressHostCksum ¶
func (ing IngressHostMeta) GetIngressHostCksum() uint32
func (IngressHostMeta) GetIngressHostMetaKey ¶
func (ing IngressHostMeta) GetIngressHostMetaKey() string
func (IngressHostMeta) GetName ¶
func (ing IngressHostMeta) GetName() string
func (IngressHostMeta) GetNamespace ¶
func (ing IngressHostMeta) GetNamespace() string
func (IngressHostMeta) GetPaths ¶
func (ing IngressHostMeta) GetPaths() ([]string, error)
func (IngressHostMeta) GetPort ¶
func (ing IngressHostMeta) GetPort() (int32, error)
func (IngressHostMeta) GetProtocol ¶
func (ing IngressHostMeta) GetProtocol() (string, error)
func (IngressHostMeta) GetTLS ¶
func (ing IngressHostMeta) GetTLS() (bool, error)
func (IngressHostMeta) GetType ¶
func (ing IngressHostMeta) GetType() string
func (IngressHostMeta) GetVirtualServiceUUID ¶
func (ing IngressHostMeta) GetVirtualServiceUUID() string
func (IngressHostMeta) IngressHostInList ¶
func (ing IngressHostMeta) IngressHostInList(ihmList []IngressHostMeta) (IngressHostMeta, bool)
func (IngressHostMeta) IsPassthrough ¶
func (ing IngressHostMeta) IsPassthrough() bool
func (IngressHostMeta) UpdateHostMap ¶
func (ing IngressHostMeta) UpdateHostMap(key string)
type MetaObject ¶
type MetaObject interface { GetType() string GetName() string GetNamespace() string GetHostname() string GetIPAddr() string GetCluster() string UpdateHostMap(string) GetHostnameFromHostMap(string) string DeleteMapByKey(string) GetPaths() ([]string, error) GetPort() (int32, error) GetProtocol() (string, error) GetTLS() (bool, error) IsPassthrough() bool GetVirtualServiceUUID() string GetControllerUUID() string }
Interface for k8s/openshift objects(e.g. route, service, ingress) with minimal information
type MultiClusterIngressHostMeta ¶
type MultiClusterIngressHostMeta struct { Cluster string IngName string ObjName string Namespace string Hostname string IPAddr string VirtualServiceUUID string ControllerUUID string Labels map[string]string Paths []string TLS bool }
MultiClusterMultiClusterIngressHostMeta is the metadata for a multi-cluster ingress. It is the minimal information that we maintain for each multi-cluster ingress, accepted or rejected.
func GetHostMetaForMultiClusterIngress ¶
func GetHostMetaForMultiClusterIngress(mci *akov1alpha1.MultiClusterIngress, cname string) []MultiClusterIngressHostMeta
GetHostMetaForMultiClusterIngress returns a multi-cluster ingress split into its backends
func (MultiClusterIngressHostMeta) ApplyFilter ¶
func (mciHostMeta MultiClusterIngressHostMeta) ApplyFilter() bool
func (MultiClusterIngressHostMeta) ApplyGDPSelector ¶
func (mciHostMeta MultiClusterIngressHostMeta) ApplyGDPSelector() bool
func (MultiClusterIngressHostMeta) DeleteMapByKey ¶
func (mciHostMeta MultiClusterIngressHostMeta) DeleteMapByKey(key string)
func (MultiClusterIngressHostMeta) GetCluster ¶
func (mciHostMeta MultiClusterIngressHostMeta) GetCluster() string
func (MultiClusterIngressHostMeta) GetClusterKey ¶
func (mciHostMeta MultiClusterIngressHostMeta) GetClusterKey() string
func (MultiClusterIngressHostMeta) GetControllerUUID ¶
func (mciHostMeta MultiClusterIngressHostMeta) GetControllerUUID() string
func (MultiClusterIngressHostMeta) GetHostname ¶
func (mciHostMeta MultiClusterIngressHostMeta) GetHostname() string
func (MultiClusterIngressHostMeta) GetHostnameFromHostMap ¶
func (mciHostMeta MultiClusterIngressHostMeta) GetHostnameFromHostMap(key string) string
func (MultiClusterIngressHostMeta) GetIPAddr ¶
func (mciHostMeta MultiClusterIngressHostMeta) GetIPAddr() string
func (MultiClusterIngressHostMeta) GetIngressHostCksum ¶
func (mciHostMeta MultiClusterIngressHostMeta) GetIngressHostCksum() uint32
func (MultiClusterIngressHostMeta) GetIngressHostMetaKey ¶
func (mciHostMeta MultiClusterIngressHostMeta) GetIngressHostMetaKey() string
func (MultiClusterIngressHostMeta) GetName ¶
func (mciHostMeta MultiClusterIngressHostMeta) GetName() string
func (MultiClusterIngressHostMeta) GetNamespace ¶
func (mciHostMeta MultiClusterIngressHostMeta) GetNamespace() string
func (MultiClusterIngressHostMeta) GetPaths ¶
func (mciHostMeta MultiClusterIngressHostMeta) GetPaths() ([]string, error)
func (MultiClusterIngressHostMeta) GetPort ¶
func (mciHostMeta MultiClusterIngressHostMeta) GetPort() (int32, error)
func (MultiClusterIngressHostMeta) GetProtocol ¶
func (mciHostMeta MultiClusterIngressHostMeta) GetProtocol() (string, error)
func (MultiClusterIngressHostMeta) GetTLS ¶
func (mciHostMeta MultiClusterIngressHostMeta) GetTLS() (bool, error)
func (MultiClusterIngressHostMeta) GetType ¶
func (mciHostMeta MultiClusterIngressHostMeta) GetType() string
func (MultiClusterIngressHostMeta) GetVirtualServiceUUID ¶
func (mciHostMeta MultiClusterIngressHostMeta) GetVirtualServiceUUID() string
func (MultiClusterIngressHostMeta) IngressHostInList ¶
func (mciHostMeta MultiClusterIngressHostMeta) IngressHostInList(ihmList []MultiClusterIngressHostMeta) (MultiClusterIngressHostMeta, bool)
func (MultiClusterIngressHostMeta) IsPassthrough ¶
func (mciHostMeta MultiClusterIngressHostMeta) IsPassthrough() bool
func (MultiClusterIngressHostMeta) UpdateHostMap ¶
func (mciHostMeta MultiClusterIngressHostMeta) UpdateHostMap(key string)
type NSMeta ¶
NSMeta is the metadata for a ns. It is the minimal information that we maintain for each namespace, accepted or rejected.
func (NSMeta) ApplyFilter ¶
func (NSMeta) DeleteFromFilter ¶
func (NSMeta) GetCluster ¶
func (NSMeta) UpdateFilter ¶
UpdateFilter returns true if there was a change in the filter
type ObjHostMap ¶
type ObjHostMap struct { HostMap map[string]IPHostname Lock sync.Mutex }
ObjHostMap stores a mapping between cluster+ns+objName to it's hostname
type RouteMeta ¶
type RouteMeta struct { Cluster string Name string Namespace string Hostname string IPAddr string Labels map[string]string Paths []string TLS bool Port int32 Protocol string Passthrough bool VirtualServiceUUID string ControllerUUID string }
RouteMeta is the metadata for a route. It is the minimal information that we maintain for each route, accepted or rejected.
func GetRouteMeta ¶
GetRouteMeta returns a trimmed down version of a route
func (RouteMeta) ApplyFilter ¶
func (RouteMeta) ApplyGDPSelector ¶
func (RouteMeta) DeleteMapByKey ¶
func (RouteMeta) GetCluster ¶
func (RouteMeta) GetControllerUUID ¶
func (RouteMeta) GetHostname ¶
func (RouteMeta) GetHostnameFromHostMap ¶
func (RouteMeta) GetNamespace ¶
func (RouteMeta) GetProtocol ¶
func (RouteMeta) GetVirtualServiceUUID ¶
func (RouteMeta) IsPassthrough ¶
func (RouteMeta) UpdateHostMap ¶
type SvcMeta ¶
type SvcMeta struct { Cluster string Name string Namespace string Hostname string IPAddr string Labels map[string]string Port int32 Protocol string VirtualServiceUUID string ControllerUUID string }
func GetSvcMeta ¶
GetSvcMeta returns a trimmed down version of a svc