Documentation ¶
Index ¶
- Variables
- func AddTLSNode(key string, object *AviObjectGraph, gateway *gatewayv1.Gateway, ...)
- func BuildPortProtocols(gateway *gatewayv1.Gateway, key string) []nodes.AviPortHostProtocol
- func BuildTLSNodesForGateway(gateway *gatewayv1.Gateway, key string) []*nodes.AviTLSKeyCertNode
- func BuildVsVipNodeForGateway(gateway *gatewayv1.Gateway, vsName string) *nodes.AviVSVIPNode
- func DeleteTLSNode(key string, object *AviObjectGraph, gateway *gatewayv1.Gateway, ...)
- func DequeueIngestion(key string, fullsync bool)
- func EndpointToGateways(namespace, name, key string) ([]string, bool)
- func EndpointToRoutes(namespace, name, key string) ([]string, bool)
- func GatewayClassGetGw(namespace, name, key string) ([]string, bool)
- func GatewayGetGw(namespace, name, key string) ([]string, bool)
- func GatewayToRoutes(namespace, name, key string) ([]string, bool)
- func HTTPRouteChanges(namespace, name, key string) ([]string, bool)
- func HTTPRouteToGateway(namespace, name, key string) ([]string, bool)
- func NoOperation(namespace, name, key string) ([]string, bool)
- func SecretToGateways(namespace, name, key string) ([]string, bool)
- func ServiceToGateways(namespace, name, key string) ([]string, bool)
- func ServiceToRoutes(namespace, name, key string) ([]string, bool)
- func TLSNodeFromSecret(secretObj *corev1.Secret, hostname, certName, key string) *nodes.AviTLSKeyCertNode
- type AviObjectGraph
- func (o *AviObjectGraph) BuildChildVS(key string, routeModel RouteModel, parentNsName string, rule *Rule, ...)
- func (o *AviObjectGraph) BuildGatewayParent(gateway *gatewayv1.Gateway, key string) *nodes.AviEvhVsNode
- func (o *AviObjectGraph) BuildGatewayVs(gateway *gatewayv1.Gateway, key string)
- func (o *AviObjectGraph) BuildHTTPPolicySet(key string, vsNode *nodes.AviEvhVsNode, routeModel RouteModel, rule *Rule)
- func (o *AviObjectGraph) BuildHTTPPolicySetHTTPRequestRedirectRules(key string, vsNode *nodes.AviEvhVsNode, routeModel RouteModel, ...)
- func (o *AviObjectGraph) BuildHTTPPolicySetHTTPRequestRules(key string, vsNode *nodes.AviEvhVsNode, routeModel RouteModel, ...)
- func (o *AviObjectGraph) BuildHTTPPolicySetHTTPResponseRules(key string, vsNode *nodes.AviEvhVsNode, routeModel RouteModel, ...)
- func (o *AviObjectGraph) BuildHTTPPolicySetHTTPRuleHdrAction(key string, action string, header *Header, headerIndex uint32) *models.HTTPHdrAction
- func (o *AviObjectGraph) BuildL4PolicySet(key string, vsNode *nodes.AviEvhVsNode, routeModel RouteModel, rule *Rule)
- func (o *AviObjectGraph) BuildPGPool(key, parentNsName string, childVsNode *nodes.AviEvhVsNode, ...)
- func (o *AviObjectGraph) BuildVHMatch(key string, vsNode *nodes.AviEvhVsNode, rule *Rule, hosts []string)
- func (o *AviObjectGraph) DeleteStaleChildVSes(key string, routeModel RouteModel, childVSes map[string]struct{}, ...)
- func (o *AviObjectGraph) ProcessL4Routes(key string, routeModel RouteModel, parentNsName string)
- func (o *AviObjectGraph) ProcessL7Routes(key string, routeModel RouteModel, parentNsName string, ...)
- func (o *AviObjectGraph) ProcessRouteDeletion(key string, routeModel RouteModel, fullsync bool)
- type Backend
- type Filter
- type GraphDescriptor
- type GraphSchema
- type Header
- type HeaderFilter
- type HeaderMatch
- type Headers
- type Match
- type Matches
- type PathMatch
- type RedirectFilter
- type RouteConfig
- type RouteModel
- type Rule
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Gateway = GraphSchema{ Type: "Gateway", GetGateways: GatewayGetGw, GetRoutes: GatewayToRoutes, } GatewayClass = GraphSchema{ Type: "GatewayClass", GetGateways: GatewayClassGetGw, GetRoutes: NoOperation, } Secret = GraphSchema{ Type: "Secret", GetGateways: SecretToGateways, GetRoutes: NoOperation, } Service = GraphSchema{ Type: "Service", GetGateways: ServiceToGateways, GetRoutes: ServiceToRoutes, } Endpoint = GraphSchema{ Type: "Endpoints", GetGateways: EndpointToGateways, GetRoutes: EndpointToRoutes, } HTTPRoute = GraphSchema{ Type: lib.HTTPRoute, GetGateways: HTTPRouteToGateway, GetRoutes: HTTPRouteChanges, } SupportedGraphTypes = GraphDescriptor{ Gateway, GatewayClass, Secret, Service, Endpoint, HTTPRoute, } )
Functions ¶
func AddTLSNode ¶
func BuildPortProtocols ¶
func BuildPortProtocols(gateway *gatewayv1.Gateway, key string) []nodes.AviPortHostProtocol
func BuildTLSNodesForGateway ¶
func BuildTLSNodesForGateway(gateway *gatewayv1.Gateway, key string) []*nodes.AviTLSKeyCertNode
func BuildVsVipNodeForGateway ¶
func BuildVsVipNodeForGateway(gateway *gatewayv1.Gateway, vsName string) *nodes.AviVSVIPNode
func DeleteTLSNode ¶
func DequeueIngestion ¶
func EndpointToGateways ¶
func EndpointToRoutes ¶
func GatewayClassGetGw ¶
func GatewayGetGw ¶
func GatewayToRoutes ¶
func HTTPRouteChanges ¶
func HTTPRouteToGateway ¶
func NoOperation ¶
func SecretToGateways ¶
func ServiceToGateways ¶
func ServiceToRoutes ¶
func TLSNodeFromSecret ¶
func TLSNodeFromSecret(secretObj *corev1.Secret, hostname, certName, key string) *nodes.AviTLSKeyCertNode
Types ¶
type AviObjectGraph ¶
type AviObjectGraph struct {
*nodes.AviObjectGraph
}
func NewAviObjectGraph ¶
func NewAviObjectGraph() *AviObjectGraph
func (*AviObjectGraph) BuildChildVS ¶
func (o *AviObjectGraph) BuildChildVS(key string, routeModel RouteModel, parentNsName string, rule *Rule, childVSes map[string]struct{}, fullsync bool)
func (*AviObjectGraph) BuildGatewayParent ¶
func (o *AviObjectGraph) BuildGatewayParent(gateway *gatewayv1.Gateway, key string) *nodes.AviEvhVsNode
func (*AviObjectGraph) BuildGatewayVs ¶
func (o *AviObjectGraph) BuildGatewayVs(gateway *gatewayv1.Gateway, key string)
func (*AviObjectGraph) BuildHTTPPolicySet ¶
func (o *AviObjectGraph) BuildHTTPPolicySet(key string, vsNode *nodes.AviEvhVsNode, routeModel RouteModel, rule *Rule)
func (*AviObjectGraph) BuildHTTPPolicySetHTTPRequestRedirectRules ¶
func (o *AviObjectGraph) BuildHTTPPolicySetHTTPRequestRedirectRules(key string, vsNode *nodes.AviEvhVsNode, routeModel RouteModel, filters []*Filter)
func (*AviObjectGraph) BuildHTTPPolicySetHTTPRequestRules ¶
func (o *AviObjectGraph) BuildHTTPPolicySetHTTPRequestRules(key string, vsNode *nodes.AviEvhVsNode, routeModel RouteModel, filters []*Filter)
func (*AviObjectGraph) BuildHTTPPolicySetHTTPResponseRules ¶
func (o *AviObjectGraph) BuildHTTPPolicySetHTTPResponseRules(key string, vsNode *nodes.AviEvhVsNode, routeModel RouteModel, filters []*Filter)
func (*AviObjectGraph) BuildHTTPPolicySetHTTPRuleHdrAction ¶
func (o *AviObjectGraph) BuildHTTPPolicySetHTTPRuleHdrAction(key string, action string, header *Header, headerIndex uint32) *models.HTTPHdrAction
func (*AviObjectGraph) BuildL4PolicySet ¶
func (o *AviObjectGraph) BuildL4PolicySet(key string, vsNode *nodes.AviEvhVsNode, routeModel RouteModel, rule *Rule)
func (*AviObjectGraph) BuildPGPool ¶
func (o *AviObjectGraph) BuildPGPool(key, parentNsName string, childVsNode *nodes.AviEvhVsNode, routeModel RouteModel, rule *Rule)
func (*AviObjectGraph) BuildVHMatch ¶
func (o *AviObjectGraph) BuildVHMatch(key string, vsNode *nodes.AviEvhVsNode, rule *Rule, hosts []string)
func (*AviObjectGraph) DeleteStaleChildVSes ¶
func (o *AviObjectGraph) DeleteStaleChildVSes(key string, routeModel RouteModel, childVSes map[string]struct{}, fullsync bool)
func (*AviObjectGraph) ProcessL4Routes ¶
func (o *AviObjectGraph) ProcessL4Routes(key string, routeModel RouteModel, parentNsName string)
func (*AviObjectGraph) ProcessL7Routes ¶
func (o *AviObjectGraph) ProcessL7Routes(key string, routeModel RouteModel, parentNsName string, childVSes map[string]struct{}, fullsync bool)
func (*AviObjectGraph) ProcessRouteDeletion ¶
func (o *AviObjectGraph) ProcessRouteDeletion(key string, routeModel RouteModel, fullsync bool)
type Filter ¶
type Filter struct { Type string RequestFilter *HeaderFilter ResponseFilter *HeaderFilter RedirectFilter *RedirectFilter }
type GraphDescriptor ¶
type GraphDescriptor []GraphSchema
func ConfigDescriptor ¶
func ConfigDescriptor() GraphDescriptor
func (GraphDescriptor) GetByType ¶
func (descriptor GraphDescriptor) GetByType(name string) (GraphSchema, bool)
type GraphSchema ¶
type HeaderFilter ¶
type HeaderMatch ¶
type Match ¶
type Match struct { PathMatch *PathMatch HeaderMatch []*HeaderMatch }
type RedirectFilter ¶
type RouteConfig ¶
type RouteModel ¶
type RouteModel interface { GetName() string GetNamespace() string GetType() string GetSpec() interface{} ParseRouteRules() *RouteConfig Exists() bool GetParents() sets.Set[string] }
func GetHTTPRouteModel ¶
func GetHTTPRouteModel(key string, name, namespace string) (RouteModel, error)
func NewRouteModel ¶
func NewRouteModel(key, objType, name, namespace string) (RouteModel, error)
Click to show internal directories.
Click to hide internal directories.