Documentation ¶
Index ¶
- func SharedClusterIpLister() *clusterIpLister
- func SharedlbLister() *lbLister
- type AviGraphLister
- type AviInfraSettingL7Lister
- func (v *AviInfraSettingL7Lister) DeleteInfraSettingToNamespaceMapping(infraSetting string)
- func (v *AviInfraSettingL7Lister) GetAllTenants() map[string]struct{}
- func (v *AviInfraSettingL7Lister) GetAviInfraSettingToTenant(infraSettingName string) string
- func (v *AviInfraSettingL7Lister) GetGwSvcToInfraSetting(name string) string
- func (v *AviInfraSettingL7Lister) GetInfraSettingScopedNamespaces(infraSetting string) []interface{}
- func (v *AviInfraSettingL7Lister) GetInfraSettingToShardSize(infraSettingName string) (bool, string)
- func (v *AviInfraSettingL7Lister) GetIngRouteToInfraSetting(ingrouteNsName string) (bool, string)
- func (v *AviInfraSettingL7Lister) RemoveGwSvcToInfraSettingMapping(resourceNSName string) bool
- func (v *AviInfraSettingL7Lister) RemoveIngRouteInfraSettingMappings(ingrouteNsName string) bool
- func (v *AviInfraSettingL7Lister) UpdateAviInfraToTenantMapping(infraSettingName, tenant string)
- func (v *AviInfraSettingL7Lister) UpdateGwSvcToInfraSettingMapping(resourceNSName, infraSetting string)
- func (v *AviInfraSettingL7Lister) UpdateInfraSettingToNamespaceMapping(infraSetting string, namespaces []interface{})
- func (v *AviInfraSettingL7Lister) UpdateIngRouteInfraSettingMappings(ingrouteNsName, infraSettingName, shardSize string)
- type CRDLister
- func (c *CRDLister) DeleteFQDNFQDNTypeMapping(fqdn string) bool
- func (c *CRDLister) DeleteFQDNSharedVSModelMapping(fqdn string) bool
- func (c *CRDLister) DeleteFQDNToAliasesMapping(fqdn string) bool
- func (c *CRDLister) DeleteHostruleFQDNMapping(hostrule string) bool
- func (c *CRDLister) DeleteL7RuleToHostRuleMapping(l7Rule string, hostRule string)
- func (c *CRDLister) DeleteLocalFqdnToGsFqdnMap(fqdn string) bool
- func (c *CRDLister) DeleteSSORuleFQDNMapping(ssoRule string) bool
- func (c *CRDLister) DeleteSharedVSModelFQDNMapping(modelName string) bool
- func (c *CRDLister) GetAllFQDNToAliasesMapping() map[string]interface{}
- func (c *CRDLister) GetFQDNFQDNTypeMapping(fqdn string) string
- func (c *CRDLister) GetFQDNToAliasesMapping(fqdn string) (bool, []string)
- func (c *CRDLister) GetFQDNToHostruleMapping(fqdn string) (bool, string)
- func (c *CRDLister) GetFQDNToHostruleMappingWithType(fqdn string) (bool, string)
- func (c *CRDLister) GetFQDNToSSORuleMapping(fqdn string) (bool, string)
- func (c *CRDLister) GetFQDNToSharedVSModelMapping(fqdn, fqdnType string) (bool, []string)
- func (c *CRDLister) GetFqdnHTTPRulesMapping(fqdn string) (bool, map[string]string)
- func (c *CRDLister) GetHTTPRuleFqdnMapping(httprule string) (bool, string)
- func (c *CRDLister) GetHostruleToFQDNMapping(hostrule string) (bool, string)
- func (c *CRDLister) GetL7RuleToHostRuleMapping(l7Rule string) (bool, map[string]bool)
- func (c *CRDLister) GetLocalFqdnToGSFQDNMapping(fqdn string) (bool, string)
- func (c *CRDLister) GetSSORuleToFQDNMapping(ssoRule string) (bool, string)
- func (c *CRDLister) GetSharedVSModelFQDNMapping(modelName string) (bool, string)
- func (c *CRDLister) RemoveFqdnHTTPRulesMappings(httprule string) bool
- func (c *CRDLister) UpdateFQDNFQDNTypeMapping(fqdn, fqdnType string)
- func (c *CRDLister) UpdateFQDNHostruleMapping(fqdn string, hostrule string)
- func (c *CRDLister) UpdateFQDNSSORuleMapping(fqdn string, ssoRule string)
- func (c *CRDLister) UpdateFQDNSharedVSModelMappings(fqdn, modelName string)
- func (c *CRDLister) UpdateFQDNToAliasesMappings(fqdn string, aliases []string)
- func (c *CRDLister) UpdateFqdnHTTPRulesMappings(fqdn, path, httprule string)
- func (c *CRDLister) UpdateL7RuleToHostRuleMapping(l7Rule string, hostRule string)
- func (c *CRDLister) UpdateLocalFQDNToGSFqdnMapping(fqdn string, gsFqdn string)
- type IngClassNSCache
- type IngHostCache
- func (v *IngHostCache) DeleteIngToHostMapping(ingName string) bool
- func (v *IngHostCache) GetIngToHost(ingName string) (bool, map[string]map[string][]string)
- func (v *IngHostCache) GetRouteIngToHost(ingName string) (bool, map[string]*RouteIngrhost)
- func (v *IngHostCache) UpdateIngToHostMapping(ingName string, hostMap map[string]map[string][]string)
- func (v *IngHostCache) UpdateRouteIngToHostMapping(ingName string, hostMap map[string]*RouteIngrhost)
- type IngNSCache
- type K8sNodeStore
- type NPLLister
- type ObjectMapStore
- func (o *ObjectMapStore) AddOrUpdate(objName string, obj interface{})
- func (o *ObjectMapStore) CopyAllObjects() map[string]interface{}
- func (o *ObjectMapStore) Delete(objName string) bool
- func (o *ObjectMapStore) Get(objName string) (bool, interface{})
- func (o *ObjectMapStore) GetAllKeys() []string
- func (o *ObjectMapStore) GetAllObjectNames() map[string]interface{}
- func (o *ObjectMapStore) IsInfraSettingMapped(infrasetting string) bool
- type ObjectStore
- type PodLBSvcLister
- type PodSvcLister
- type ResourceVersionLister
- type RouteIngrhost
- type SecretHostNameNSCache
- func (v *SecretHostNameNSCache) DecrementSecretToHostNameMapping(secretName string, hostName string) []string
- func (v *SecretHostNameNSCache) DeleteSecretToHostNameMapping(secretName string) bool
- func (v *SecretHostNameNSCache) GetSecretToHostname(secretName string) (bool, []string)
- func (v *SecretHostNameNSCache) UpdateSecretToHostNameMapping(secretName string, hostName string)
- type SecretIngNSCache
- type SvcGWLister
- func (v *SvcGWLister) DeleteGWListeners(gateway string) bool
- func (v *SvcGWLister) GetGWListeners(gateway string) (bool, []string)
- func (v *SvcGWLister) GetGWclassToGateways(gwclass string) (bool, []string)
- func (v *SvcGWLister) GetGatewayToGWclass(gateway string) (bool, string)
- func (v *SvcGWLister) GetGwToSvcs(gateway string) (bool, map[string][]string)
- func (v *SvcGWLister) GetSvcToGw(service string) (bool, string)
- func (v *SvcGWLister) RemoveGatewayGWclassMappings(gateway string) bool
- func (v *SvcGWLister) RemoveGatewayMappings(gateway, service string) bool
- func (v *SvcGWLister) UpdateGWListeners(gateway string, listeners []string)
- func (v *SvcGWLister) UpdateGatewayGWclassMappings(gateway, gwclass string)
- func (v *SvcGWLister) UpdateGatewayMappings(gateway string, svcListener map[string][]string, service string)
- type SvcLister
- type SvcNSCache
- func (v *SvcNSCache) AddIngressToSecretsMappings(secretNS, ingName, secretName string)
- func (v *SvcNSCache) AddSecretsToIngressMappings(ingressNS, ingName, secretName string)
- func (v *SvcNSCache) DeleteClassToIngMapping(className string) bool
- func (c *SvcNSCache) DeleteSIToSvcMapping(siName string) bool
- func (v *SvcNSCache) DeleteSecretToIngMapping(secretName string) bool
- func (v *SvcNSCache) DeleteSvcToIngMapping(svcName string) bool
- func (c *SvcNSCache) DeleteSvcToSIMapping(svcName string) bool
- func (v *SvcNSCache) GetClassToIng(className string) (bool, []string)
- func (c *SvcNSCache) GetSIToSvc(siName string) (bool, []string)
- func (v *SvcNSCache) GetSecretToIng(secretName string) (bool, []string)
- func (v *SvcNSCache) GetSvcToIng(svcName string) (bool, []string)
- func (c *SvcNSCache) GetSvcToSI(svcName string) (bool, []string)
- func (v *SvcNSCache) RemoveIngressClassMappings(ingNSName string)
- func (v *SvcNSCache) RemoveIngressMappings(ingName string) []string
- func (v *SvcNSCache) RemoveIngressSecretMappings(ingNSName string)
- func (v *SvcNSCache) RemoveSvcFromIngressMappings(ingName string, svcName string)
- func (v *SvcNSCache) UpdateClassToIngMapping(className string, ingressList []string)
- func (v *SvcNSCache) UpdateIngressClassMappings(ingName string, ingClass string)
- func (v *SvcNSCache) UpdateIngressMappings(ingName string, svcName string)
- func (c *SvcNSCache) UpdateSIToSvcMapping(siName string, svcList []string)
- func (v *SvcNSCache) UpdateSecretToIngMapping(secretName string, ingressList []string)
- func (v *SvcNSCache) UpdateSvcToIngMapping(svcName string, ingressList []string)
- func (c *SvcNSCache) UpdateSvcToSIMapping(svcName string, siList []string)
- type SvcPodLister
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SharedClusterIpLister ¶
func SharedClusterIpLister() *clusterIpLister
func SharedlbLister ¶
func SharedlbLister() *lbLister
Types ¶
type AviGraphLister ¶
type AviGraphLister struct {
AviGraphStore *ObjectMapStore
}
func SharedAviGraphLister ¶
func SharedAviGraphLister() *AviGraphLister
func (*AviGraphLister) Delete ¶
func (a *AviGraphLister) Delete(vsName string)
func (*AviGraphLister) Get ¶
func (a *AviGraphLister) Get(vsName string) (bool, interface{})
func (*AviGraphLister) GetAll ¶
func (a *AviGraphLister) GetAll() interface{}
func (*AviGraphLister) Save ¶
func (a *AviGraphLister) Save(vsName string, aviGraph interface{})
type AviInfraSettingL7Lister ¶
type AviInfraSettingL7Lister struct { InfraSettingIngRouteLock sync.RWMutex InfraSettingGwSvcLock sync.RWMutex // namespaced ingress/route -> infrasetting IngRouteInfraSettingStore *ObjectMapStore // infrasetting -> shardSize InfraSettingShardSizeStore *ObjectMapStore // infrasetting -> tenant InfraSettingTenantStore *ObjectMapStore // namespaced gw/svc -> infrasetting GWSvcInfraSettingStore *ObjectMapStore // infrasettig -> namespaces NSScopedInfraSettingStore *ObjectMapStore }
func InfraSettingL7Lister ¶
func InfraSettingL7Lister() *AviInfraSettingL7Lister
func (*AviInfraSettingL7Lister) DeleteInfraSettingToNamespaceMapping ¶
func (v *AviInfraSettingL7Lister) DeleteInfraSettingToNamespaceMapping(infraSetting string)
func (*AviInfraSettingL7Lister) GetAllTenants ¶
func (v *AviInfraSettingL7Lister) GetAllTenants() map[string]struct{}
func (*AviInfraSettingL7Lister) GetAviInfraSettingToTenant ¶
func (v *AviInfraSettingL7Lister) GetAviInfraSettingToTenant(infraSettingName string) string
func (*AviInfraSettingL7Lister) GetGwSvcToInfraSetting ¶
func (v *AviInfraSettingL7Lister) GetGwSvcToInfraSetting(name string) string
func (*AviInfraSettingL7Lister) GetInfraSettingScopedNamespaces ¶
func (v *AviInfraSettingL7Lister) GetInfraSettingScopedNamespaces(infraSetting string) []interface{}
func (*AviInfraSettingL7Lister) GetInfraSettingToShardSize ¶
func (v *AviInfraSettingL7Lister) GetInfraSettingToShardSize(infraSettingName string) (bool, string)
func (*AviInfraSettingL7Lister) GetIngRouteToInfraSetting ¶
func (v *AviInfraSettingL7Lister) GetIngRouteToInfraSetting(ingrouteNsName string) (bool, string)
func (*AviInfraSettingL7Lister) RemoveGwSvcToInfraSettingMapping ¶
func (v *AviInfraSettingL7Lister) RemoveGwSvcToInfraSettingMapping(resourceNSName string) bool
func (*AviInfraSettingL7Lister) RemoveIngRouteInfraSettingMappings ¶
func (v *AviInfraSettingL7Lister) RemoveIngRouteInfraSettingMappings(ingrouteNsName string) bool
func (*AviInfraSettingL7Lister) UpdateAviInfraToTenantMapping ¶
func (v *AviInfraSettingL7Lister) UpdateAviInfraToTenantMapping(infraSettingName, tenant string)
func (*AviInfraSettingL7Lister) UpdateGwSvcToInfraSettingMapping ¶
func (v *AviInfraSettingL7Lister) UpdateGwSvcToInfraSettingMapping(resourceNSName, infraSetting string)
func (*AviInfraSettingL7Lister) UpdateInfraSettingToNamespaceMapping ¶
func (v *AviInfraSettingL7Lister) UpdateInfraSettingToNamespaceMapping(infraSetting string, namespaces []interface{})
func (*AviInfraSettingL7Lister) UpdateIngRouteInfraSettingMappings ¶
func (v *AviInfraSettingL7Lister) UpdateIngRouteInfraSettingMappings(ingrouteNsName, infraSettingName, shardSize string)
type CRDLister ¶
type CRDLister struct { // since the stored values can be from separate namespaces // this struct is locked NSLock sync.RWMutex // TODO: can be removed once we move to indexers // fqdn.com: hr1 FqdnHostRuleCache *ObjectMapStore // hr1: fqdn.com - required for httprule HostRuleFQDNCache *ObjectMapStore // hr1: gsfqdn.com FqdnToGSFQDNCache *ObjectMapStore // TODO: can be removed once we move to indexers // fqdn.com: {path1: rr1, path2: rr1, path3: rr2} FqdnHTTPRulesCache *ObjectMapStore // rr1: fqdn1.com, rr2: fqdn2.com HTTPRuleFqdnCache *ObjectMapStore FqdnSharedVSModelCache *ObjectMapStore SharedVSModelFqdnCache *ObjectMapStore // shared-vs1-fqdn: contains, foo.com: exact FqdnFqdnTypeCache *ObjectMapStore // fqdn: alias1.com, alias2.com FQDNToAliasesCache *ObjectMapStore // TODO: can be removed once we move to indexers // fqdn.com: hr1 FqdnSSORuleCache *ObjectMapStore // hr1: fqdn.com - required for httprule SSORuleFQDNCache *ObjectMapStore // L7CRD : HostruleCRD L7RuleHostRuleCache *ObjectMapStore }
var CRDinstance *CRDLister
func SharedCRDLister ¶
func SharedCRDLister() *CRDLister
SharedCRDLister store is used to keep CRD mappings with relevant objects
func (*CRDLister) DeleteFQDNFQDNTypeMapping ¶
func (*CRDLister) DeleteFQDNSharedVSModelMapping ¶
func (*CRDLister) DeleteFQDNToAliasesMapping ¶
func (*CRDLister) DeleteHostruleFQDNMapping ¶
func (*CRDLister) DeleteL7RuleToHostRuleMapping ¶
func (*CRDLister) DeleteLocalFqdnToGsFqdnMap ¶
func (*CRDLister) DeleteSSORuleFQDNMapping ¶
func (*CRDLister) DeleteSharedVSModelFQDNMapping ¶
func (*CRDLister) GetAllFQDNToAliasesMapping ¶
func (*CRDLister) GetFQDNFQDNTypeMapping ¶
func (*CRDLister) GetFQDNToAliasesMapping ¶
func (*CRDLister) GetFQDNToHostruleMapping ¶
FqdnHostRuleCache
func (*CRDLister) GetFQDNToHostruleMappingWithType ¶
func (*CRDLister) GetFQDNToSSORuleMapping ¶
FqdnSSORuleCache
func (*CRDLister) GetFQDNToSharedVSModelMapping ¶
FqdnSharedVSModelCache/SharedVSModelFqdnCache
func (*CRDLister) GetFqdnHTTPRulesMapping ¶
func (*CRDLister) GetHTTPRuleFqdnMapping ¶
func (*CRDLister) GetHostruleToFQDNMapping ¶
func (*CRDLister) GetL7RuleToHostRuleMapping ¶
func (*CRDLister) GetLocalFqdnToGSFQDNMapping ¶
func (*CRDLister) GetSSORuleToFQDNMapping ¶
func (*CRDLister) GetSharedVSModelFQDNMapping ¶
func (*CRDLister) RemoveFqdnHTTPRulesMappings ¶
func (*CRDLister) UpdateFQDNFQDNTypeMapping ¶
func (*CRDLister) UpdateFQDNHostruleMapping ¶
func (*CRDLister) UpdateFQDNSSORuleMapping ¶
func (*CRDLister) UpdateFQDNSharedVSModelMappings ¶
func (*CRDLister) UpdateFQDNToAliasesMappings ¶
func (*CRDLister) UpdateFqdnHTTPRulesMappings ¶
func (*CRDLister) UpdateL7RuleToHostRuleMapping ¶
func (*CRDLister) UpdateLocalFQDNToGSFqdnMapping ¶
type IngClassNSCache ¶
type IngClassNSCache struct {
// contains filtered or unexported fields
}
func (*IngClassNSCache) DeleteIngToClassMapping ¶
func (v *IngClassNSCache) DeleteIngToClassMapping(ingName string) bool
func (*IngClassNSCache) GetIngToClass ¶
func (v *IngClassNSCache) GetIngToClass(ingName string) (bool, string)
func (*IngClassNSCache) UpdateIngToClassMapping ¶
func (v *IngClassNSCache) UpdateIngToClassMapping(ingName string, class string)
type IngHostCache ¶
type IngHostCache struct {
// contains filtered or unexported fields
}
func (*IngHostCache) DeleteIngToHostMapping ¶
func (v *IngHostCache) DeleteIngToHostMapping(ingName string) bool
func (*IngHostCache) GetIngToHost ¶
func (*IngHostCache) GetRouteIngToHost ¶
func (v *IngHostCache) GetRouteIngToHost(ingName string) (bool, map[string]*RouteIngrhost)
func (*IngHostCache) UpdateIngToHostMapping ¶
func (v *IngHostCache) UpdateIngToHostMapping(ingName string, hostMap map[string]map[string][]string)
func (*IngHostCache) UpdateRouteIngToHostMapping ¶
func (v *IngHostCache) UpdateRouteIngToHostMapping(ingName string, hostMap map[string]*RouteIngrhost)
type IngNSCache ¶
type IngNSCache struct {
// contains filtered or unexported fields
}
func (*IngNSCache) DeleteIngToSvcMapping ¶
func (v *IngNSCache) DeleteIngToSvcMapping(ingName string) bool
func (*IngNSCache) GetIngToSvc ¶
func (v *IngNSCache) GetIngToSvc(ingName string) (bool, []string)
func (*IngNSCache) UpdateIngToSvcMapping ¶
func (v *IngNSCache) UpdateIngToSvcMapping(ingName string, svcList []string)
type K8sNodeStore ¶
type K8sNodeStore struct {
*ObjectMapStore
}
func SharedNodeLister ¶
func SharedNodeLister() *K8sNodeStore
func (*K8sNodeStore) PopulateAllNodes ¶
func (o *K8sNodeStore) PopulateAllNodes(cs *kubernetes.Clientset, isNodePort bool, nodeLabels map[string]string)
type NPLLister ¶
type NPLLister struct {
// contains filtered or unexported fields
}
NPLLister stores a list of NPL annotations for a pod
func SharedNPLLister ¶
func SharedNPLLister() *NPLLister
type ObjectMapStore ¶
func NewObjectMapStore ¶
func NewObjectMapStore() *ObjectMapStore
func (*ObjectMapStore) AddOrUpdate ¶
func (o *ObjectMapStore) AddOrUpdate(objName string, obj interface{})
func (*ObjectMapStore) CopyAllObjects ¶
func (o *ObjectMapStore) CopyAllObjects() map[string]interface{}
func (*ObjectMapStore) Delete ¶
func (o *ObjectMapStore) Delete(objName string) bool
func (*ObjectMapStore) Get ¶
func (o *ObjectMapStore) Get(objName string) (bool, interface{})
func (*ObjectMapStore) GetAllKeys ¶
func (o *ObjectMapStore) GetAllKeys() []string
func (*ObjectMapStore) GetAllObjectNames ¶
func (o *ObjectMapStore) GetAllObjectNames() map[string]interface{}
func (*ObjectMapStore) IsInfraSettingMapped ¶
func (o *ObjectMapStore) IsInfraSettingMapped(infrasetting string) bool
type ObjectStore ¶
type ObjectStore struct { NSObjectMap map[string]*ObjectMapStore NSLock sync.RWMutex }
func NewObjectStore ¶
func NewObjectStore() *ObjectStore
func (*ObjectStore) DeleteNSStore ¶
func (store *ObjectStore) DeleteNSStore(nsName string) bool
func (*ObjectStore) GetAllNamespaces ¶
func (store *ObjectStore) GetAllNamespaces() []string
func (*ObjectStore) GetNSStore ¶
func (store *ObjectStore) GetNSStore(nsName string) *ObjectMapStore
type PodLBSvcLister ¶
type PodLBSvcLister struct {
// contains filtered or unexported fields
}
PodLBSvcLister stores list of services of type LB for a pod.
func SharedPodToLBSvcLister ¶
func SharedPodToLBSvcLister() *PodLBSvcLister
func (*PodLBSvcLister) Delete ¶
func (a *PodLBSvcLister) Delete(key string)
func (*PodLBSvcLister) Get ¶
func (a *PodLBSvcLister) Get(key string) (bool, interface{})
func (*PodLBSvcLister) GetAll ¶
func (a *PodLBSvcLister) GetAll() interface{}
func (*PodLBSvcLister) Save ¶
func (a *PodLBSvcLister) Save(key string, val interface{})
type PodSvcLister ¶
type PodSvcLister struct {
// contains filtered or unexported fields
}
PodSvcLister stores list of services for a pod. For all these services, the Pod acts a backend through matching selector
func SharedPodToSvcLister ¶
func SharedPodToSvcLister() *PodSvcLister
func (*PodSvcLister) Delete ¶
func (a *PodSvcLister) Delete(key string)
func (*PodSvcLister) Get ¶
func (a *PodSvcLister) Get(key string) (bool, interface{})
func (*PodSvcLister) GetAll ¶
func (a *PodSvcLister) GetAll() interface{}
func (*PodSvcLister) Save ¶
func (a *PodSvcLister) Save(key string, val interface{})
type ResourceVersionLister ¶
type ResourceVersionLister struct {
ResourceVerStore *ObjectMapStore
}
func SharedResourceVerInstanceLister ¶
func SharedResourceVerInstanceLister() *ResourceVersionLister
func (*ResourceVersionLister) Delete ¶
func (a *ResourceVersionLister) Delete(resName string)
func (*ResourceVersionLister) Get ¶
func (a *ResourceVersionLister) Get(resName string) (bool, interface{})
func (*ResourceVersionLister) GetAll ¶
func (a *ResourceVersionLister) GetAll() interface{}
func (*ResourceVersionLister) Save ¶
func (a *ResourceVersionLister) Save(vsName string, resVer interface{})
type RouteIngrhost ¶
type RouteIngrhost struct { Hostname string InsecurePolicy string // none, redirect, allow SecurePolicy string // edge, reencrypt, passthrough Paths []string PathSvc map[string][]string //list of services for a path, used for alternate backend }
stores path/policies for a hostname policies can be of various types for both secure and insecure hosts
type SecretHostNameNSCache ¶
type SecretHostNameNSCache struct { SecretLock sync.RWMutex // contains filtered or unexported fields }
func (*SecretHostNameNSCache) DecrementSecretToHostNameMapping ¶
func (v *SecretHostNameNSCache) DecrementSecretToHostNameMapping(secretName string, hostName string) []string
func (*SecretHostNameNSCache) DeleteSecretToHostNameMapping ¶
func (v *SecretHostNameNSCache) DeleteSecretToHostNameMapping(secretName string) bool
func (*SecretHostNameNSCache) GetSecretToHostname ¶
func (v *SecretHostNameNSCache) GetSecretToHostname(secretName string) (bool, []string)
func (*SecretHostNameNSCache) UpdateSecretToHostNameMapping ¶
func (v *SecretHostNameNSCache) UpdateSecretToHostNameMapping(secretName string, hostName string)
type SecretIngNSCache ¶
type SecretIngNSCache struct {
// contains filtered or unexported fields
}
func (*SecretIngNSCache) DeleteIngToSecretMapping ¶
func (v *SecretIngNSCache) DeleteIngToSecretMapping(ingName string) bool
func (*SecretIngNSCache) GetIngToSecret ¶
func (v *SecretIngNSCache) GetIngToSecret(ingName string) (bool, []string)
func (*SecretIngNSCache) UpdateIngToSecretMapping ¶
func (v *SecretIngNSCache) UpdateIngToSecretMapping(ingName string, secretList []string)
type SvcGWLister ¶
type SvcGWLister struct { SvcGWLock sync.RWMutex // gwclass -> [ns1/gw1, ns1/gw2, ns2/gw3] GwClassGWStore *ObjectMapStore // nsX/gw1 -> gwclass GwGwClassStore *ObjectMapStore // the protocol and port mapped here are of the gateway listener config // that has the appropriate labels // nsX/gw1 -> [proto1/port1, proto2/port2] GwListenersStore *ObjectMapStore // ns1/svc -> nsX/gw1 SvcGWStore *ObjectMapStore // the protocol and port mapped here are of the service // nsX/gw1 -> {proto1/port1: ns1/svc1, proto2/port2: ns2/svc2, ...} GwSvcsStore *ObjectMapStore }
func ServiceGWLister ¶
func ServiceGWLister() *SvcGWLister
func (*SvcGWLister) DeleteGWListeners ¶
func (v *SvcGWLister) DeleteGWListeners(gateway string) bool
func (*SvcGWLister) GetGWListeners ¶
func (v *SvcGWLister) GetGWListeners(gateway string) (bool, []string)
Gateway <-> Listeners
func (*SvcGWLister) GetGWclassToGateways ¶
func (v *SvcGWLister) GetGWclassToGateways(gwclass string) (bool, []string)
Gateway <-> GatewayClass
func (*SvcGWLister) GetGatewayToGWclass ¶
func (v *SvcGWLister) GetGatewayToGWclass(gateway string) (bool, string)
func (*SvcGWLister) GetGwToSvcs ¶
func (v *SvcGWLister) GetGwToSvcs(gateway string) (bool, map[string][]string)
func (*SvcGWLister) GetSvcToGw ¶
func (v *SvcGWLister) GetSvcToGw(service string) (bool, string)
func (*SvcGWLister) RemoveGatewayGWclassMappings ¶
func (v *SvcGWLister) RemoveGatewayGWclassMappings(gateway string) bool
func (*SvcGWLister) RemoveGatewayMappings ¶
func (v *SvcGWLister) RemoveGatewayMappings(gateway, service string) bool
func (*SvcGWLister) UpdateGWListeners ¶
func (v *SvcGWLister) UpdateGWListeners(gateway string, listeners []string)
func (*SvcGWLister) UpdateGatewayGWclassMappings ¶
func (v *SvcGWLister) UpdateGatewayGWclassMappings(gateway, gwclass string)
func (*SvcGWLister) UpdateGatewayMappings ¶
func (v *SvcGWLister) UpdateGatewayMappings(gateway string, svcListener map[string][]string, service string)
type SvcLister ¶
type SvcLister struct { SISvcStore *ObjectStore // contains filtered or unexported fields }
func OshiftRouteSvcLister ¶
func OshiftRouteSvcLister() *SvcLister
func SharedMultiClusterIngressSvcLister ¶
func SharedMultiClusterIngressSvcLister() *SvcLister
func SharedSvcLister ¶
func SharedSvcLister() *SvcLister
func (*SvcLister) IngressMappings ¶
func (v *SvcLister) IngressMappings(ns string) *SvcNSCache
func (*SvcLister) MultiClusterIngressMappings ¶
func (v *SvcLister) MultiClusterIngressMappings(ns string) *SvcNSCache
type SvcNSCache ¶
type SvcNSCache struct { IngressLock sync.RWMutex IngNSCache SecretIngNSCache IngHostCache SecretHostNameNSCache IngClassNSCache // contains filtered or unexported fields }
func (*SvcNSCache) AddIngressToSecretsMappings ¶
func (v *SvcNSCache) AddIngressToSecretsMappings(secretNS, ingName, secretName string)
func (*SvcNSCache) AddSecretsToIngressMappings ¶
func (v *SvcNSCache) AddSecretsToIngressMappings(ingressNS, ingName, secretName string)
func (*SvcNSCache) DeleteClassToIngMapping ¶
func (v *SvcNSCache) DeleteClassToIngMapping(className string) bool
func (*SvcNSCache) DeleteSIToSvcMapping ¶
func (*SvcNSCache) DeleteSecretToIngMapping ¶
func (v *SvcNSCache) DeleteSecretToIngMapping(secretName string) bool
func (*SvcNSCache) DeleteSvcToIngMapping ¶
func (v *SvcNSCache) DeleteSvcToIngMapping(svcName string) bool
func (*SvcNSCache) DeleteSvcToSIMapping ¶
func (*SvcNSCache) GetClassToIng ¶
func (v *SvcNSCache) GetClassToIng(className string) (bool, []string)
func (*SvcNSCache) GetSIToSvc ¶
func (*SvcNSCache) GetSecretToIng ¶
func (v *SvcNSCache) GetSecretToIng(secretName string) (bool, []string)
func (*SvcNSCache) GetSvcToIng ¶
func (v *SvcNSCache) GetSvcToIng(svcName string) (bool, []string)
func (*SvcNSCache) GetSvcToSI ¶
func (*SvcNSCache) RemoveIngressClassMappings ¶
func (v *SvcNSCache) RemoveIngressClassMappings(ingNSName string)
func (*SvcNSCache) RemoveIngressMappings ¶
func (v *SvcNSCache) RemoveIngressMappings(ingName string) []string
func (*SvcNSCache) RemoveIngressSecretMappings ¶
func (v *SvcNSCache) RemoveIngressSecretMappings(ingNSName string)
func (*SvcNSCache) RemoveSvcFromIngressMappings ¶
func (v *SvcNSCache) RemoveSvcFromIngressMappings(ingName string, svcName string)
func (*SvcNSCache) UpdateClassToIngMapping ¶
func (v *SvcNSCache) UpdateClassToIngMapping(className string, ingressList []string)
func (*SvcNSCache) UpdateIngressClassMappings ¶
func (v *SvcNSCache) UpdateIngressClassMappings(ingName string, ingClass string)
func (*SvcNSCache) UpdateIngressMappings ¶
func (v *SvcNSCache) UpdateIngressMappings(ingName string, svcName string)
func (*SvcNSCache) UpdateSIToSvcMapping ¶
func (*SvcNSCache) UpdateSecretToIngMapping ¶
func (v *SvcNSCache) UpdateSecretToIngMapping(secretName string, ingressList []string)
func (*SvcNSCache) UpdateSvcToIngMapping ¶
func (v *SvcNSCache) UpdateSvcToIngMapping(svcName string, ingressList []string)
func (*SvcNSCache) UpdateSvcToSIMapping ¶
type SvcPodLister ¶
type SvcPodLister struct {
// contains filtered or unexported fields
}
SvcPodLister stores list of pods for a service with matching label selector
func SharedSvcToPodLister ¶
func SharedSvcToPodLister() *SvcPodLister
func (*SvcPodLister) Delete ¶
func (a *SvcPodLister) Delete(key string)
func (*SvcPodLister) Get ¶
func (a *SvcPodLister) Get(key string) (bool, interface{})
func (*SvcPodLister) GetAll ¶
func (a *SvcPodLister) GetAll() interface{}
func (*SvcPodLister) Save ¶
func (a *SvcPodLister) Save(key string, val interface{})
Click to show internal directories.
Click to hide internal directories.