Documentation ¶
Index ¶
- Variables
- func AviSettingToGateway(infraSettingName string, namespace string, key string) ([]string, bool)
- func AviSettingToIng(infraSettingName, namespace, key string) ([]string, bool)
- func AviSettingToRoute(infraSettingName, namespace, key string) ([]string, bool)
- func AviSettingToSvc(infraSettingName string, namespace string, key string) ([]string, bool)
- func BuildL7HostRule(host, key string, vsNode AviVsEvhSniModel)
- func BuildL7Rule(host, key, l7RuleName, namespace string, vsNode AviVsEvhSniModel)
- func BuildL7SSORule(host, key string, vsNode AviVsEvhSniModel)
- func BuildPoolHTTPRule(host, poolPath, ingName, namespace, infraSettingName, key string, ...)
- func DeleteDedicatedEvhVSNode(vsNode *AviEvhVsNode, key string, hostsToRemove []string)
- func DeleteDedicatedVSNode(vsNode *AviVsNode, hostsToRemove []string, key string)
- func DeleteStaleData(routeIgrObj RouteIngressModel, key string, modelList *[]string, ...)
- func DeleteStaleDataForEvh(routeIgrObj RouteIngressModel, key string, modelList *[]string, ...)
- func DeleteStaleDataForModelChange(routeIgrObj RouteIngressModel, namespace, objname, key string, fullsync bool, ...)
- func DeleteStaleDataForModelChangeForEvh(routeIgrObj RouteIngressModel, namespace, objname, key string, fullsync bool, ...)
- func DequeueIngestion(key string, fullsync bool)
- func DerivePassthroughVS(hostname string, key string, routeIgrObj RouteIngressModel) (string, string)
- func DeriveShardVS(hostname string, key string, routeIgrObj RouteIngressModel) (lib.VSNameMetadata, lib.VSNameMetadata)
- func DeriveShardVSForEvh(hostname, key string, routeIgrObj RouteIngressModel) (lib.VSNameMetadata, lib.VSNameMetadata)
- func EPToGateway(epName string, namespace string, key string) ([]string, bool)
- func EPToIng(epName string, namespace string, key string) ([]string, bool)
- func EPToRoute(epName string, namespace string, key string) ([]string, bool)
- func FindAndReplaceEvhInModel(currentEvhNode *AviEvhVsNode, modelEvhNodes []*AviEvhVsNode, key string) bool
- func FindAndReplaceHeaderRewriteHTTPPolicyInModel(vsNode *AviVsNode, httpPolicy *AviHttpPolicySetNode, gslbHost, key string) bool
- func FindAndReplaceRedirectHTTPPolicyInModel(vsNode *AviVsNode, httpPolicy *AviHttpPolicySetNode, hostnames []string, ...) bool
- func FindAndReplaceRedirectHTTPPolicyInModelforEvh(vsNode *AviEvhVsNode, httpPolicy *AviHttpPolicySetNode, hostnames []string, ...) bool
- func FindAndReplaceSniInModel(currentSniNode *AviVsNode, modelSniNodes []*AviVsNode, key string) bool
- func GWClassToGateway(gwClassName string, namespace string, key string) ([]string, bool)
- func GatewayChanges(gwName string, namespace string, key string) ([]string, bool)
- func GetDedicatedVSName(host, infrasettingName string) string
- func GetDefaultSubDomain() []string
- func GetShardVSName(s string, key string, shardSize uint32, prefix ...string) lib.VSNameMetadata
- func GetShardVSPrefix(key string) string
- func HTTPRuleToIng(rrname string, namespace string, key string) ([]string, bool)
- func HostNameShardAndPublish(objType, objname, namespace, key string, fullsync bool, ...)
- func HostRuleToIng(hrname string, namespace string, key string) ([]string, bool)
- func IngClassToIng(ingClassName string, namespace string, key string) ([]string, bool)
- func IngressChanges(ingName string, namespace string, key string) ([]string, bool)
- func L4RuleToSvc(l4RuleName string, namespace string, key string) ([]string, bool)
- func MultiClusterIngressChanges(ingName string, namespace string, key string) ([]string, bool)
- func NodeToIng(nodeName string, namespace string, key string) ([]string, bool)
- func NodeToRoute(nodeName string, namespace string, key string) ([]string, bool)
- func ParseL4ServiceForGateway(svc *corev1.Service, key string) (string, []string)
- func PodToIng(podName string, namespace string, key string) ([]string, bool)
- func PopulateIngHostMap(namespace, hostName, ingName, secretName string, pathsvcMap HostMetadata)
- func ProcessInsecureHosts(routeIgrObj RouteIngressModel, key string, parsedIng IngressConfig, ...)
- func ProcessInsecureHostsForEVH(routeIgrObj RouteIngressModel, key string, parsedIng IngressConfig, ...)
- func ProcessPassthroughHosts(routeIgrObj RouteIngressModel, key string, parsedIng IngressConfig, ...)
- func ProcessSecureHosts(routeIgrObj RouteIngressModel, key string, parsedIng IngressConfig, ...)
- func ProcessSecureHostsForEVH(routeIgrObj RouteIngressModel, key string, parsedIng IngressConfig, ...)
- func PublishKeyToRestLayer(modelName string, key string, sharedQueue *utils.WorkerQueue)
- func RemoveEvhInModel(currentEvhNodeName string, modelEvhNodes []*AviEvhVsNode, key string)
- func RemoveFqdnFromEVHVIP(vsNode *AviEvhVsNode, hostsToRemove []string, key string)
- func RemoveFqdnFromVIP(vsNode *AviVsNode, key string, Fqdns []string)
- func RemoveHeaderRewriteHTTPPolicyInModel(vsNode *AviVsNode, hostname, key string)
- func RemoveRedirectHTTPPolicyInModel(vsNode *AviVsNode, hostnames []string, key string)
- func RemoveRedirectHTTPPolicyInModelForEvh(vsNode *AviEvhVsNode, hostnames []string, key string)
- func RemoveSniInModel(currentSniNodeName string, modelSniNodes []*AviVsNode, key string)
- func RouteChanges(routeName string, namespace string, key string) ([]string, bool)
- func RouteIngrDeletePoolsByHostname(routeIgrObj RouteIngressModel, namespace, objname, key string, fullsync bool, ...)
- func RouteIngrDeletePoolsByHostnameForEvh(routeIgrObj RouteIngressModel, namespace, objname, key string, fullsync bool, ...)
- func SSORuleToIng(srname string, namespace string, key string) ([]string, bool)
- func SecretToGateway(secretName string, namespace string, key string) ([]string, bool)
- func SecretToIng(secretName string, namespace string, key string) ([]string, bool)
- func SecretToMultiClusterIng(secretName string, namespace string, key string) ([]string, bool)
- func SecretToRoute(secretName string, namespace string, key string) ([]string, bool)
- func ServiceChanges(serviceName, namespace, key string) ([]string, bool)
- func ServiceImportToMultiClusterIng(siName string, namespace string, key string) ([]string, bool)
- func SvcToGateway(svcName string, namespace string, key string) ([]string, bool)
- func SvcToIng(svcName string, namespace string, key string) ([]string, bool)
- func SvcToMultiClusterIng(svcName string, namespace string, key string) ([]string, bool)
- func SvcToRoute(svcName string, namespace string, key string) ([]string, bool)
- type AviEvhVsNode
- func (o *AviEvhVsNode) AddFQDNAliasesToHTTPPolicy(hosts []string, key string)
- func (o *AviEvhVsNode) AddFQDNsToModel(hosts []string, gsFqdn, key string)
- func (vsNode *AviEvhVsNode) AddSSLPort(key string)
- func (v *AviEvhVsNode) CalculateCheckSum()
- func (v *AviEvhVsNode) CalculateForGraphChecksum() uint32
- func (o *AviEvhVsNode) CheckCACertNodeNameNChecksum(cacertNodeName string, checksum uint32) bool
- func (o *AviEvhVsNode) CheckHttpPolNameNChecksumForEvh(httpNodeName, hppMapName string, checksum uint32) bool
- func (o *AviEvhVsNode) CheckPGNameNChecksum(pgNodeName string, checksum uint32) bool
- func (o *AviEvhVsNode) CheckPoolNChecksum(poolNodeName string, checksum uint32) bool
- func (o *AviEvhVsNode) CheckSSLCertNodeNameNChecksum(sslNodeName string, checksum uint32) bool
- func (v *AviEvhVsNode) CopyNode() AviModelNode
- func (vsNode *AviEvhVsNode) DeletSSLRefInDedicatedNode(key string)
- func (o *AviEvhVsNode) DeleteCACertRefInEVHNode(cacertNodeName, key string)
- func (vsNode *AviEvhVsNode) DeleteSSLPort(key string)
- func (o *AviEvhVsNode) DeleteSSLRefInEVHNode(sslKeyCertName, key string)
- func (vsNode *AviEvhVsNode) DeleteSecureAppProfile(key string)
- func (v *AviEvhVsNode) GetAnalyticsPolicy() *avimodels.AnalyticsPolicy
- func (v *AviEvhVsNode) GetAnalyticsProfileRef() *string
- func (v *AviEvhVsNode) GetAppProfileRef() *string
- func (v *AviEvhVsNode) GetCheckSum() uint32
- func (v *AviEvhVsNode) GetCommonFields() *AviVsNodeCommonFields
- func (v *AviEvhVsNode) GetEnabled() *bool
- func (v *AviEvhVsNode) GetErrorPageProfileRef() string
- func (v *AviEvhVsNode) GetEvhNodeForName(EVHNodeName string) *AviEvhVsNode
- func (v *AviEvhVsNode) GetGeneratedFields() *AviVsNodeGeneratedFields
- func (v *AviEvhVsNode) GetHttpPolicyRefs() []*AviHttpPolicySetNode
- func (v *AviEvhVsNode) GetHttpPolicySetRefs() []string
- func (v *AviEvhVsNode) GetICAPProfileRefs() []string
- func (v *AviEvhVsNode) GetName() string
- func (v *AviEvhVsNode) GetNetworkSecurityPolicyRef() *string
- func (v *AviEvhVsNode) GetNodeType() string
- func (o *AviEvhVsNode) GetPGForVSByName(pgName string) *AviPoolGroupNode
- func (v *AviEvhVsNode) GetPoolGroupRefs() []*AviPoolGroupNode
- func (v *AviEvhVsNode) GetPoolRefs() []*AviPoolNode
- func (v *AviEvhVsNode) GetPortProtocols() []AviPortHostProtocol
- func (v *AviEvhVsNode) GetSSLKeyCertRefs() []*AviTLSKeyCertNode
- func (v *AviEvhVsNode) GetSSLProfileRef() *string
- func (v *AviEvhVsNode) GetServiceMetadata() lib.ServiceMetadataObj
- func (v *AviEvhVsNode) GetSslKeyAndCertificateRefs() []string
- func (v *AviEvhVsNode) GetTenant() string
- func (v *AviEvhVsNode) GetVHDomainNames() []string
- func (v *AviEvhVsNode) GetVSVIPLoadBalancerIP() string
- func (v *AviEvhVsNode) GetVsDatascriptRefs() []string
- func (v *AviEvhVsNode) GetWafPolicyRef() *string
- func (v *AviEvhVsNode) IsDedicatedVS() bool
- func (v *AviEvhVsNode) IsSecure() bool
- func (v *AviEvhVsNode) IsSharedVS() bool
- func (o *AviEvhVsNode) RemoveFQDNAliasesFromHTTPPolicy(hosts []string, key string)
- func (o *AviEvhVsNode) RemoveFQDNsFromModel(hosts []string, key string)
- func (o *AviEvhVsNode) ReplaceCACertRefInEVHNode(cacertNode *AviTLSKeyCertNode, key string)
- func (o *AviEvhVsNode) ReplaceEvhPGInEVHNode(newPGNode *AviPoolGroupNode, key string)
- func (o *AviEvhVsNode) ReplaceEvhPoolInEVHNode(newPoolNode *AviPoolNode, key string)
- func (o *AviEvhVsNode) ReplaceEvhSSLRefInEVHNode(newSslNode *AviTLSKeyCertNode, key string)
- func (o *AviEvhVsNode) ReplaceHTTPRefInNodeForEvh(httpPGPath AviHostPathPortPoolPG, httpPolName, key string)
- func (v *AviEvhVsNode) SetAnalyticsPolicy(policy *avimodels.AnalyticsPolicy)
- func (v *AviEvhVsNode) SetAnalyticsProfileRef(analyticsProfileRef *string)
- func (v *AviEvhVsNode) SetAppProfileRef(applicationProfileRef *string)
- func (v *AviEvhVsNode) SetEnabled(Enabled *bool)
- func (v *AviEvhVsNode) SetErrorPageProfileRef(errorPageProfileRef string)
- func (v *AviEvhVsNode) SetHttpPolicyRefs(httpPolicyRefs []*AviHttpPolicySetNode)
- func (v *AviEvhVsNode) SetHttpPolicySetRefs(httpPolicySetRefs []string)
- func (v *AviEvhVsNode) SetICAPProfileRefs(ICAPProfileRef []string)
- func (v *AviEvhVsNode) SetName(name string)
- func (v *AviEvhVsNode) SetNetworkSecurityPolicyRef(networkSecuirtyPolicyRef *string)
- func (v *AviEvhVsNode) SetPoolGroupRefs(poolGroupRefs []*AviPoolGroupNode)
- func (v *AviEvhVsNode) SetPoolRefs(poolRefs []*AviPoolNode)
- func (v *AviEvhVsNode) SetPortProtocols(portProto []AviPortHostProtocol)
- func (v *AviEvhVsNode) SetSSLKeyCertRefs(sslKeyCertRefs []*AviTLSKeyCertNode)
- func (v *AviEvhVsNode) SetSSLProfileRef(SSLProfileRef *string)
- func (v *AviEvhVsNode) SetServiceMetadata(serviceMetadata lib.ServiceMetadataObj)
- func (v *AviEvhVsNode) SetSslKeyAndCertificateRefs(sslKeyAndCertificateRefs []string)
- func (v *AviEvhVsNode) SetVHDomainNames(domainNames []string)
- func (v *AviEvhVsNode) SetVSVIPLoadBalancerIP(ip string)
- func (v *AviEvhVsNode) SetVsDatascriptRefs(VsDatascriptRefs []string)
- func (v *AviEvhVsNode) SetWafPolicyRef(wafPolicyRef *string)
- type AviHTTPDataScriptNode
- type AviHTTPSecurity
- type AviHostHeaderRewrite
- type AviHostPathPortPoolPG
- type AviHttpPolicySetNode
- type AviL4PolicyNode
- type AviModelNode
- type AviObjectGraph
- func (o *AviObjectGraph) AddModelNode(node AviModelNode)
- func (o *AviObjectGraph) BuildAdvancedL4Graph(namespace, gatewayName, key string, sharedVipOnSvcLBUsecase bool)
- func (o *AviObjectGraph) BuildCACertNode(tlsNode *AviVsNode, cacert, infraSettingName, host, key string) string
- func (o *AviObjectGraph) BuildCACertNodeForEvh(tlsNode *AviEvhVsNode, cacert, infraSettingName, host, key string) string
- func (o *AviObjectGraph) BuildDedicatedL7VSGraphHostNameShard(vsName, hostname string, routeIgrObj RouteIngressModel, ...)
- func (o *AviObjectGraph) BuildGraphForPassthrough(svclist []IngressHostPathSvc, objName, hostname, namespace, key string, ...)
- func (o *AviObjectGraph) BuildHTTPSecurityPolicyForVSForEvh(vsNode *AviEvhVsNode, hostnames []string, ...)
- func (o *AviObjectGraph) BuildHeaderRewrite(vsNode []*AviVsNode, gslbHost, localHost, key string)
- func (o *AviObjectGraph) BuildL4LBGraph(namespace string, svcName string, key string)
- func (o *AviObjectGraph) BuildL7VSGraphHostNameShard(vsName, hostname string, routeIgrObj RouteIngressModel, ...)
- func (o *AviObjectGraph) BuildModelGraphForInsecureEVH(routeIgrObj RouteIngressModel, host string, ...)
- func (o *AviObjectGraph) BuildModelGraphForSNI(routeIgrObj RouteIngressModel, ingressHostMap SecureHostNameMapProp, ...)
- func (o *AviObjectGraph) BuildModelGraphForSecureEVH(routeIgrObj RouteIngressModel, ingressHostMap SecureHostNameMapProp, ...)
- func (o *AviObjectGraph) BuildPolicyPGPoolsForEVH(vsNode []*AviEvhVsNode, childNode *AviEvhVsNode, ...)
- func (o *AviObjectGraph) BuildPolicyPGPoolsForSNI(vsNode []*AviVsNode, tlsNode *AviVsNode, namespace string, ingName string, ...)
- func (o *AviObjectGraph) BuildPolicyRedirectForVS(vsNode []*AviVsNode, hostnames []string, ...)
- func (o *AviObjectGraph) BuildPolicyRedirectForVSForEvh(vsNode *AviEvhVsNode, hostnames []string, ...)
- func (o *AviObjectGraph) BuildPoolPGPolicyForDedicatedVS(vsNode []*AviVsNode, namespace, ingName, hostname string, ...)
- func (o *AviObjectGraph) BuildPoolSecurity(poolNode *AviPoolNode, tlsData TlsSettings, key string, ...)
- func (o *AviObjectGraph) BuildTlsCertNode(svcLister *objects.SvcLister, tlsNode *AviVsNode, namespace string, ...) bool
- func (o *AviObjectGraph) BuildTlsCertNodeForEvh(svcLister *objects.SvcLister, tlsNode *AviEvhVsNode, namespace string, ...) bool
- func (o *AviObjectGraph) BuildVRFGraph(key, vrfName, nodeName string, deleteFlag bool) error
- func (o *AviObjectGraph) BuildVSForPassthrough(vsName, namespace, hostname, key string, ...) *AviVsNode
- func (v *AviObjectGraph) CalculateCheckSum()
- func (o *AviObjectGraph) ConstructAdvL4PolPoolNodes(vsNode *AviVsNode, gwName, namespace, key string)
- func (o *AviObjectGraph) ConstructAdvL4VsNode(gatewayName, namespace, key string) *AviVsNode
- func (o *AviObjectGraph) ConstructAviL4PolPoolNodes(svcObj *corev1.Service, vsNode *AviVsNode, key string)
- func (o *AviObjectGraph) ConstructAviL4VsNode(svcObj *corev1.Service, key string) *AviVsNode
- func (o *AviObjectGraph) ConstructAviL7SharedVsNodeForEvh(vsName, key string, routeIgrObj RouteIngressModel, dedicated, secure bool)
- func (o *AviObjectGraph) ConstructAviL7VsNode(vsName string, key string, routeIgrObj RouteIngressModel, ...)
- func (o *AviObjectGraph) ConstructHTTPDataScript(vsName string, key string, vsNode *AviVsNode) *AviHTTPDataScriptNode
- func (o *AviObjectGraph) ConstructL4DataScript(vsName string, key string, vsNode *AviVsNode) *AviHTTPDataScriptNode
- func (o *AviObjectGraph) ConstructShardVsPGNode(vsName string, key string, vsNode *AviVsNode) *AviPoolGroupNode
- func (o *AviObjectGraph) ConstructSharedVipPolPoolNodes(vsNode *AviVsNode, sharedVipKey, namespace, key string)
- func (o *AviObjectGraph) ConstructSharedVipSvcLBNode(sharedVipKey, namespace, key string) *AviVsNode
- func (o *AviObjectGraph) ConstructSvcApiL4VsNode(gatewayName, namespace, key string) *AviVsNode
- func (v *AviObjectGraph) DecrementRetryCounter()
- func (o *AviObjectGraph) DeleteObjectsForPassthroughHost(vsName, hostname string, routeIgrObj RouteIngressModel, ...)
- func (o *AviObjectGraph) DeletePoolForHostname(vsName, hostname string, routeIgrObj RouteIngressModel, ...) bool
- func (o *AviObjectGraph) DeletePoolForHostnameForEvh(vsName, hostname string, routeIgrObj RouteIngressModel, ...) bool
- func (o *AviObjectGraph) GetAviEvhVS() []*AviEvhVsNode
- func (o *AviObjectGraph) GetAviHTTPDSNode() []*AviHTTPDataScriptNode
- func (o *AviObjectGraph) GetAviPoolNodeByName(poolname string) *AviPoolNode
- func (o *AviObjectGraph) GetAviPoolNodesByIngress(tenant string, ingName string) []*AviPoolNode
- func (o *AviObjectGraph) GetAviPoolNodesByIngressForEvh(tenant string, ingName string) []*AviPoolNode
- func (o *AviObjectGraph) GetAviVRF() []*AviVrfNode
- func (o *AviObjectGraph) GetAviVS() []*AviVsNode
- func (v *AviObjectGraph) GetCheckSum() uint32
- func (v *AviObjectGraph) GetCopy(key string) (*AviObjectGraph, bool)
- func (o *AviObjectGraph) GetIstioNodes() (*AviPkiProfileNode, *AviTLSKeyCertNode)
- func (o *AviObjectGraph) GetOrderedNodes() []AviModelNode
- func (o *AviObjectGraph) GetPoolGroupByName(pgName string) *AviPoolGroupNode
- func (v *AviObjectGraph) GetRetryCounter() int
- func (o *AviObjectGraph) ManipulateEvhNode(currentEvhNodeName, ingName, namespace, hostname string, ...) bool
- func (o *AviObjectGraph) ManipulateSniNode(currentSniNodeName, ingName, namespace, hostname string, ...) bool
- func (o *AviObjectGraph) RemoveHTTPRefsFromEvh(httpPol, hppmapName string, evhNode *AviEvhVsNode)
- func (o *AviObjectGraph) RemoveHTTPRefsFromSni(httpPol, hppMap string, sniNode *AviVsNode)
- func (o *AviObjectGraph) RemovePGNodeRefs(pgName string, vsNode *AviVsNode)
- func (o *AviObjectGraph) RemovePGNodeRefsForEvh(pgName string, vsNode *AviEvhVsNode)
- func (o *AviObjectGraph) RemovePoolNodeRefs(poolName string)
- func (o *AviObjectGraph) RemovePoolNodeRefsFromEvh(poolName string, evhNode *AviEvhVsNode)
- func (o *AviObjectGraph) RemovePoolNodeRefsFromSni(poolName string, sniNode *AviVsNode)
- func (o *AviObjectGraph) RemovePoolRefsFromPG(poolName string, pgNode *AviPoolGroupNode)
- func (v *AviObjectGraph) SetRetryCounter(num ...int)
- type AviObjectGraphIntf
- type AviPkiProfileNode
- type AviPoolCommonFields
- type AviPoolGeneratedFields
- type AviPoolGroupNode
- type AviPoolMetaServer
- func PopulateServers(poolNode *AviPoolNode, ns string, serviceName string, ingress bool, key string) []AviPoolMetaServer
- func PopulateServersForMultiClusterIngress(poolNode *AviPoolNode, ns, cluster, serviceNamespace, serviceName string, ...) []AviPoolMetaServer
- func PopulateServersForNPL(poolNode *AviPoolNode, ns string, serviceName string, ingress bool, key string) []AviPoolMetaServer
- func PopulateServersForNodePort(poolNode *AviPoolNode, ns string, serviceName string, ingress bool, key string) []AviPoolMetaServer
- type AviPoolNode
- type AviPortHostProtocol
- type AviRedirectPort
- type AviTLSKeyCertNode
- type AviVSVIPNode
- type AviVrfNode
- type AviVsEvhSniModel
- type AviVsNode
- func (o *AviVsNode) AddFQDNAliasesToHTTPPolicy(hosts []string, key string)
- func (o *AviVsNode) AddFQDNsToModel(hosts []string, gsFqdn, key string)
- func (vsNode *AviVsNode) AddSSLPort(key string)
- func (v *AviVsNode) CalculateCheckSum()
- func (v *AviVsNode) CalculateForGraphChecksum() uint32
- func (o *AviVsNode) CheckCACertNodeNameNChecksum(cacertNodeName string, checksum uint32) bool
- func (o *AviVsNode) CheckHttpPolNameNChecksum(httpPolName, hppMapName string, checksum uint32) bool
- func (o *AviVsNode) CheckPGNameNChecksum(pgNodeName string, checksum uint32) bool
- func (o *AviVsNode) CheckPoolNChecksum(poolNodeName string, checksum uint32) bool
- func (o *AviVsNode) CheckSSLCertNodeNameNChecksum(sslNodeName string, checksum uint32) bool
- func (v *AviVsNode) CopyNode() AviModelNode
- func (vsNode *AviVsNode) DeletSSLRefInDedicatedNode(key string)
- func (o *AviVsNode) DeleteCACertRefInSNINode(cacertNodeName, key string)
- func (vsNode *AviVsNode) DeleteSSLPort(key string)
- func (vsNode *AviVsNode) DeleteSecureAppProfile(key string)
- func (v *AviVsNode) GetAnalyticsPolicy() *avimodels.AnalyticsPolicy
- func (v *AviVsNode) GetAnalyticsProfileRef() *string
- func (v *AviVsNode) GetAppProfileRef() *string
- func (v *AviVsNode) GetCheckSum() uint32
- func (v *AviVsNode) GetCommonFields() *AviVsNodeCommonFields
- func (v *AviVsNode) GetEnabled() *bool
- func (v *AviVsNode) GetErrorPageProfileRef() string
- func (v *AviVsNode) GetGeneratedFields() *AviVsNodeGeneratedFields
- func (v *AviVsNode) GetHttpPolicyRefs() []*AviHttpPolicySetNode
- func (v *AviVsNode) GetHttpPolicySetRefs() []string
- func (v *AviVsNode) GetICAPProfileRefs() []string
- func (v *AviVsNode) GetName() string
- func (v *AviVsNode) GetNetworkSecurityPolicyRef() *string
- func (v *AviVsNode) GetNodeType() string
- func (o *AviVsNode) GetPGForVSByName(pgName string) *AviPoolGroupNode
- func (v *AviVsNode) GetPoolGroupRefs() []*AviPoolGroupNode
- func (v *AviVsNode) GetPoolRefs() []*AviPoolNode
- func (v *AviVsNode) GetPortProtocols() []AviPortHostProtocol
- func (v *AviVsNode) GetSSLKeyCertRefs() []*AviTLSKeyCertNode
- func (v *AviVsNode) GetSSLProfileRef() *string
- func (v *AviVsNode) GetServiceMetadata() lib.ServiceMetadataObj
- func (v *AviVsNode) GetSniNodeForName(sniNodeName string) *AviVsNode
- func (v *AviVsNode) GetSslKeyAndCertificateRefs() []string
- func (v *AviVsNode) GetTenant() string
- func (v *AviVsNode) GetVHDomainNames() []string
- func (v *AviVsNode) GetVSVIPLoadBalancerIP() string
- func (v *AviVsNode) GetVsDatascriptRefs() []string
- func (v *AviVsNode) GetWafPolicyRef() *string
- func (v *AviVsNode) IsDedicatedVS() bool
- func (v *AviVsNode) IsSecure() bool
- func (v *AviVsNode) IsSharedVS() bool
- func (o *AviVsNode) RemoveFQDNAliasesFromHTTPPolicy(hosts []string, key string)
- func (o *AviVsNode) RemoveFQDNsFromModel(hosts []string, key string)
- func (o *AviVsNode) ReplaceCACertRefInSNINode(cacertNode *AviTLSKeyCertNode, key string)
- func (o *AviVsNode) ReplaceSniHTTPRefInSNINode(httpPGPath AviHostPathPortPoolPG, httpPolName, key string)
- func (o *AviVsNode) ReplaceSniPGInSNINode(newPGNode *AviPoolGroupNode, key string)
- func (o *AviVsNode) ReplaceSniPoolInSNINode(newPoolNode *AviPoolNode, key string)
- func (o *AviVsNode) ReplaceSniSSLRefInSNINode(newSslNode *AviTLSKeyCertNode, key string)
- func (v *AviVsNode) SetAnalyticsPolicy(policy *avimodels.AnalyticsPolicy)
- func (v *AviVsNode) SetAnalyticsProfileRef(analyticsProfileRef *string)
- func (v *AviVsNode) SetAppProfileRef(applicationProfileRef *string)
- func (v *AviVsNode) SetEnabled(Enabled *bool)
- func (v *AviVsNode) SetErrorPageProfileRef(errorPageProfileRef string)
- func (v *AviVsNode) SetHttpPolicyRefs(httpPolicyRefs []*AviHttpPolicySetNode)
- func (v *AviVsNode) SetHttpPolicySetRefs(httpPolicySetRefs []string)
- func (v *AviVsNode) SetICAPProfileRefs(ICAPProfileRef []string)
- func (v *AviVsNode) SetName(Name string)
- func (v *AviVsNode) SetNetworkSecurityPolicyRef(networkSecurityPolicyRef *string)
- func (v *AviVsNode) SetPoolGroupRefs(poolGroupRefs []*AviPoolGroupNode)
- func (v *AviVsNode) SetPoolRefs(PoolRefs []*AviPoolNode)
- func (v *AviVsNode) SetPortProtocols(portProto []AviPortHostProtocol)
- func (v *AviVsNode) SetSSLKeyCertRefs(sslKeyCertRefs []*AviTLSKeyCertNode)
- func (v *AviVsNode) SetSSLProfileRef(SSLProfileRef *string)
- func (v *AviVsNode) SetServiceMetadata(serviceMetadata lib.ServiceMetadataObj)
- func (v *AviVsNode) SetSslKeyAndCertificateRefs(sslKeyAndCertificateRefs []string)
- func (v *AviVsNode) SetVHDomainNames(domainNames []string)
- func (v *AviVsNode) SetVSVIPLoadBalancerIP(ip string)
- func (v *AviVsNode) SetVsDatascriptRefs(VsDatascriptRefs []string)
- func (v *AviVsNode) SetWafPolicyRef(wafPolicyRef *string)
- type AviVsNodeCommonFields
- type AviVsNodeGeneratedFields
- type DataScript
- type GraphDescriptor
- type GraphSchema
- type HostMetadata
- type HostNameLister
- func (a *HostNameLister) Delete(hostname string)
- func (a *HostNameLister) DeleteNamespace(hostname string)
- func (a *HostNameLister) Get(hostname string) (bool, SecureHostNameMapProp)
- func (a *HostNameLister) GetNamespace(hostname string) (bool, string)
- func (a *HostNameLister) Save(hostname string, hsGraph SecureHostNameMapProp)
- func (a *HostNameLister) SaveNamespace(hostname string, namespace string)
- type HostNamePathSecrets
- type HostNamePathStore
- func (h *HostNamePathStore) DeleteHostPathStore(host string)
- func (h *HostNamePathStore) GetHostPathStore(host string) (bool, map[string][]string)
- func (h *HostNamePathStore) GetHostPathStoreIngresses(host, path string) (bool, []string)
- func (h *HostNamePathStore) GetHostsFromHostPathStore(host, fqdnMatchType string) []string
- func (h *HostNamePathStore) RemoveHostPathStore(host, path string, ing string)
- func (h *HostNamePathStore) SaveHostPathStore(host, path string, ing string)
- type IngressConfig
- type IngressHostMap
- type IngressHostPathSvc
- type K8sIngressModel
- func (m *K8sIngressModel) Exists() bool
- func (m *K8sIngressModel) GetAnnotations() map[string]string
- func (m *K8sIngressModel) GetAviInfraSetting() *akov1beta1.AviInfraSetting
- func (m *K8sIngressModel) GetDiffPathSvc(storedPathSvc map[string][]string, currentPathSvc []IngressHostPathSvc, ...) map[string][]string
- func (m *K8sIngressModel) GetName() string
- func (m *K8sIngressModel) GetNamespace() string
- func (m *K8sIngressModel) GetSpec() interface{}
- func (m *K8sIngressModel) GetSvcLister() *objects.SvcLister
- func (m *K8sIngressModel) GetType() string
- func (m *K8sIngressModel) ParseHostPath() IngressConfig
- type OshiftRouteModel
- func (m *OshiftRouteModel) Exists() bool
- func (m *OshiftRouteModel) GetAnnotations() map[string]string
- func (m *OshiftRouteModel) GetAviInfraSetting() *akov1beta1.AviInfraSetting
- func (m *OshiftRouteModel) GetDiffPathSvc(storedPathSvc map[string][]string, currentPathSvc []IngressHostPathSvc, ...) map[string][]string
- func (m *OshiftRouteModel) GetName() string
- func (m *OshiftRouteModel) GetNamespace() string
- func (m *OshiftRouteModel) GetSpec() interface{}
- func (m *OshiftRouteModel) GetSvcLister() *objects.SvcLister
- func (m *OshiftRouteModel) GetType() string
- func (or *OshiftRouteModel) ParseHostPath() IngressConfig
- type PassthroughSettings
- type RouteIngressModel
- type SecureHostNameMapProp
- type StaticRouteDetails
- type TlsSettings
- type Validator
- func (v *Validator) IsValidHostName(hostname string) bool
- func (v *Validator) ParseHostPathForIngress(ns string, ingName string, ingSpec networkingv1.IngressSpec, ...) IngressConfig
- func (v *Validator) ParseHostPathForMultiClusterIngress(ns string, ingName string, ingSpec *v1alpha1.MultiClusterIngressSpec, ...) IngressConfig
- func (v *Validator) ParseHostPathForRoute(ns string, routeName string, routeSpec routev1.RouteSpec, key string) IngressConfig
Constants ¶
This section is empty.
Variables ¶
var ( Service = GraphSchema{ Type: "Service", GetParentIngresses: SvcToIng, GetParentRoutes: SvcToRoute, GetParentGateways: SvcToGateway, GetParentMultiClusterIngresses: SvcToMultiClusterIng, } Type: "SharedVipService", GetParentServices: ServiceChanges, } Ingress = GraphSchema{ Type: "Ingress", GetParentIngresses: IngressChanges, } IngressClass = GraphSchema{ Type: "IngressClass", GetParentIngresses: IngClassToIng, } Endpoint = GraphSchema{ Type: "Endpoints", GetParentIngresses: EPToIng, GetParentRoutes: EPToRoute, GetParentGateways: EPToGateway, } Pod = GraphSchema{ Type: "Pod", GetParentIngresses: PodToIng, } Node = GraphSchema{ Type: "Node", GetParentIngresses: NodeToIng, GetParentRoutes: NodeToRoute, } Secret = GraphSchema{ Type: "Secret", GetParentIngresses: SecretToIng, GetParentRoutes: SecretToRoute, GetParentGateways: SecretToGateway, GetParentMultiClusterIngresses: SecretToMultiClusterIng, } Route = GraphSchema{ Type: utils.OshiftRoute, GetParentRoutes: RouteChanges, } HostRule = GraphSchema{ Type: "HostRule", GetParentIngresses: HostRuleToIng, GetParentRoutes: HostRuleToIng, } HTTPRule = GraphSchema{ Type: "HTTPRule", GetParentIngresses: HTTPRuleToIng, GetParentRoutes: HTTPRuleToIng, } Gateway = GraphSchema{ Type: "Gateway", GetParentGateways: GatewayChanges, } GatewayClass = GraphSchema{ Type: "GatewayClass", GetParentGateways: GWClassToGateway, } AviInfraSetting = GraphSchema{ Type: "AviInfraSetting", GetParentIngresses: AviSettingToIng, GetParentGateways: AviSettingToGateway, GetParentServices: AviSettingToSvc, GetParentRoutes: AviSettingToRoute, } MultiClusterIngress = GraphSchema{ Type: lib.MultiClusterIngress, GetParentMultiClusterIngresses: MultiClusterIngressChanges, } ServiceImport = GraphSchema{ Type: lib.ServiceImport, GetParentMultiClusterIngresses: ServiceImportToMultiClusterIng, } SSORule = GraphSchema{ Type: lib.SSORule, GetParentIngresses: SSORuleToIng, GetParentRoutes: SSORuleToIng, } NamespaceNetworkInfos = GraphSchema{ Type: utils.NamespaceNetworkInfo, GetParentGateways: t1LRNSToGateway, GetParentIngresses: t1LRNSToIngress, } SupportedGraphTypes = GraphDescriptor{ Ingress, IngressClass, Service, SharedVipService, Pod, Endpoint, Secret, Route, Node, HostRule, HTTPRule, Gateway, GatewayClass, AviInfraSetting, MultiClusterIngress, ServiceImport, SSORule, L4Rule, NamespaceNetworkInfos, } )
var ( L4Rule = GraphSchema{ Type: lib.L4Rule, GetParentServices: L4RuleToSvc, } )
Functions ¶
func AviSettingToGateway ¶
func AviSettingToIng ¶
func AviSettingToRoute ¶
func AviSettingToSvc ¶
func BuildL7HostRule ¶
func BuildL7HostRule(host, key string, vsNode AviVsEvhSniModel)
func BuildL7Rule ¶
func BuildL7Rule(host, key, l7RuleName, namespace string, vsNode AviVsEvhSniModel)
func BuildL7SSORule ¶
func BuildL7SSORule(host, key string, vsNode AviVsEvhSniModel)
func BuildPoolHTTPRule ¶
func BuildPoolHTTPRule(host, poolPath, ingName, namespace, infraSettingName, key string, vsNode AviVsEvhSniModel, isSNI, isDedicated bool)
BuildPoolHTTPRule notes when we get an ingress update and we are building the corresponding pools of that ingress we need to get all httprules which match ingress's host/path
func DeleteDedicatedEvhVSNode ¶
func DeleteDedicatedEvhVSNode(vsNode *AviEvhVsNode, key string, hostsToRemove []string)
func DeleteDedicatedVSNode ¶
func DeleteStaleData ¶
func DeleteStaleData(routeIgrObj RouteIngressModel, key string, modelList *[]string, Storedhosts map[string]*objects.RouteIngrhost, hostsMap map[string]*objects.RouteIngrhost)
DeleteStaleData : delete pool, fqdn and redirect policy which are present in the object store but no longer required.
func DeleteStaleDataForEvh ¶
func DeleteStaleDataForEvh(routeIgrObj RouteIngressModel, key string, modelList *[]string, Storedhosts map[string]*objects.RouteIngrhost, hostsMap map[string]*objects.RouteIngrhost)
DeleteStaleData : delete pool, EVH VS and redirect policy which are present in the object store but no longer required.
func DeleteStaleDataForModelChange ¶
func DeleteStaleDataForModelChange(routeIgrObj RouteIngressModel, namespace, objname, key string, fullsync bool, sharedQueue *utils.WorkerQueue)
func DeleteStaleDataForModelChangeForEvh ¶
func DeleteStaleDataForModelChangeForEvh(routeIgrObj RouteIngressModel, namespace, objname, key string, fullsync bool, sharedQueue *utils.WorkerQueue)
func DequeueIngestion ¶
func DerivePassthroughVS ¶
func DerivePassthroughVS(hostname string, key string, routeIgrObj RouteIngressModel) (string, string)
func DeriveShardVS ¶
func DeriveShardVS(hostname string, key string, routeIgrObj RouteIngressModel) (lib.VSNameMetadata, lib.VSNameMetadata)
returns old and new models if changed, else just the current one.
func DeriveShardVSForEvh ¶
func DeriveShardVSForEvh(hostname, key string, routeIgrObj RouteIngressModel) (lib.VSNameMetadata, lib.VSNameMetadata)
func FindAndReplaceEvhInModel ¶
func FindAndReplaceEvhInModel(currentEvhNode *AviEvhVsNode, modelEvhNodes []*AviEvhVsNode, key string) bool
func FindAndReplaceHeaderRewriteHTTPPolicyInModel ¶
func FindAndReplaceHeaderRewriteHTTPPolicyInModel(vsNode *AviVsNode, httpPolicy *AviHttpPolicySetNode, gslbHost, key string) bool
func FindAndReplaceRedirectHTTPPolicyInModel ¶
func FindAndReplaceRedirectHTTPPolicyInModel(vsNode *AviVsNode, httpPolicy *AviHttpPolicySetNode, hostnames []string, key string) bool
func FindAndReplaceRedirectHTTPPolicyInModelforEvh ¶
func FindAndReplaceRedirectHTTPPolicyInModelforEvh(vsNode *AviEvhVsNode, httpPolicy *AviHttpPolicySetNode, hostnames []string, key string) bool
As either HttpSecurityPolicy or HttpRedirect policy exists, using same function for both.
func GWClassToGateway ¶
func GatewayChanges ¶
func GetDedicatedVSName ¶
func GetDefaultSubDomain ¶
func GetDefaultSubDomain() []string
func GetShardVSName ¶
func GetShardVSPrefix ¶
func HTTPRuleToIng ¶
func HostNameShardAndPublish ¶
func HostNameShardAndPublish(objType, objname, namespace, key string, fullsync bool, sharedQueue *utils.WorkerQueue)
HostNameShardAndPublish: Create model from supported objects - route/ingress, and publish to rest layer
func HostRuleToIng ¶
func IngClassToIng ¶
func IngressChanges ¶
func L4RuleToSvc ¶
func PodToIng ¶
PodToIng fetches the list of impacted Ingresses from Pod update. First fetch list of Services for the Pod. Then get list of Ingresses for the Services.
func PopulateIngHostMap ¶
func PopulateIngHostMap(namespace, hostName, ingName, secretName string, pathsvcMap HostMetadata)
func ProcessInsecureHosts ¶
func ProcessInsecureHosts(routeIgrObj RouteIngressModel, key string, parsedIng IngressConfig, modelList *[]string, Storedhosts map[string]*objects.RouteIngrhost, hostsMap map[string]*objects.RouteIngrhost)
func ProcessInsecureHostsForEVH ¶
func ProcessInsecureHostsForEVH(routeIgrObj RouteIngressModel, key string, parsedIng IngressConfig, modelList *[]string, Storedhosts map[string]*objects.RouteIngrhost, hostsMap map[string]*objects.RouteIngrhost)
func ProcessPassthroughHosts ¶
func ProcessPassthroughHosts(routeIgrObj RouteIngressModel, key string, parsedIng IngressConfig, modelList *[]string, Storedhosts map[string]*objects.RouteIngrhost, hostsMap map[string]*objects.RouteIngrhost)
func ProcessSecureHosts ¶
func ProcessSecureHosts(routeIgrObj RouteIngressModel, key string, parsedIng IngressConfig, modelList *[]string, Storedhosts map[string]*objects.RouteIngrhost, hostsMap map[string]*objects.RouteIngrhost, fullsync bool, sharedQueue *utils.WorkerQueue)
func ProcessSecureHostsForEVH ¶
func ProcessSecureHostsForEVH(routeIgrObj RouteIngressModel, key string, parsedIng IngressConfig, modelList *[]string, Storedhosts map[string]*objects.RouteIngrhost, hostsMap map[string]*objects.RouteIngrhost, fullsync bool, sharedQueue *utils.WorkerQueue)
func PublishKeyToRestLayer ¶
func PublishKeyToRestLayer(modelName string, key string, sharedQueue *utils.WorkerQueue)
func RemoveEvhInModel ¶
func RemoveEvhInModel(currentEvhNodeName string, modelEvhNodes []*AviEvhVsNode, key string)
func RemoveFqdnFromEVHVIP ¶
func RemoveFqdnFromEVHVIP(vsNode *AviEvhVsNode, hostsToRemove []string, key string)
func RemoveFqdnFromVIP ¶
func RemoveRedirectHTTPPolicyInModelForEvh ¶
func RemoveRedirectHTTPPolicyInModelForEvh(vsNode *AviEvhVsNode, hostnames []string, key string)
As either HttpSecurity policy or http redirect policy exists, using same function for both.
func RemoveSniInModel ¶
func RouteChanges ¶
func RouteIngrDeletePoolsByHostname ¶
func RouteIngrDeletePoolsByHostname(routeIgrObj RouteIngressModel, namespace, objname, key string, fullsync bool, sharedQueue *utils.WorkerQueue)
RouteIngrDeletePoolsByHostname : Based on DeletePoolsByHostname, delete pools and policies that are no longer required
func RouteIngrDeletePoolsByHostnameForEvh ¶
func RouteIngrDeletePoolsByHostnameForEvh(routeIgrObj RouteIngressModel, namespace, objname, key string, fullsync bool, sharedQueue *utils.WorkerQueue)
RouteIngrDeletePoolsByHostname : Based on DeletePoolsByHostname, delete pools and policies that are no longer required
func SecretToGateway ¶
func SecretToIng ¶
func SecretToMultiClusterIng ¶
func SecretToRoute ¶
func ServiceChanges ¶
func SvcToGateway ¶
func SvcToMultiClusterIng ¶
Types ¶
type AviEvhVsNode ¶
type AviEvhVsNode struct { EVHParent bool VHParentName string VHDomainNames []string EvhNodes []*AviEvhVsNode EvhHostName string AviMarkers utils.AviObjectMarkers // props from avi vs node Name string Tenant string ServiceEngineGroup string ApplicationProfile string NetworkProfile string EnableRhi *bool Enabled *bool PortProto []AviPortHostProtocol // for listeners DefaultPool string CloudConfigCksum uint32 DefaultPoolGroup string HTTPChecksum uint32 PoolGroupRefs []*AviPoolGroupNode PoolRefs []*AviPoolNode HTTPDSrefs []*AviHTTPDataScriptNode CACertRefs []*AviTLSKeyCertNode SSLKeyCertRefs []*AviTLSKeyCertNode HttpPolicyRefs []*AviHttpPolicySetNode VSVIPRefs []*AviVSVIPNode TLSType string ServiceMetadata lib.ServiceMetadataObj VrfContext string ICAPProfileRefs []string ErrorPageProfileRef string HttpPolicySetRefs []string Paths []string IngressNames []string Dedicated bool VHMatches []*avimodels.VHMatch Secure bool AviVsNodeCommonFields AviVsNodeGeneratedFields }
func (*AviEvhVsNode) AddFQDNAliasesToHTTPPolicy ¶
func (o *AviEvhVsNode) AddFQDNAliasesToHTTPPolicy(hosts []string, key string)
func (*AviEvhVsNode) AddFQDNsToModel ¶
func (o *AviEvhVsNode) AddFQDNsToModel(hosts []string, gsFqdn, key string)
func (*AviEvhVsNode) AddSSLPort ¶
func (vsNode *AviEvhVsNode) AddSSLPort(key string)
func (*AviEvhVsNode) CalculateCheckSum ¶
func (v *AviEvhVsNode) CalculateCheckSum()
func (*AviEvhVsNode) CalculateForGraphChecksum ¶
func (v *AviEvhVsNode) CalculateForGraphChecksum() uint32
func (*AviEvhVsNode) CheckCACertNodeNameNChecksum ¶
func (o *AviEvhVsNode) CheckCACertNodeNameNChecksum(cacertNodeName string, checksum uint32) bool
func (*AviEvhVsNode) CheckHttpPolNameNChecksumForEvh ¶
func (o *AviEvhVsNode) CheckHttpPolNameNChecksumForEvh(httpNodeName, hppMapName string, checksum uint32) bool
func (*AviEvhVsNode) CheckPGNameNChecksum ¶
func (o *AviEvhVsNode) CheckPGNameNChecksum(pgNodeName string, checksum uint32) bool
func (*AviEvhVsNode) CheckPoolNChecksum ¶
func (o *AviEvhVsNode) CheckPoolNChecksum(poolNodeName string, checksum uint32) bool
func (*AviEvhVsNode) CheckSSLCertNodeNameNChecksum ¶
func (o *AviEvhVsNode) CheckSSLCertNodeNameNChecksum(sslNodeName string, checksum uint32) bool
func (*AviEvhVsNode) CopyNode ¶
func (v *AviEvhVsNode) CopyNode() AviModelNode
func (*AviEvhVsNode) DeletSSLRefInDedicatedNode ¶
func (vsNode *AviEvhVsNode) DeletSSLRefInDedicatedNode(key string)
TODO: Next PR opt: make part of Avivs model interface
func (*AviEvhVsNode) DeleteCACertRefInEVHNode ¶
func (o *AviEvhVsNode) DeleteCACertRefInEVHNode(cacertNodeName, key string)
func (*AviEvhVsNode) DeleteSSLPort ¶
func (vsNode *AviEvhVsNode) DeleteSSLPort(key string)
TODO: Next PR Opt: make part of Avivsevhsni model interface
func (*AviEvhVsNode) DeleteSSLRefInEVHNode ¶
func (o *AviEvhVsNode) DeleteSSLRefInEVHNode(sslKeyCertName, key string)
func (*AviEvhVsNode) DeleteSecureAppProfile ¶
func (vsNode *AviEvhVsNode) DeleteSecureAppProfile(key string)
func (*AviEvhVsNode) GetAnalyticsPolicy ¶
func (v *AviEvhVsNode) GetAnalyticsPolicy() *avimodels.AnalyticsPolicy
func (*AviEvhVsNode) GetAnalyticsProfileRef ¶
func (v *AviEvhVsNode) GetAnalyticsProfileRef() *string
func (*AviEvhVsNode) GetAppProfileRef ¶
func (v *AviEvhVsNode) GetAppProfileRef() *string
func (*AviEvhVsNode) GetCheckSum ¶
func (v *AviEvhVsNode) GetCheckSum() uint32
func (*AviEvhVsNode) GetCommonFields ¶
func (v *AviEvhVsNode) GetCommonFields() *AviVsNodeCommonFields
func (*AviEvhVsNode) GetEnabled ¶
func (v *AviEvhVsNode) GetEnabled() *bool
func (*AviEvhVsNode) GetErrorPageProfileRef ¶
func (v *AviEvhVsNode) GetErrorPageProfileRef() string
func (*AviEvhVsNode) GetEvhNodeForName ¶
func (v *AviEvhVsNode) GetEvhNodeForName(EVHNodeName string) *AviEvhVsNode
func (*AviEvhVsNode) GetGeneratedFields ¶
func (v *AviEvhVsNode) GetGeneratedFields() *AviVsNodeGeneratedFields
func (*AviEvhVsNode) GetHttpPolicyRefs ¶
func (v *AviEvhVsNode) GetHttpPolicyRefs() []*AviHttpPolicySetNode
func (*AviEvhVsNode) GetHttpPolicySetRefs ¶
func (v *AviEvhVsNode) GetHttpPolicySetRefs() []string
func (*AviEvhVsNode) GetICAPProfileRefs ¶
func (v *AviEvhVsNode) GetICAPProfileRefs() []string
func (*AviEvhVsNode) GetName ¶
func (v *AviEvhVsNode) GetName() string
func (*AviEvhVsNode) GetNetworkSecurityPolicyRef ¶
func (v *AviEvhVsNode) GetNetworkSecurityPolicyRef() *string
func (*AviEvhVsNode) GetNodeType ¶
func (v *AviEvhVsNode) GetNodeType() string
func (*AviEvhVsNode) GetPGForVSByName ¶
func (o *AviEvhVsNode) GetPGForVSByName(pgName string) *AviPoolGroupNode
func (*AviEvhVsNode) GetPoolGroupRefs ¶
func (v *AviEvhVsNode) GetPoolGroupRefs() []*AviPoolGroupNode
func (*AviEvhVsNode) GetPoolRefs ¶
func (v *AviEvhVsNode) GetPoolRefs() []*AviPoolNode
func (*AviEvhVsNode) GetPortProtocols ¶
func (v *AviEvhVsNode) GetPortProtocols() []AviPortHostProtocol
func (*AviEvhVsNode) GetSSLKeyCertRefs ¶
func (v *AviEvhVsNode) GetSSLKeyCertRefs() []*AviTLSKeyCertNode
func (*AviEvhVsNode) GetSSLProfileRef ¶
func (v *AviEvhVsNode) GetSSLProfileRef() *string
func (*AviEvhVsNode) GetServiceMetadata ¶
func (v *AviEvhVsNode) GetServiceMetadata() lib.ServiceMetadataObj
func (*AviEvhVsNode) GetSslKeyAndCertificateRefs ¶
func (v *AviEvhVsNode) GetSslKeyAndCertificateRefs() []string
func (*AviEvhVsNode) GetTenant ¶
func (v *AviEvhVsNode) GetTenant() string
func (*AviEvhVsNode) GetVHDomainNames ¶
func (v *AviEvhVsNode) GetVHDomainNames() []string
func (*AviEvhVsNode) GetVSVIPLoadBalancerIP ¶
func (v *AviEvhVsNode) GetVSVIPLoadBalancerIP() string
func (*AviEvhVsNode) GetVsDatascriptRefs ¶
func (v *AviEvhVsNode) GetVsDatascriptRefs() []string
func (*AviEvhVsNode) GetWafPolicyRef ¶
func (v *AviEvhVsNode) GetWafPolicyRef() *string
func (*AviEvhVsNode) IsDedicatedVS ¶
func (v *AviEvhVsNode) IsDedicatedVS() bool
func (*AviEvhVsNode) IsSecure ¶
func (v *AviEvhVsNode) IsSecure() bool
func (*AviEvhVsNode) IsSharedVS ¶
func (v *AviEvhVsNode) IsSharedVS() bool
func (*AviEvhVsNode) RemoveFQDNAliasesFromHTTPPolicy ¶
func (o *AviEvhVsNode) RemoveFQDNAliasesFromHTTPPolicy(hosts []string, key string)
func (*AviEvhVsNode) RemoveFQDNsFromModel ¶
func (o *AviEvhVsNode) RemoveFQDNsFromModel(hosts []string, key string)
func (*AviEvhVsNode) ReplaceCACertRefInEVHNode ¶
func (o *AviEvhVsNode) ReplaceCACertRefInEVHNode(cacertNode *AviTLSKeyCertNode, key string)
func (*AviEvhVsNode) ReplaceEvhPGInEVHNode ¶
func (o *AviEvhVsNode) ReplaceEvhPGInEVHNode(newPGNode *AviPoolGroupNode, key string)
func (*AviEvhVsNode) ReplaceEvhPoolInEVHNode ¶
func (o *AviEvhVsNode) ReplaceEvhPoolInEVHNode(newPoolNode *AviPoolNode, key string)
func (*AviEvhVsNode) ReplaceEvhSSLRefInEVHNode ¶
func (o *AviEvhVsNode) ReplaceEvhSSLRefInEVHNode(newSslNode *AviTLSKeyCertNode, key string)
func (*AviEvhVsNode) ReplaceHTTPRefInNodeForEvh ¶
func (o *AviEvhVsNode) ReplaceHTTPRefInNodeForEvh(httpPGPath AviHostPathPortPoolPG, httpPolName, key string)
func (*AviEvhVsNode) SetAnalyticsPolicy ¶
func (v *AviEvhVsNode) SetAnalyticsPolicy(policy *avimodels.AnalyticsPolicy)
func (*AviEvhVsNode) SetAnalyticsProfileRef ¶
func (v *AviEvhVsNode) SetAnalyticsProfileRef(analyticsProfileRef *string)
func (*AviEvhVsNode) SetAppProfileRef ¶
func (v *AviEvhVsNode) SetAppProfileRef(applicationProfileRef *string)
func (*AviEvhVsNode) SetEnabled ¶
func (v *AviEvhVsNode) SetEnabled(Enabled *bool)
func (*AviEvhVsNode) SetErrorPageProfileRef ¶
func (v *AviEvhVsNode) SetErrorPageProfileRef(errorPageProfileRef string)
func (*AviEvhVsNode) SetHttpPolicyRefs ¶
func (v *AviEvhVsNode) SetHttpPolicyRefs(httpPolicyRefs []*AviHttpPolicySetNode)
func (*AviEvhVsNode) SetHttpPolicySetRefs ¶
func (v *AviEvhVsNode) SetHttpPolicySetRefs(httpPolicySetRefs []string)
func (*AviEvhVsNode) SetICAPProfileRefs ¶
func (v *AviEvhVsNode) SetICAPProfileRefs(ICAPProfileRef []string)
func (*AviEvhVsNode) SetName ¶
func (v *AviEvhVsNode) SetName(name string)
func (*AviEvhVsNode) SetNetworkSecurityPolicyRef ¶
func (v *AviEvhVsNode) SetNetworkSecurityPolicyRef(networkSecuirtyPolicyRef *string)
func (*AviEvhVsNode) SetPoolGroupRefs ¶
func (v *AviEvhVsNode) SetPoolGroupRefs(poolGroupRefs []*AviPoolGroupNode)
func (*AviEvhVsNode) SetPoolRefs ¶
func (v *AviEvhVsNode) SetPoolRefs(poolRefs []*AviPoolNode)
func (*AviEvhVsNode) SetPortProtocols ¶
func (v *AviEvhVsNode) SetPortProtocols(portProto []AviPortHostProtocol)
func (*AviEvhVsNode) SetSSLKeyCertRefs ¶
func (v *AviEvhVsNode) SetSSLKeyCertRefs(sslKeyCertRefs []*AviTLSKeyCertNode)
func (*AviEvhVsNode) SetSSLProfileRef ¶
func (v *AviEvhVsNode) SetSSLProfileRef(SSLProfileRef *string)
func (*AviEvhVsNode) SetServiceMetadata ¶
func (v *AviEvhVsNode) SetServiceMetadata(serviceMetadata lib.ServiceMetadataObj)
func (*AviEvhVsNode) SetSslKeyAndCertificateRefs ¶
func (v *AviEvhVsNode) SetSslKeyAndCertificateRefs(sslKeyAndCertificateRefs []string)
func (*AviEvhVsNode) SetVHDomainNames ¶
func (v *AviEvhVsNode) SetVHDomainNames(domainNames []string)
func (*AviEvhVsNode) SetVSVIPLoadBalancerIP ¶
func (v *AviEvhVsNode) SetVSVIPLoadBalancerIP(ip string)
func (*AviEvhVsNode) SetVsDatascriptRefs ¶
func (v *AviEvhVsNode) SetVsDatascriptRefs(VsDatascriptRefs []string)
func (*AviEvhVsNode) SetWafPolicyRef ¶
func (v *AviEvhVsNode) SetWafPolicyRef(wafPolicyRef *string)
type AviHTTPDataScriptNode ¶
type AviHTTPDataScriptNode struct { Name string Tenant string CloudConfigCksum uint32 PoolGroupRefs []string ProtocolParsers []string *DataScript }
func (*AviHTTPDataScriptNode) CalculateCheckSum ¶
func (v *AviHTTPDataScriptNode) CalculateCheckSum()
func (*AviHTTPDataScriptNode) CopyNode ¶
func (v *AviHTTPDataScriptNode) CopyNode() AviModelNode
func (*AviHTTPDataScriptNode) GetCheckSum ¶
func (v *AviHTTPDataScriptNode) GetCheckSum() uint32
func (*AviHTTPDataScriptNode) GetNodeType ¶
func (v *AviHTTPDataScriptNode) GetNodeType() string
type AviHTTPSecurity ¶
type AviHostHeaderRewrite ¶
type AviHostPathPortPoolPG ¶
type AviHostPathPortPoolPG struct { Name string Checksum uint32 Host []string Path []string Port uint32 Pool string PoolGroup string MatchCriteria string Protocol string IngName string }
func (*AviHostPathPortPoolPG) CalculateCheckSum ¶
func (v *AviHostPathPortPoolPG) CalculateCheckSum()
func (*AviHostPathPortPoolPG) GetCheckSum ¶
func (v *AviHostPathPortPoolPG) GetCheckSum() uint32
type AviHttpPolicySetNode ¶
type AviHttpPolicySetNode struct { Name string Tenant string CloudConfigCksum uint32 HppMap []AviHostPathPortPoolPG RedirectPorts []AviRedirectPort HeaderReWrite *AviHostHeaderRewrite SecurityRules []AviHTTPSecurity AviMarkers utils.AviObjectMarkers RequestRules []*avimodels.HTTPRequestRule ResponseRules []*avimodels.HTTPResponseRule }
func (*AviHttpPolicySetNode) CalculateCheckSum ¶
func (v *AviHttpPolicySetNode) CalculateCheckSum()
func (*AviHttpPolicySetNode) CopyNode ¶
func (v *AviHttpPolicySetNode) CopyNode() AviModelNode
func (*AviHttpPolicySetNode) GetCheckSum ¶
func (v *AviHttpPolicySetNode) GetCheckSum() uint32
func (*AviHttpPolicySetNode) GetNodeType ¶
func (v *AviHttpPolicySetNode) GetNodeType() string
type AviL4PolicyNode ¶
type AviL4PolicyNode struct { Name string Tenant string CloudConfigCksum uint32 PortPool []AviHostPathPortPoolPG AviMarkers utils.AviObjectMarkers }
func (*AviL4PolicyNode) CalculateCheckSum ¶
func (v *AviL4PolicyNode) CalculateCheckSum()
func (*AviL4PolicyNode) CopyNode ¶
func (v *AviL4PolicyNode) CopyNode() AviModelNode
func (*AviL4PolicyNode) GetCheckSum ¶
func (v *AviL4PolicyNode) GetCheckSum() uint32
func (*AviL4PolicyNode) GetNodeType ¶
func (v *AviL4PolicyNode) GetNodeType() string
type AviModelNode ¶
type AviModelNode interface { //Each AVIModelNode represents a AVI API object. GetCheckSum() uint32 CalculateCheckSum() GetNodeType() string CopyNode() AviModelNode }
type AviObjectGraph ¶
type AviObjectGraph struct { Name string GraphChecksum uint32 IsVrf bool RetryCount int Validator *Validator Lock sync.RWMutex // contains filtered or unexported fields }
func NewAviObjectGraph ¶
func NewAviObjectGraph() *AviObjectGraph
func (*AviObjectGraph) AddModelNode ¶
func (o *AviObjectGraph) AddModelNode(node AviModelNode)
func (*AviObjectGraph) BuildAdvancedL4Graph ¶
func (o *AviObjectGraph) BuildAdvancedL4Graph(namespace, gatewayName, key string, sharedVipOnSvcLBUsecase bool)
func (*AviObjectGraph) BuildCACertNode ¶
func (o *AviObjectGraph) BuildCACertNode(tlsNode *AviVsNode, cacert, infraSettingName, host, key string) string
BuildCACertNode : Build a new node to store CA cert, this would be referred by the corresponding keycert
func (*AviObjectGraph) BuildCACertNodeForEvh ¶
func (o *AviObjectGraph) BuildCACertNodeForEvh(tlsNode *AviEvhVsNode, cacert, infraSettingName, host, key string) string
BuildCACertNode : Build a new node to store CA cert, this would be referred by the corresponding keycert
func (*AviObjectGraph) BuildDedicatedL7VSGraphHostNameShard ¶
func (o *AviObjectGraph) BuildDedicatedL7VSGraphHostNameShard(vsName, hostname string, routeIgrObj RouteIngressModel, insecureEdgeTermAllow bool, pathsvcMap HostMetadata, key string)
func (*AviObjectGraph) BuildGraphForPassthrough ¶
func (o *AviObjectGraph) BuildGraphForPassthrough(svclist []IngressHostPathSvc, objName, hostname, namespace, key string, redirect bool, infraSetting *akov1beta1.AviInfraSetting)
func (*AviObjectGraph) BuildHTTPSecurityPolicyForVSForEvh ¶
func (o *AviObjectGraph) BuildHTTPSecurityPolicyForVSForEvh(vsNode *AviEvhVsNode, hostnames []string, namespace, ingName, key, infrasettingName string)
func (*AviObjectGraph) BuildHeaderRewrite ¶
func (o *AviObjectGraph) BuildHeaderRewrite(vsNode []*AviVsNode, gslbHost, localHost, key string)
func (*AviObjectGraph) BuildL4LBGraph ¶
func (o *AviObjectGraph) BuildL4LBGraph(namespace string, svcName string, key string)
func (*AviObjectGraph) BuildL7VSGraphHostNameShard ¶
func (o *AviObjectGraph) BuildL7VSGraphHostNameShard(vsName, hostname string, routeIgrObj RouteIngressModel, pathsvc []IngressHostPathSvc, gslbHostHeader string, insecureEdgeTermAllow bool, key string)
func (*AviObjectGraph) BuildModelGraphForInsecureEVH ¶
func (o *AviObjectGraph) BuildModelGraphForInsecureEVH(routeIgrObj RouteIngressModel, host string, infraSetting *akov1beta1.AviInfraSetting, key string, pathsvcmap HostMetadata)
func (*AviObjectGraph) BuildModelGraphForSNI ¶
func (o *AviObjectGraph) BuildModelGraphForSNI(routeIgrObj RouteIngressModel, ingressHostMap SecureHostNameMapProp, sniHosts []string, tlssetting TlsSettings, ingName, namespace string, infraSetting *akov1beta1.AviInfraSetting, sniHost, gsFqdn string, key string)
func (*AviObjectGraph) BuildModelGraphForSecureEVH ¶
func (o *AviObjectGraph) BuildModelGraphForSecureEVH(routeIgrObj RouteIngressModel, ingressHostMap SecureHostNameMapProp, hosts []string, tlssetting TlsSettings, ingName, namespace string, infraSetting *akov1beta1.AviInfraSetting, host, key string, paths HostMetadata)
func (*AviObjectGraph) BuildPolicyPGPoolsForEVH ¶
func (o *AviObjectGraph) BuildPolicyPGPoolsForEVH(vsNode []*AviEvhVsNode, childNode *AviEvhVsNode, namespace, ingName, key string, infraSetting *akov1beta1.AviInfraSetting, hosts []string, paths []IngressHostPathSvc, tlsSettings *TlsSettings, modelType string)
func (*AviObjectGraph) BuildPolicyPGPoolsForSNI ¶
func (o *AviObjectGraph) BuildPolicyPGPoolsForSNI(vsNode []*AviVsNode, tlsNode *AviVsNode, namespace string, ingName string, hostpath TlsSettings, secretName string, key string, isIngr bool, infraSetting *akov1beta1.AviInfraSetting, hostName string)
func (*AviObjectGraph) BuildPolicyRedirectForVS ¶
func (o *AviObjectGraph) BuildPolicyRedirectForVS(vsNode []*AviVsNode, hostnames []string, namespace, infrasettingName, host, key string)
func (*AviObjectGraph) BuildPolicyRedirectForVSForEvh ¶
func (o *AviObjectGraph) BuildPolicyRedirectForVSForEvh(vsNode *AviEvhVsNode, hostnames []string, namespace, ingName, key, infraSettingName string)
func (*AviObjectGraph) BuildPoolPGPolicyForDedicatedVS ¶
func (o *AviObjectGraph) BuildPoolPGPolicyForDedicatedVS(vsNode []*AviVsNode, namespace, ingName, hostname string, infraSetting *akov1beta1.AviInfraSetting, key string, pathFQDNs []string, paths []IngressHostPathSvc, insecureEdgeTermAllow, isIngr bool)
func (*AviObjectGraph) BuildPoolSecurity ¶
func (o *AviObjectGraph) BuildPoolSecurity(poolNode *AviPoolNode, tlsData TlsSettings, key string, aviMarkers utils.AviObjectMarkers)
func (*AviObjectGraph) BuildTlsCertNode ¶
func (o *AviObjectGraph) BuildTlsCertNode(svcLister *objects.SvcLister, tlsNode *AviVsNode, namespace string, tlsData TlsSettings, key, infraSettingName, sniHost string) bool
func (*AviObjectGraph) BuildTlsCertNodeForEvh ¶
func (o *AviObjectGraph) BuildTlsCertNodeForEvh(svcLister *objects.SvcLister, tlsNode *AviEvhVsNode, namespace string, tlsData TlsSettings, key, infraSettingName, host string) bool
func (*AviObjectGraph) BuildVRFGraph ¶
func (o *AviObjectGraph) BuildVRFGraph(key, vrfName, nodeName string, deleteFlag bool) error
BuildVRFGraph : build vrf graph from k8s nodes
func (*AviObjectGraph) BuildVSForPassthrough ¶
func (o *AviObjectGraph) BuildVSForPassthrough(vsName, namespace, hostname, key string, infraSetting *akov1beta1.AviInfraSetting) *AviVsNode
func (*AviObjectGraph) CalculateCheckSum ¶
func (v *AviObjectGraph) CalculateCheckSum()
func (*AviObjectGraph) ConstructAdvL4PolPoolNodes ¶
func (o *AviObjectGraph) ConstructAdvL4PolPoolNodes(vsNode *AviVsNode, gwName, namespace, key string)
func (*AviObjectGraph) ConstructAdvL4VsNode ¶
func (o *AviObjectGraph) ConstructAdvL4VsNode(gatewayName, namespace, key string) *AviVsNode
func (*AviObjectGraph) ConstructAviL4PolPoolNodes ¶
func (o *AviObjectGraph) ConstructAviL4PolPoolNodes(svcObj *corev1.Service, vsNode *AviVsNode, key string)
func (*AviObjectGraph) ConstructAviL4VsNode ¶
func (o *AviObjectGraph) ConstructAviL4VsNode(svcObj *corev1.Service, key string) *AviVsNode
func (*AviObjectGraph) ConstructAviL7SharedVsNodeForEvh ¶
func (o *AviObjectGraph) ConstructAviL7SharedVsNodeForEvh(vsName, key string, routeIgrObj RouteIngressModel, dedicated, secure bool)
func (*AviObjectGraph) ConstructAviL7VsNode ¶
func (o *AviObjectGraph) ConstructAviL7VsNode(vsName string, key string, routeIgrObj RouteIngressModel, dedicatedVs, secureVS bool)
func (*AviObjectGraph) ConstructHTTPDataScript ¶
func (o *AviObjectGraph) ConstructHTTPDataScript(vsName string, key string, vsNode *AviVsNode) *AviHTTPDataScriptNode
func (*AviObjectGraph) ConstructL4DataScript ¶
func (o *AviObjectGraph) ConstructL4DataScript(vsName string, key string, vsNode *AviVsNode) *AviHTTPDataScriptNode
func (*AviObjectGraph) ConstructShardVsPGNode ¶
func (o *AviObjectGraph) ConstructShardVsPGNode(vsName string, key string, vsNode *AviVsNode) *AviPoolGroupNode
func (*AviObjectGraph) ConstructSharedVipPolPoolNodes ¶
func (o *AviObjectGraph) ConstructSharedVipPolPoolNodes(vsNode *AviVsNode, sharedVipKey, namespace, key string)
func (*AviObjectGraph) ConstructSharedVipSvcLBNode ¶
func (o *AviObjectGraph) ConstructSharedVipSvcLBNode(sharedVipKey, namespace, key string) *AviVsNode
func (*AviObjectGraph) ConstructSvcApiL4VsNode ¶
func (o *AviObjectGraph) ConstructSvcApiL4VsNode(gatewayName, namespace, key string) *AviVsNode
func (*AviObjectGraph) DecrementRetryCounter ¶
func (v *AviObjectGraph) DecrementRetryCounter()
func (*AviObjectGraph) DeleteObjectsForPassthroughHost ¶
func (o *AviObjectGraph) DeleteObjectsForPassthroughHost(vsName, hostname string, routeIgrObj RouteIngressModel, pathSvc map[string][]string, infraSettingName, key string, removeFqdn, removeRedir, secure bool)
func (*AviObjectGraph) DeletePoolForHostname ¶
func (o *AviObjectGraph) DeletePoolForHostname(vsName, hostname string, routeIgrObj RouteIngressModel, pathSvc map[string][]string, key string, infraSettingName string, removeFqdn, removeRedir, secure bool) bool
func (*AviObjectGraph) DeletePoolForHostnameForEvh ¶
func (o *AviObjectGraph) DeletePoolForHostnameForEvh(vsName, hostname string, routeIgrObj RouteIngressModel, pathSvc map[string][]string, key, infraSettingName string, removeFqdn, removeRedir, removeRouteIngData, secure bool) bool
func (*AviObjectGraph) GetAviEvhVS ¶
func (o *AviObjectGraph) GetAviEvhVS() []*AviEvhVsNode
func (*AviObjectGraph) GetAviHTTPDSNode ¶
func (o *AviObjectGraph) GetAviHTTPDSNode() []*AviHTTPDataScriptNode
func (*AviObjectGraph) GetAviPoolNodeByName ¶
func (o *AviObjectGraph) GetAviPoolNodeByName(poolname string) *AviPoolNode
func (*AviObjectGraph) GetAviPoolNodesByIngress ¶
func (o *AviObjectGraph) GetAviPoolNodesByIngress(tenant string, ingName string) []*AviPoolNode
func (*AviObjectGraph) GetAviPoolNodesByIngressForEvh ¶
func (o *AviObjectGraph) GetAviPoolNodesByIngressForEvh(tenant string, ingName string) []*AviPoolNode
func (*AviObjectGraph) GetAviVRF ¶
func (o *AviObjectGraph) GetAviVRF() []*AviVrfNode
func (*AviObjectGraph) GetAviVS ¶
func (o *AviObjectGraph) GetAviVS() []*AviVsNode
func (*AviObjectGraph) GetCheckSum ¶
func (v *AviObjectGraph) GetCheckSum() uint32
func (*AviObjectGraph) GetCopy ¶
func (v *AviObjectGraph) GetCopy(key string) (*AviObjectGraph, bool)
GetCopy : Create a copy the model generated by graph layer after acquiring a ReadLock. The copy would be used by rest layer. This would ensure that any subsequent chages made in the model by made graph layer would not impact the rest layer. For all such subsequent changes, a new key would be published, which would be processed by the graph layer later.
func (*AviObjectGraph) GetIstioNodes ¶
func (o *AviObjectGraph) GetIstioNodes() (*AviPkiProfileNode, *AviTLSKeyCertNode)
func (*AviObjectGraph) GetOrderedNodes ¶
func (o *AviObjectGraph) GetOrderedNodes() []AviModelNode
func (*AviObjectGraph) GetPoolGroupByName ¶
func (o *AviObjectGraph) GetPoolGroupByName(pgName string) *AviPoolGroupNode
func (*AviObjectGraph) GetRetryCounter ¶
func (v *AviObjectGraph) GetRetryCounter() int
func (*AviObjectGraph) ManipulateEvhNode ¶
func (o *AviObjectGraph) ManipulateEvhNode(currentEvhNodeName, ingName, namespace, hostname string, pathSvc map[string][]string, vsNode []*AviEvhVsNode, infraSettingName, key string) bool
func (*AviObjectGraph) ManipulateSniNode ¶
func (*AviObjectGraph) RemoveHTTPRefsFromEvh ¶
func (o *AviObjectGraph) RemoveHTTPRefsFromEvh(httpPol, hppmapName string, evhNode *AviEvhVsNode)
func (*AviObjectGraph) RemoveHTTPRefsFromSni ¶
func (o *AviObjectGraph) RemoveHTTPRefsFromSni(httpPol, hppMap string, sniNode *AviVsNode)
func (*AviObjectGraph) RemovePGNodeRefs ¶
func (o *AviObjectGraph) RemovePGNodeRefs(pgName string, vsNode *AviVsNode)
func (*AviObjectGraph) RemovePGNodeRefsForEvh ¶
func (o *AviObjectGraph) RemovePGNodeRefsForEvh(pgName string, vsNode *AviEvhVsNode)
func (*AviObjectGraph) RemovePoolNodeRefs ¶
func (o *AviObjectGraph) RemovePoolNodeRefs(poolName string)
func (*AviObjectGraph) RemovePoolNodeRefsFromEvh ¶
func (o *AviObjectGraph) RemovePoolNodeRefsFromEvh(poolName string, evhNode *AviEvhVsNode)
func (*AviObjectGraph) RemovePoolNodeRefsFromSni ¶
func (o *AviObjectGraph) RemovePoolNodeRefsFromSni(poolName string, sniNode *AviVsNode)
func (*AviObjectGraph) RemovePoolRefsFromPG ¶
func (o *AviObjectGraph) RemovePoolRefsFromPG(poolName string, pgNode *AviPoolGroupNode)
func (*AviObjectGraph) SetRetryCounter ¶
func (v *AviObjectGraph) SetRetryCounter(num ...int)
type AviObjectGraphIntf ¶
type AviObjectGraphIntf interface {
GetOrderedNodes() []AviModelNode
}
type AviPkiProfileNode ¶
type AviPkiProfileNode struct { Name string Tenant string CloudConfigCksum uint32 CACert string AviMarkers utils.AviObjectMarkers }
func (*AviPkiProfileNode) CalculateCheckSum ¶
func (v *AviPkiProfileNode) CalculateCheckSum()
func (*AviPkiProfileNode) CopyNode ¶
func (v *AviPkiProfileNode) CopyNode() AviModelNode
func (*AviPkiProfileNode) GetCheckSum ¶
func (v *AviPkiProfileNode) GetCheckSum() uint32
func (*AviPkiProfileNode) GetNodeType ¶
func (v *AviPkiProfileNode) GetNodeType() string
type AviPoolCommonFields ¶
type AviPoolCommonFields struct { ApplicationPersistenceProfileRef *string HealthMonitorRefs []string LbAlgorithm *string LbAlgorithmHash *string LbAlgorithmConsistentHashHdr *string PkiProfileRef *string SslProfileRef *string SslKeyAndCertificateRef *string }
AviPoolCommonFields struct contains the fields that are:
- expected to be part of the generated code.
- already in use in the code and is part of the generated code.
This struct is added to avoid any collision between the generated and existing struct fields.
func (*AviPoolCommonFields) ConvertToRef ¶
func (o *AviPoolCommonFields) ConvertToRef()
type AviPoolGeneratedFields ¶
type AviPoolGeneratedFields struct { AnalyticsPolicy *v1alpha2.PoolAnalyticsPolicy Enabled *bool MinServersUp *uint32 }
func (*AviPoolGeneratedFields) CalculateCheckSumOfGeneratedCode ¶
func (v *AviPoolGeneratedFields) CalculateCheckSumOfGeneratedCode() uint32
func (*AviPoolGeneratedFields) ConvertToRef ¶
func (o *AviPoolGeneratedFields) ConvertToRef()
type AviPoolGroupNode ¶
type AviPoolGroupNode struct { Name string Tenant string CloudConfigCksum uint32 Members []*avimodels.PoolGroupMember Port string ImplicitPriorityLabel bool AviMarkers utils.AviObjectMarkers }
func (*AviPoolGroupNode) CalculateCheckSum ¶
func (v *AviPoolGroupNode) CalculateCheckSum()
func (*AviPoolGroupNode) CopyNode ¶
func (v *AviPoolGroupNode) CopyNode() AviModelNode
func (*AviPoolGroupNode) GetCheckSum ¶
func (v *AviPoolGroupNode) GetCheckSum() uint32
func (*AviPoolGroupNode) GetNodeType ¶
func (v *AviPoolGroupNode) GetNodeType() string
type AviPoolMetaServer ¶
func PopulateServers ¶
func PopulateServers(poolNode *AviPoolNode, ns string, serviceName string, ingress bool, key string) []AviPoolMetaServer
func PopulateServersForMultiClusterIngress ¶
func PopulateServersForMultiClusterIngress(poolNode *AviPoolNode, ns, cluster, serviceNamespace, serviceName string, key string) []AviPoolMetaServer
func PopulateServersForNPL ¶
func PopulateServersForNPL(poolNode *AviPoolNode, ns string, serviceName string, ingress bool, key string) []AviPoolMetaServer
func PopulateServersForNodePort ¶
func PopulateServersForNodePort(poolNode *AviPoolNode, ns string, serviceName string, ingress bool, key string) []AviPoolMetaServer
type AviPoolNode ¶
type AviPoolNode struct { Name string Tenant string CloudConfigCksum uint32 Port int32 TargetPort intstr.IntOrString PortName string Servers []AviPoolMetaServer Protocol string IngressName string PriorityLabel string ServiceMetadata lib.ServiceMetadataObj SniEnabled bool PkiProfile *AviPkiProfileNode NetworkPlacementSettings map[string]lib.NodeNetworkMap VrfContext string T1Lr string // Only applicable to NSX-T cloud, if this value is set, we automatically should unset the VRF context value. AviMarkers utils.AviObjectMarkers AviPoolCommonFields AviPoolGeneratedFields }
func (*AviPoolNode) CalculateCheckSum ¶
func (v *AviPoolNode) CalculateCheckSum()
func (*AviPoolNode) CopyNode ¶
func (v *AviPoolNode) CopyNode() AviModelNode
func (*AviPoolNode) GetCheckSum ¶
func (v *AviPoolNode) GetCheckSum() uint32
func (*AviPoolNode) GetNodeType ¶
func (v *AviPoolNode) GetNodeType() string
func (*AviPoolNode) UpdatePoolNodeForIstio ¶
func (v *AviPoolNode) UpdatePoolNodeForIstio()
type AviPortHostProtocol ¶
type AviRedirectPort ¶
type AviTLSKeyCertNode ¶
type AviTLSKeyCertNode struct { Name string Tenant string CloudConfigCksum uint32 Key []byte Cert []byte CACert string Port int32 Type string AviMarkers utils.AviObjectMarkers }
func (*AviTLSKeyCertNode) CalculateCheckSum ¶
func (v *AviTLSKeyCertNode) CalculateCheckSum()
func (*AviTLSKeyCertNode) CopyNode ¶
func (v *AviTLSKeyCertNode) CopyNode() AviModelNode
func (*AviTLSKeyCertNode) GetCheckSum ¶
func (v *AviTLSKeyCertNode) GetCheckSum() uint32
func (*AviTLSKeyCertNode) GetNodeType ¶
func (v *AviTLSKeyCertNode) GetNodeType() string
type AviVSVIPNode ¶
type AviVSVIPNode struct { Name string Tenant string CloudConfigCksum uint32 FQDNs []string VrfContext string IPAddress string VipNetworks []akov1beta1.AviInfraSettingVipNetwork EnablePublicIP *bool BGPPeerLabels []string SecurePassthroughNode *AviVsNode InsecurePassthroughNode *AviVsNode T1Lr string }
func (*AviVSVIPNode) CalculateCheckSum ¶
func (v *AviVSVIPNode) CalculateCheckSum()
func (*AviVSVIPNode) CopyNode ¶
func (v *AviVSVIPNode) CopyNode() AviModelNode
func (*AviVSVIPNode) GetCheckSum ¶
func (v *AviVSVIPNode) GetCheckSum() uint32
func (*AviVSVIPNode) GetNodeType ¶
func (v *AviVSVIPNode) GetNodeType() string
type AviVrfNode ¶
type AviVrfNode struct { Name string StaticRoutes []*avimodels.StaticRoute CloudConfigCksum uint32 NodeStaticRoutes map[string]StaticRouteDetails Nodes []string NodeIds map[int]struct{} }
func (*AviVrfNode) CalculateCheckSum ¶
func (v *AviVrfNode) CalculateCheckSum()
func (*AviVrfNode) CopyNode ¶
func (v *AviVrfNode) CopyNode() AviModelNode
func (*AviVrfNode) GetCheckSum ¶
func (v *AviVrfNode) GetCheckSum() uint32
func (*AviVrfNode) GetNodeType ¶
func (v *AviVrfNode) GetNodeType() string
type AviVsEvhSniModel ¶
type AviVsEvhSniModel interface { GetName() string SetName(string) IsDedicatedVS() bool IsSecure() bool GetPortProtocols() []AviPortHostProtocol SetPortProtocols([]AviPortHostProtocol) GetPoolRefs() []*AviPoolNode SetPoolRefs([]*AviPoolNode) GetPoolGroupRefs() []*AviPoolGroupNode SetPoolGroupRefs([]*AviPoolGroupNode) GetSSLKeyCertRefs() []*AviTLSKeyCertNode SetSSLKeyCertRefs([]*AviTLSKeyCertNode) GetHttpPolicyRefs() []*AviHttpPolicySetNode SetHttpPolicyRefs([]*AviHttpPolicySetNode) GetServiceMetadata() lib.ServiceMetadataObj SetServiceMetadata(lib.ServiceMetadataObj) GetSslKeyAndCertificateRefs() []string SetSslKeyAndCertificateRefs([]string) GetWafPolicyRef() *string SetWafPolicyRef(*string) GetHttpPolicySetRefs() []string SetHttpPolicySetRefs([]string) GetAppProfileRef() *string SetAppProfileRef(*string) GetICAPProfileRefs() []string SetICAPProfileRefs([]string) GetAnalyticsProfileRef() *string SetAnalyticsProfileRef(*string) GetErrorPageProfileRef() string SetErrorPageProfileRef(string) GetSSLProfileRef() *string SetSSLProfileRef(*string) GetVsDatascriptRefs() []string SetVsDatascriptRefs([]string) GetEnabled() *bool SetEnabled(*bool) GetAnalyticsPolicy() *avimodels.AnalyticsPolicy SetAnalyticsPolicy(*avimodels.AnalyticsPolicy) GetVSVIPLoadBalancerIP() string SetVSVIPLoadBalancerIP(string) GetVHDomainNames() []string SetVHDomainNames([]string) GetGeneratedFields() *AviVsNodeGeneratedFields GetCommonFields() *AviVsNodeCommonFields GetNetworkSecurityPolicyRef() *string SetNetworkSecurityPolicyRef(*string) GetTenant() string }
AviVsEvhSniModel : High Level interfaces that should be implemented by AviEvhVsNode and AviVsNode
type AviVsNode ¶
type AviVsNode struct { Name string Tenant string ServiceEngineGroup string ApplicationProfile string NetworkProfile string Enabled *bool EnableRhi *bool PortProto []AviPortHostProtocol // for listeners DefaultPool string CloudConfigCksum uint32 DefaultPoolGroup string HTTPChecksum uint32 SNIParent bool PoolGroupRefs []*AviPoolGroupNode PoolRefs []*AviPoolNode HTTPDSrefs []*AviHTTPDataScriptNode SniNodes []*AviVsNode PassthroughChildNodes []*AviVsNode CACertRefs []*AviTLSKeyCertNode SSLKeyCertRefs []*AviTLSKeyCertNode HttpPolicyRefs []*AviHttpPolicySetNode VSVIPRefs []*AviVSVIPNode L4PolicyRefs []*AviL4PolicyNode VHParentName string VHDomainNames []string TLSType string IsSNIChild bool ServiceMetadata lib.ServiceMetadataObj VrfContext string ICAPProfileRefs []string ErrorPageProfileRef string HttpPolicySetRefs []string AviMarkers utils.AviObjectMarkers Paths []string IngressNames []string Dedicated bool IsL4VS bool Secure bool AviVsNodeCommonFields AviVsNodeGeneratedFields }
func (*AviVsNode) AddFQDNAliasesToHTTPPolicy ¶
func (*AviVsNode) AddFQDNsToModel ¶
func (*AviVsNode) AddSSLPort ¶
func (*AviVsNode) CalculateCheckSum ¶
func (v *AviVsNode) CalculateCheckSum()
func (*AviVsNode) CalculateForGraphChecksum ¶
func (*AviVsNode) CheckCACertNodeNameNChecksum ¶
func (*AviVsNode) CheckHttpPolNameNChecksum ¶
func (*AviVsNode) CheckPGNameNChecksum ¶
func (*AviVsNode) CheckPoolNChecksum ¶
func (*AviVsNode) CheckSSLCertNodeNameNChecksum ¶
func (*AviVsNode) CopyNode ¶
func (v *AviVsNode) CopyNode() AviModelNode
func (*AviVsNode) DeletSSLRefInDedicatedNode ¶
func (*AviVsNode) DeleteCACertRefInSNINode ¶
func (*AviVsNode) DeleteSSLPort ¶
func (*AviVsNode) DeleteSecureAppProfile ¶
func (*AviVsNode) GetAnalyticsPolicy ¶
func (v *AviVsNode) GetAnalyticsPolicy() *avimodels.AnalyticsPolicy
func (*AviVsNode) GetAnalyticsProfileRef ¶
func (*AviVsNode) GetAppProfileRef ¶
func (*AviVsNode) GetCheckSum ¶
func (*AviVsNode) GetCommonFields ¶
func (v *AviVsNode) GetCommonFields() *AviVsNodeCommonFields
func (*AviVsNode) GetEnabled ¶
func (*AviVsNode) GetErrorPageProfileRef ¶
func (*AviVsNode) GetGeneratedFields ¶
func (v *AviVsNode) GetGeneratedFields() *AviVsNodeGeneratedFields
func (*AviVsNode) GetHttpPolicyRefs ¶
func (v *AviVsNode) GetHttpPolicyRefs() []*AviHttpPolicySetNode
func (*AviVsNode) GetHttpPolicySetRefs ¶
func (*AviVsNode) GetICAPProfileRefs ¶
func (*AviVsNode) GetNetworkSecurityPolicyRef ¶
func (*AviVsNode) GetNodeType ¶
func (*AviVsNode) GetPGForVSByName ¶
func (o *AviVsNode) GetPGForVSByName(pgName string) *AviPoolGroupNode
func (*AviVsNode) GetPoolGroupRefs ¶
func (v *AviVsNode) GetPoolGroupRefs() []*AviPoolGroupNode
func (*AviVsNode) GetPoolRefs ¶
func (v *AviVsNode) GetPoolRefs() []*AviPoolNode
func (*AviVsNode) GetPortProtocols ¶
func (v *AviVsNode) GetPortProtocols() []AviPortHostProtocol
func (*AviVsNode) GetSSLKeyCertRefs ¶
func (v *AviVsNode) GetSSLKeyCertRefs() []*AviTLSKeyCertNode
func (*AviVsNode) GetSSLProfileRef ¶
func (*AviVsNode) GetServiceMetadata ¶
func (v *AviVsNode) GetServiceMetadata() lib.ServiceMetadataObj
func (*AviVsNode) GetSniNodeForName ¶
func (*AviVsNode) GetSslKeyAndCertificateRefs ¶
func (*AviVsNode) GetVHDomainNames ¶
func (*AviVsNode) GetVSVIPLoadBalancerIP ¶
func (*AviVsNode) GetVsDatascriptRefs ¶
func (*AviVsNode) GetWafPolicyRef ¶
func (*AviVsNode) IsDedicatedVS ¶
func (*AviVsNode) IsSharedVS ¶
func (*AviVsNode) RemoveFQDNAliasesFromHTTPPolicy ¶
func (*AviVsNode) RemoveFQDNsFromModel ¶
func (*AviVsNode) ReplaceCACertRefInSNINode ¶
func (o *AviVsNode) ReplaceCACertRefInSNINode(cacertNode *AviTLSKeyCertNode, key string)
func (*AviVsNode) ReplaceSniHTTPRefInSNINode ¶
func (o *AviVsNode) ReplaceSniHTTPRefInSNINode(httpPGPath AviHostPathPortPoolPG, httpPolName, key string)
func (*AviVsNode) ReplaceSniPGInSNINode ¶
func (o *AviVsNode) ReplaceSniPGInSNINode(newPGNode *AviPoolGroupNode, key string)
func (*AviVsNode) ReplaceSniPoolInSNINode ¶
func (o *AviVsNode) ReplaceSniPoolInSNINode(newPoolNode *AviPoolNode, key string)
func (*AviVsNode) ReplaceSniSSLRefInSNINode ¶
func (o *AviVsNode) ReplaceSniSSLRefInSNINode(newSslNode *AviTLSKeyCertNode, key string)
func (*AviVsNode) SetAnalyticsPolicy ¶
func (v *AviVsNode) SetAnalyticsPolicy(policy *avimodels.AnalyticsPolicy)
func (*AviVsNode) SetAnalyticsProfileRef ¶
func (*AviVsNode) SetAppProfileRef ¶
func (*AviVsNode) SetEnabled ¶
func (*AviVsNode) SetErrorPageProfileRef ¶
func (*AviVsNode) SetHttpPolicyRefs ¶
func (v *AviVsNode) SetHttpPolicyRefs(httpPolicyRefs []*AviHttpPolicySetNode)
func (*AviVsNode) SetHttpPolicySetRefs ¶
func (*AviVsNode) SetICAPProfileRefs ¶
func (*AviVsNode) SetNetworkSecurityPolicyRef ¶
func (*AviVsNode) SetPoolGroupRefs ¶
func (v *AviVsNode) SetPoolGroupRefs(poolGroupRefs []*AviPoolGroupNode)
func (*AviVsNode) SetPoolRefs ¶
func (v *AviVsNode) SetPoolRefs(PoolRefs []*AviPoolNode)
func (*AviVsNode) SetPortProtocols ¶
func (v *AviVsNode) SetPortProtocols(portProto []AviPortHostProtocol)
func (*AviVsNode) SetSSLKeyCertRefs ¶
func (v *AviVsNode) SetSSLKeyCertRefs(sslKeyCertRefs []*AviTLSKeyCertNode)
func (*AviVsNode) SetSSLProfileRef ¶
func (*AviVsNode) SetServiceMetadata ¶
func (v *AviVsNode) SetServiceMetadata(serviceMetadata lib.ServiceMetadataObj)
func (*AviVsNode) SetSslKeyAndCertificateRefs ¶
func (*AviVsNode) SetVHDomainNames ¶
func (*AviVsNode) SetVSVIPLoadBalancerIP ¶
func (*AviVsNode) SetVsDatascriptRefs ¶
func (*AviVsNode) SetWafPolicyRef ¶
type AviVsNodeCommonFields ¶
type AviVsNodeCommonFields struct { AnalyticsPolicy *avimodels.AnalyticsPolicy AnalyticsProfileRef *string ApplicationProfileRef *string SslProfileRef *string VsDatascriptRefs []string WafPolicyRef *string SslKeyAndCertificateRefs []string // refs to avi sslkeyandcertificate objs }
AviVsNodeCommonFields struct contains the fields that are:
- expected to be part of the generated code.
- already in use in the code and is part of the generated code.
This struct is added to avoid any collision between the generated and existing struct fields.
func (*AviVsNodeCommonFields) ConvertToRef ¶
func (o *AviVsNodeCommonFields) ConvertToRef()
type AviVsNodeGeneratedFields ¶
type AviVsNodeGeneratedFields struct { AllowInvalidClientCert *bool BotPolicyRef *string CloseClientConnOnConfigUpdate *bool Fqdn *string HostNameXlate *string IgnPoolNetReach *bool LoadBalancerIP *string MinPoolsUp *uint32 NetworkProfileRef *string NetworkSecurityPolicyRef *string OauthVsConfig *v1alpha2.OAuthVSConfig PerformanceLimits *v1alpha2.PerformanceLimits RemoveListeningPortOnVsDown *bool SamlSpConfig *v1alpha2.SAMLSPConfig SecurityPolicyRef *string Services []*v1alpha2.Service SslSessCacheAvgSize *uint32 SsoPolicyRef *string TrafficCloneProfileRef *string }
func (*AviVsNodeGeneratedFields) CalculateCheckSumOfGeneratedCode ¶
func (v *AviVsNodeGeneratedFields) CalculateCheckSumOfGeneratedCode() uint32
func (*AviVsNodeGeneratedFields) ConvertL7RuleFieldsToNil ¶
func (o *AviVsNodeGeneratedFields) ConvertL7RuleFieldsToNil()
func (*AviVsNodeGeneratedFields) ConvertL7RuleParentOnlyFieldsToNil ¶
func (o *AviVsNodeGeneratedFields) ConvertL7RuleParentOnlyFieldsToNil()
func (*AviVsNodeGeneratedFields) ConvertToRef ¶
func (o *AviVsNodeGeneratedFields) ConvertToRef()
type DataScript ¶
type GraphDescriptor ¶
type GraphDescriptor []GraphSchema
func ConfigDescriptor ¶
func ConfigDescriptor() GraphDescriptor
func (GraphDescriptor) GetByType ¶
func (descriptor GraphDescriptor) GetByType(name string) (GraphSchema, bool)
type GraphSchema ¶
type GraphSchema struct { Type string GetParentIngresses func(string, string, string) ([]string, bool) GetParentRoutes func(string, string, string) ([]string, bool) GetParentGateways func(string, string, string) ([]string, bool) GetParentServices func(string, string, string) ([]string, bool) GetParentMultiClusterIngresses func(string, string, string) ([]string, bool) }
type HostMetadata ¶
type HostMetadata struct {
// contains filtered or unexported fields
}
type HostNameLister ¶
type HostNameLister struct { HostNamePathStore // contains filtered or unexported fields }
func SharedHostNameLister ¶
func SharedHostNameLister() *HostNameLister
func (*HostNameLister) Delete ¶
func (a *HostNameLister) Delete(hostname string)
func (*HostNameLister) DeleteNamespace ¶
func (a *HostNameLister) DeleteNamespace(hostname string)
func (*HostNameLister) Get ¶
func (a *HostNameLister) Get(hostname string) (bool, SecureHostNameMapProp)
func (*HostNameLister) GetNamespace ¶
func (a *HostNameLister) GetNamespace(hostname string) (bool, string)
func (*HostNameLister) Save ¶
func (a *HostNameLister) Save(hostname string, hsGraph SecureHostNameMapProp)
func (*HostNameLister) SaveNamespace ¶
func (a *HostNameLister) SaveNamespace(hostname string, namespace string)
type HostNamePathSecrets ¶
type HostNamePathSecrets struct {
// contains filtered or unexported fields
}
type HostNamePathStore ¶
thread safe for namespace based sharding in case of same hostname in different namespaces cache sample: foo.com -> {path1: ns1/ingress1, path2: ns2/ingress2}
func (*HostNamePathStore) DeleteHostPathStore ¶
func (h *HostNamePathStore) DeleteHostPathStore(host string)
func (*HostNamePathStore) GetHostPathStore ¶
func (h *HostNamePathStore) GetHostPathStore(host string) (bool, map[string][]string)
func (*HostNamePathStore) GetHostPathStoreIngresses ¶
func (h *HostNamePathStore) GetHostPathStoreIngresses(host, path string) (bool, []string)
func (*HostNamePathStore) GetHostsFromHostPathStore ¶
func (h *HostNamePathStore) GetHostsFromHostPathStore(host, fqdnMatchType string) []string
func (*HostNamePathStore) RemoveHostPathStore ¶
func (h *HostNamePathStore) RemoveHostPathStore(host, path string, ing string)
func (*HostNamePathStore) SaveHostPathStore ¶
func (h *HostNamePathStore) SaveHostPathStore(host, path string, ing string)
type IngressConfig ¶
type IngressConfig struct { PassthroughCollection map[string]PassthroughSettings TlsCollection []TlsSettings IngressHostMap InsecureEdgeTermAllow bool }
type IngressHostMap ¶
type IngressHostMap map[string]HostMetadata
type IngressHostPathSvc ¶
type IngressHostPathSvc struct { ServiceName string Path string PathType networkingv1.PathType Port int32 PortName string TargetPort intstr.IntOrString // contains filtered or unexported fields }
type K8sIngressModel ¶
type K8sIngressModel struct {
// contains filtered or unexported fields
}
K8sIngressModel : Model for kubernetes ingresses with default service lister
func GetK8sIngressModel ¶
func GetK8sIngressModel(name, namespace, key string) (*K8sIngressModel, error, bool)
func (*K8sIngressModel) Exists ¶
func (m *K8sIngressModel) Exists() bool
func (*K8sIngressModel) GetAnnotations ¶
func (m *K8sIngressModel) GetAnnotations() map[string]string
func (*K8sIngressModel) GetAviInfraSetting ¶
func (m *K8sIngressModel) GetAviInfraSetting() *akov1beta1.AviInfraSetting
func (*K8sIngressModel) GetDiffPathSvc ¶
func (m *K8sIngressModel) GetDiffPathSvc(storedPathSvc map[string][]string, currentPathSvc []IngressHostPathSvc, checkSvc bool) map[string][]string
func (*K8sIngressModel) GetName ¶
func (m *K8sIngressModel) GetName() string
func (*K8sIngressModel) GetNamespace ¶
func (m *K8sIngressModel) GetNamespace() string
func (*K8sIngressModel) GetSpec ¶
func (m *K8sIngressModel) GetSpec() interface{}
func (*K8sIngressModel) GetSvcLister ¶
func (m *K8sIngressModel) GetSvcLister() *objects.SvcLister
func (*K8sIngressModel) GetType ¶
func (m *K8sIngressModel) GetType() string
func (*K8sIngressModel) ParseHostPath ¶
func (m *K8sIngressModel) ParseHostPath() IngressConfig
type OshiftRouteModel ¶
type OshiftRouteModel struct {
// contains filtered or unexported fields
}
OshiftRouteModel : Model for openshift routes with it's own service lister
func GetOshiftRouteModel ¶
func GetOshiftRouteModel(name, namespace, key string) (*OshiftRouteModel, error, bool)
func (*OshiftRouteModel) Exists ¶
func (m *OshiftRouteModel) Exists() bool
func (*OshiftRouteModel) GetAnnotations ¶
func (m *OshiftRouteModel) GetAnnotations() map[string]string
func (*OshiftRouteModel) GetAviInfraSetting ¶
func (m *OshiftRouteModel) GetAviInfraSetting() *akov1beta1.AviInfraSetting
func (*OshiftRouteModel) GetDiffPathSvc ¶
func (m *OshiftRouteModel) GetDiffPathSvc(storedPathSvc map[string][]string, currentPathSvc []IngressHostPathSvc, checkSvc bool) map[string][]string
func (*OshiftRouteModel) GetName ¶
func (m *OshiftRouteModel) GetName() string
func (*OshiftRouteModel) GetNamespace ¶
func (m *OshiftRouteModel) GetNamespace() string
func (*OshiftRouteModel) GetSpec ¶
func (m *OshiftRouteModel) GetSpec() interface{}
func (*OshiftRouteModel) GetSvcLister ¶
func (m *OshiftRouteModel) GetSvcLister() *objects.SvcLister
func (*OshiftRouteModel) GetType ¶
func (m *OshiftRouteModel) GetType() string
func (*OshiftRouteModel) ParseHostPath ¶
func (or *OshiftRouteModel) ParseHostPath() IngressConfig
type PassthroughSettings ¶
type PassthroughSettings struct { PathSvc []IngressHostPathSvc // contains filtered or unexported fields }
type RouteIngressModel ¶
type RouteIngressModel interface { GetName() string GetNamespace() string GetType() string GetSvcLister() *objects.SvcLister GetSpec() interface{} GetAnnotations() map[string]string ParseHostPath() IngressConfig Exists() bool // this is required due to different naming convention used in ingress where we dont use service name // later if we decide to have common naming for ingress and route, then we can hav a common method GetDiffPathSvc(map[string][]string, []IngressHostPathSvc, bool) map[string][]string GetAviInfraSetting() *akov1beta1.AviInfraSetting }
RouteIngressModel : High Level interfaces that should be implemenetd by all l7 route objects, e.g: k8s ingress, openshift route
func GetMultiClusterIngressModel ¶
func GetMultiClusterIngressModel(name, namespace, key string) (RouteIngressModel, error, bool)
type SecureHostNameMapProp ¶
type SecureHostNameMapProp struct { // This method is only used in case of hostname based sharding. Hostname sharding uses a single thread in layer 2 // Hence locking is avoided. Secondly, hostname based shards are agnostic of namespaces, hence namespaces are kept only as a // naming constuct. Only used for secure hosts. // hostname1(this is persisted in the store) --> ingress1 + ns --> path: [/foo, /bar], secrets: [secret1] // --> ingress2 + ns --> path: [/baz], secrets: [secret3] HostNameMap map[string]HostNamePathSecrets }
func NewSecureHostNameMapProp ¶
func NewSecureHostNameMapProp() SecureHostNameMapProp
func (*SecureHostNameMapProp) GetIngressesForHostName ¶
func (h *SecureHostNameMapProp) GetIngressesForHostName(hostname string) []string
func (*SecureHostNameMapProp) GetPathsForHostName ¶
func (h *SecureHostNameMapProp) GetPathsForHostName(hostname string) []string
func (*SecureHostNameMapProp) GetSecretsForHostName ¶
func (h *SecureHostNameMapProp) GetSecretsForHostName(hostname string) []string
type StaticRouteDetails ¶
type TlsSettings ¶
type TlsSettings struct { Hosts map[string]HostMetadata SecretName string SecretNS string // contains filtered or unexported fields }
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func NewNodesValidator ¶
func NewNodesValidator() *Validator
func (*Validator) IsValidHostName ¶
func (*Validator) ParseHostPathForIngress ¶
func (v *Validator) ParseHostPathForIngress(ns string, ingName string, ingSpec networkingv1.IngressSpec, annotations map[string]string, key string) IngressConfig
ParseHostPathForIngress handling for hostrule: if the host has a hostrule, and that hostrule has a tls.sslkeycertref then move that host in the tls.hosts, this should be only in case of hostname sharding
func (*Validator) ParseHostPathForMultiClusterIngress ¶
func (v *Validator) ParseHostPathForMultiClusterIngress(ns string, ingName string, ingSpec *v1alpha1.MultiClusterIngressSpec, key string) IngressConfig
ParseHostPathForMultiClusterIngress extracts the information from multi-cluster ingress object and generates ingress configs required for creating the models.
func (*Validator) ParseHostPathForRoute ¶
Source Files ¶
- avi_model_advl4_translator.go
- avi_model_evh_nodes.go
- avi_model_l4_translator.go
- avi_model_l7_hostname_shard.go
- avi_model_l7_translator.go
- avi_model_nodes.go
- avi_model_nodes_utils.go
- avi_model_routeingr_hostname_shard.go
- avi_model_tls_passthrough.go
- avi_vrf_translator.go
- crd_translator.go
- dequeue_ingestion.go
- hostname_cache.go
- ingress_model_rel.go
- multicluster_ingress_model_rel.go
- route_ingress_model.go
- service_model_rel.go
- validator.go