Documentation
¶
Index ¶
- func AddBackendRefToHTTPRoute(name, namespace string, rt *k8s_networking_v1beta1.HTTPRoute) *k8s_networking_v1beta1.HTTPRoute
- func AddEndpointToServiceEntry(address, labelKey, labelValue string, se *networking_v1beta1.ServiceEntry) *networking_v1beta1.ServiceEntry
- func AddGatewaysToVirtualService(gateways []string, vs *networking_v1beta1.VirtualService) *networking_v1beta1.VirtualService
- func AddGwAddressToK8sGateway(address k8s_networking_v1beta1.GatewayAddress, ...) *k8s_networking_v1beta1.Gateway
- func AddHostsToSidecar(hl []string, sc *networking_v1beta1.Sidecar) *networking_v1beta1.Sidecar
- func AddHttpRoutesToVirtualService(route *api_networking_v1beta1.HTTPRouteDestination, ...) *networking_v1beta1.VirtualService
- func AddListenerToK8sGateway(listener k8s_networking_v1beta1.Listener, gw *k8s_networking_v1beta1.Gateway) *k8s_networking_v1beta1.Gateway
- func AddParentRefToHTTPRoute(name, namespace string, rt *k8s_networking_v1beta1.HTTPRoute) *k8s_networking_v1beta1.HTTPRoute
- func AddPortDefinitionToServiceEntry(portDef *api_networking_v1beta1.ServicePort, ...) *networking_v1beta1.ServiceEntry
- func AddSelectorToPeerAuthn(selector map[string]string, mp *security_v1beta1.PeerAuthentication) *security_v1beta1.PeerAuthentication
- func AddSelectorToSidecar(selector map[string]string, sc *networking_v1beta1.Sidecar) *networking_v1beta1.Sidecar
- func AddServerToGateway(server *api_networking_v1beta1.Server, gw *networking_v1beta1.Gateway) *networking_v1beta1.Gateway
- func AddSubsetToDestinationRule(subset *api_networking_v1beta1.Subset, dr *networking_v1beta1.DestinationRule) *networking_v1beta1.DestinationRule
- func AddTcpRoutesToVirtualService(route *api_networking_v1beta1.TCPRoute, vs *networking_v1beta1.VirtualService) *networking_v1beta1.VirtualService
- func AddTlsRoutesToVirtualService(route *api_networking_v1beta1.TLSRoute, vs *networking_v1beta1.VirtualService) *networking_v1beta1.VirtualService
- func AddTrafficPolicyToDestinationRule(trafficPolicy *api_networking_v1beta1.TrafficPolicy, ...) *networking_v1beta1.DestinationRule
- func CreateAuthorizationPolicy(sourceNamespaces, operationMethods, operationHosts []string, ...) *security_v1beta1.AuthorizationPolicy
- func CreateAuthorizationPolicyWithMetaAndSelector(name, namespace string, selector map[string]string) *security_v1beta1.AuthorizationPolicy
- func CreateAuthorizationPolicyWithPrincipals(name, namespace string, principalsList []string) *security_v1beta1.AuthorizationPolicy
- func CreateCustomLabelSubset(name string, labelKey, labelValue string) *api_networking_v1beta1.Subset
- func CreateDestinationRuleWithLabel(namespace string, name string, host string, labelKey, labelValue string) *networking_v1beta1.DestinationRule
- func CreateDisabledMTLSTrafficPolicyForDestinationRules() *api_networking_v1beta1.TrafficPolicy
- func CreateEmptyAuthorizationPolicy(name, namespace string) *security_v1beta1.AuthorizationPolicy
- func CreateEmptyDestinationRule(namespace string, name string, host string) *networking_v1beta1.DestinationRule
- func CreateEmptyGateway(name, namespace string, selector map[string]string) *networking_v1beta1.Gateway
- func CreateEmptyHTTPRoute(name string, namespace string, hosts []string) *k8s_networking_v1beta1.HTTPRoute
- func CreateEmptyK8sGateway(name, namespace string) *k8s_networking_v1beta1.Gateway
- func CreateEmptyMeshAuthorizationPolicy(name string) *security_v1beta1.AuthorizationPolicy
- func CreateEmptyMeshExternalServiceEntry(name, namespace string, hosts []string) *networking_v1beta1.ServiceEntry
- func CreateEmptyMeshInternalServiceEntry(name, namespace string, hosts []string) *networking_v1beta1.ServiceEntry
- func CreateEmptyMeshPeerAuthentication(name string, mtls *api_security_v1beta1.PeerAuthentication_MutualTLS) *security_v1beta1.PeerAuthentication
- func CreateEmptyPeerAuthentication(name, namespace string, ...) *security_v1beta1.PeerAuthentication
- func CreateEmptyPeerAuthenticationWithSelector(name, namespace string, selector map[string]string) *security_v1beta1.PeerAuthentication
- func CreateEmptyPortDefinition(port uint32, portName, protocolName string) *api_networking_v1beta1.Port
- func CreateEmptyRegistryServices() []*kubernetes.RegistryService
- func CreateEmptyServicePortDefinition(port uint32, portName, protocolName string) *api_networking_v1beta1.ServicePort
- func CreateEmptyVirtualService(name string, namespace string, hosts []string) *networking_v1beta1.VirtualService
- func CreateExternalServiceEntry() *networking_v1beta1.ServiceEntry
- func CreateFakeMultiRegistryServices(hosts []string, namespace string, exportToNamespace string) []*kubernetes.RegistryService
- func CreateFakeRegistryServices(host string, namespace string, exportToNamespace string) []*kubernetes.RegistryService
- func CreateFakeRegistryServicesLabels(service string, namespace string) []*kubernetes.RegistryService
- func CreateGWAddress(addrType k8s_networking_v1beta1.AddressType, value string) k8s_networking_v1beta1.GatewayAddress
- func CreateHTTPRoute(name string, namespace string, gateway string, hosts []string) *k8s_networking_v1beta1.HTTPRoute
- func CreateHttpRouteDestination(host string, subset string, weight int32) *api_networking_v1beta1.HTTPRouteDestination
- func CreateListener(name string, hostname string, port int, protocol string) k8s_networking_v1beta1.Listener
- func CreateLoadBalancerTrafficPolicyForDestinationRules() *api_networking_v1beta1.TrafficPolicy
- func CreateMTLS(mode string) *api_security_v1beta1.PeerAuthentication_MutualTLS
- func CreateMTLSTrafficPolicyForDestinationRules() *api_networking_v1beta1.TrafficPolicy
- func CreateNoLabelsDestinationRule(namespace string, name string, host string) *networking_v1beta1.DestinationRule
- func CreateNoLabelsSubset(name string) *api_networking_v1beta1.Subset
- func CreateNoSubsetLabelsDestinationRule(namespace string, name string, host string) *networking_v1beta1.DestinationRule
- func CreateOneLabelSelector(value string) map[string]string
- func CreatePortLevelTrafficPolicyForDestinationRules() *api_networking_v1beta1.TrafficPolicy
- func CreateServer(hosts []string, port uint32, portName, protocolName string) *api_networking_v1beta1.Server
- func CreateSidecar(name string, namespace string) *networking_v1beta1.Sidecar
- func CreateSimpleTLSTrafficPolicyForDestinationRules() *api_networking_v1beta1.TrafficPolicy
- func CreateSubset(name string, versionLabel string) *api_networking_v1beta1.Subset
- func CreateTLSPortLevelTrafficPolicyForDestinationRules() *api_networking_v1beta1.TrafficPolicy
- func CreateTcpRoute(host string, subset string, weight int32) *api_networking_v1beta1.TCPRoute
- func CreateTestDestinationRule(namespace string, name string, host string) *networking_v1beta1.DestinationRule
- func CreateTlsRoute(host string, subset string, weight int32) *api_networking_v1beta1.TLSRoute
- func CreateTrafficPolicyForDestinationRules(mode string) *api_networking_v1beta1.TrafficPolicy
- func CreateVirtualService() *networking_v1beta1.VirtualService
- func CreateVirtualServiceWithServiceEntryTarget() *networking_v1beta1.VirtualService
- func CreateWorkloadList(namespace string, items ...models.WorkloadListItem) models.WorkloadList
- func CreateWorkloadListItem(name string, labels map[string]string) models.WorkloadListItem
- func CreateWorkloadsPerNamespace(namespaces []string, items ...models.WorkloadListItem) map[string]models.WorkloadList
- func UpdateConditionWithError(k8sgw *k8s_networking_v1beta1.Gateway) *k8s_networking_v1beta1.Gateway
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddBackendRefToHTTPRoute ¶ added in v1.63.0
func AddBackendRefToHTTPRoute(name, namespace string, rt *k8s_networking_v1beta1.HTTPRoute) *k8s_networking_v1beta1.HTTPRoute
func AddEndpointToServiceEntry ¶ added in v1.52.0
func AddEndpointToServiceEntry(address, labelKey, labelValue string, se *networking_v1beta1.ServiceEntry) *networking_v1beta1.ServiceEntry
func AddGatewaysToVirtualService ¶
func AddGatewaysToVirtualService(gateways []string, vs *networking_v1beta1.VirtualService) *networking_v1beta1.VirtualService
func AddGwAddressToK8sGateway ¶ added in v1.63.0
func AddGwAddressToK8sGateway(address k8s_networking_v1beta1.GatewayAddress, gw *k8s_networking_v1beta1.Gateway) *k8s_networking_v1beta1.Gateway
func AddHostsToSidecar ¶ added in v1.15.0
func AddHostsToSidecar(hl []string, sc *networking_v1beta1.Sidecar) *networking_v1beta1.Sidecar
func AddHttpRoutesToVirtualService ¶ added in v1.42.0
func AddHttpRoutesToVirtualService(route *api_networking_v1beta1.HTTPRouteDestination, vs *networking_v1beta1.VirtualService) *networking_v1beta1.VirtualService
func AddListenerToK8sGateway ¶ added in v1.63.0
func AddListenerToK8sGateway(listener k8s_networking_v1beta1.Listener, gw *k8s_networking_v1beta1.Gateway) *k8s_networking_v1beta1.Gateway
func AddParentRefToHTTPRoute ¶ added in v1.63.0
func AddParentRefToHTTPRoute(name, namespace string, rt *k8s_networking_v1beta1.HTTPRoute) *k8s_networking_v1beta1.HTTPRoute
func AddPortDefinitionToServiceEntry ¶ added in v0.16.0
func AddPortDefinitionToServiceEntry(portDef *api_networking_v1beta1.ServicePort, se *networking_v1beta1.ServiceEntry) *networking_v1beta1.ServiceEntry
func AddSelectorToPeerAuthn ¶ added in v1.18.1
func AddSelectorToPeerAuthn(selector map[string]string, mp *security_v1beta1.PeerAuthentication) *security_v1beta1.PeerAuthentication
func AddSelectorToSidecar ¶ added in v1.15.0
func AddSelectorToSidecar(selector map[string]string, sc *networking_v1beta1.Sidecar) *networking_v1beta1.Sidecar
func AddServerToGateway ¶ added in v0.11.0
func AddServerToGateway(server *api_networking_v1beta1.Server, gw *networking_v1beta1.Gateway) *networking_v1beta1.Gateway
func AddSubsetToDestinationRule ¶
func AddSubsetToDestinationRule(subset *api_networking_v1beta1.Subset, dr *networking_v1beta1.DestinationRule) *networking_v1beta1.DestinationRule
func AddTcpRoutesToVirtualService ¶ added in v1.42.0
func AddTcpRoutesToVirtualService(route *api_networking_v1beta1.TCPRoute, vs *networking_v1beta1.VirtualService) *networking_v1beta1.VirtualService
func AddTlsRoutesToVirtualService ¶ added in v1.47.0
func AddTlsRoutesToVirtualService(route *api_networking_v1beta1.TLSRoute, vs *networking_v1beta1.VirtualService) *networking_v1beta1.VirtualService
func AddTrafficPolicyToDestinationRule ¶ added in v0.15.0
func AddTrafficPolicyToDestinationRule(trafficPolicy *api_networking_v1beta1.TrafficPolicy, dr *networking_v1beta1.DestinationRule) *networking_v1beta1.DestinationRule
func CreateAuthorizationPolicy ¶ added in v1.14.0
func CreateAuthorizationPolicy(sourceNamespaces, operationMethods, operationHosts []string, selector map[string]string) *security_v1beta1.AuthorizationPolicy
func CreateAuthorizationPolicyWithMetaAndSelector ¶ added in v1.47.0
func CreateAuthorizationPolicyWithMetaAndSelector(name, namespace string, selector map[string]string) *security_v1beta1.AuthorizationPolicy
func CreateAuthorizationPolicyWithPrincipals ¶ added in v1.51.1
func CreateAuthorizationPolicyWithPrincipals(name, namespace string, principalsList []string) *security_v1beta1.AuthorizationPolicy
func CreateCustomLabelSubset ¶ added in v1.52.0
func CreateCustomLabelSubset(name string, labelKey, labelValue string) *api_networking_v1beta1.Subset
func CreateDestinationRuleWithLabel ¶ added in v1.52.0
func CreateDestinationRuleWithLabel(namespace string, name string, host string, labelKey, labelValue string) *networking_v1beta1.DestinationRule
func CreateDisabledMTLSTrafficPolicyForDestinationRules ¶ added in v0.16.0
func CreateDisabledMTLSTrafficPolicyForDestinationRules() *api_networking_v1beta1.TrafficPolicy
func CreateEmptyAuthorizationPolicy ¶ added in v1.47.0
func CreateEmptyAuthorizationPolicy(name, namespace string) *security_v1beta1.AuthorizationPolicy
func CreateEmptyDestinationRule ¶
func CreateEmptyDestinationRule(namespace string, name string, host string) *networking_v1beta1.DestinationRule
func CreateEmptyGateway ¶
func CreateEmptyGateway(name, namespace string, selector map[string]string) *networking_v1beta1.Gateway
func CreateEmptyHTTPRoute ¶ added in v1.63.0
func CreateEmptyHTTPRoute(name string, namespace string, hosts []string) *k8s_networking_v1beta1.HTTPRoute
func CreateEmptyK8sGateway ¶ added in v1.63.0
func CreateEmptyK8sGateway(name, namespace string) *k8s_networking_v1beta1.Gateway
func CreateEmptyMeshAuthorizationPolicy ¶ added in v1.47.0
func CreateEmptyMeshAuthorizationPolicy(name string) *security_v1beta1.AuthorizationPolicy
func CreateEmptyMeshExternalServiceEntry ¶ added in v0.16.0
func CreateEmptyMeshExternalServiceEntry(name, namespace string, hosts []string) *networking_v1beta1.ServiceEntry
func CreateEmptyMeshInternalServiceEntry ¶ added in v1.41.0
func CreateEmptyMeshInternalServiceEntry(name, namespace string, hosts []string) *networking_v1beta1.ServiceEntry
func CreateEmptyMeshPeerAuthentication ¶ added in v1.18.1
func CreateEmptyMeshPeerAuthentication(name string, mtls *api_security_v1beta1.PeerAuthentication_MutualTLS) *security_v1beta1.PeerAuthentication
func CreateEmptyPeerAuthentication ¶ added in v1.18.1
func CreateEmptyPeerAuthentication(name, namespace string, mtls *api_security_v1beta1.PeerAuthentication_MutualTLS) *security_v1beta1.PeerAuthentication
func CreateEmptyPeerAuthenticationWithSelector ¶ added in v1.18.1
func CreateEmptyPeerAuthenticationWithSelector(name, namespace string, selector map[string]string) *security_v1beta1.PeerAuthentication
func CreateEmptyPortDefinition ¶ added in v0.16.0
func CreateEmptyPortDefinition(port uint32, portName, protocolName string) *api_networking_v1beta1.Port
func CreateEmptyRegistryServices ¶ added in v1.46.0
func CreateEmptyRegistryServices() []*kubernetes.RegistryService
func CreateEmptyServicePortDefinition ¶ added in v1.66.2
func CreateEmptyServicePortDefinition(port uint32, portName, protocolName string) *api_networking_v1beta1.ServicePort
func CreateEmptyVirtualService ¶
func CreateEmptyVirtualService(name string, namespace string, hosts []string) *networking_v1beta1.VirtualService
func CreateExternalServiceEntry ¶
func CreateExternalServiceEntry() *networking_v1beta1.ServiceEntry
func CreateFakeMultiRegistryServices ¶ added in v1.46.0
func CreateFakeMultiRegistryServices(hosts []string, namespace string, exportToNamespace string) []*kubernetes.RegistryService
func CreateFakeRegistryServices ¶ added in v1.44.0
func CreateFakeRegistryServices(host string, namespace string, exportToNamespace string) []*kubernetes.RegistryService
func CreateFakeRegistryServicesLabels ¶ added in v1.46.0
func CreateFakeRegistryServicesLabels(service string, namespace string) []*kubernetes.RegistryService
func CreateGWAddress ¶ added in v1.63.0
func CreateGWAddress(addrType k8s_networking_v1beta1.AddressType, value string) k8s_networking_v1beta1.GatewayAddress
func CreateHTTPRoute ¶ added in v1.63.0
func CreateHttpRouteDestination ¶ added in v1.42.0
func CreateHttpRouteDestination(host string, subset string, weight int32) *api_networking_v1beta1.HTTPRouteDestination
func CreateListener ¶ added in v1.63.0
func CreateLoadBalancerTrafficPolicyForDestinationRules ¶ added in v0.15.0
func CreateLoadBalancerTrafficPolicyForDestinationRules() *api_networking_v1beta1.TrafficPolicy
func CreateMTLS ¶ added in v1.18.1
func CreateMTLS(mode string) *api_security_v1beta1.PeerAuthentication_MutualTLS
func CreateMTLSTrafficPolicyForDestinationRules ¶ added in v0.15.0
func CreateMTLSTrafficPolicyForDestinationRules() *api_networking_v1beta1.TrafficPolicy
func CreateNoLabelsDestinationRule ¶ added in v1.26.0
func CreateNoLabelsDestinationRule(namespace string, name string, host string) *networking_v1beta1.DestinationRule
func CreateNoLabelsSubset ¶ added in v1.26.0
func CreateNoLabelsSubset(name string) *api_networking_v1beta1.Subset
func CreateNoSubsetLabelsDestinationRule ¶ added in v1.54.0
func CreateNoSubsetLabelsDestinationRule(namespace string, name string, host string) *networking_v1beta1.DestinationRule
func CreateOneLabelSelector ¶ added in v1.18.1
func CreatePortLevelTrafficPolicyForDestinationRules ¶ added in v0.15.0
func CreatePortLevelTrafficPolicyForDestinationRules() *api_networking_v1beta1.TrafficPolicy
func CreateServer ¶ added in v0.11.0
func CreateServer(hosts []string, port uint32, portName, protocolName string) *api_networking_v1beta1.Server
func CreateSidecar ¶ added in v1.15.0
func CreateSidecar(name string, namespace string) *networking_v1beta1.Sidecar
func CreateSimpleTLSTrafficPolicyForDestinationRules ¶ added in v0.16.0
func CreateSimpleTLSTrafficPolicyForDestinationRules() *api_networking_v1beta1.TrafficPolicy
func CreateSubset ¶
func CreateSubset(name string, versionLabel string) *api_networking_v1beta1.Subset
func CreateTLSPortLevelTrafficPolicyForDestinationRules ¶ added in v0.15.0
func CreateTLSPortLevelTrafficPolicyForDestinationRules() *api_networking_v1beta1.TrafficPolicy
func CreateTcpRoute ¶ added in v1.42.0
func CreateTcpRoute(host string, subset string, weight int32) *api_networking_v1beta1.TCPRoute
func CreateTestDestinationRule ¶
func CreateTestDestinationRule(namespace string, name string, host string) *networking_v1beta1.DestinationRule
func CreateTlsRoute ¶ added in v1.47.0
func CreateTlsRoute(host string, subset string, weight int32) *api_networking_v1beta1.TLSRoute
func CreateTrafficPolicyForDestinationRules ¶ added in v0.16.0
func CreateTrafficPolicyForDestinationRules(mode string) *api_networking_v1beta1.TrafficPolicy
func CreateVirtualService ¶
func CreateVirtualService() *networking_v1beta1.VirtualService
TODO Naming etc
func CreateVirtualServiceWithServiceEntryTarget ¶
func CreateVirtualServiceWithServiceEntryTarget() *networking_v1beta1.VirtualService
Example from https://istio.io/docs/reference/config/istio.networking.v1alpha3/#Destination
func CreateWorkloadList ¶ added in v0.13.0
func CreateWorkloadList(namespace string, items ...models.WorkloadListItem) models.WorkloadList
func CreateWorkloadListItem ¶ added in v0.13.0
func CreateWorkloadListItem(name string, labels map[string]string) models.WorkloadListItem
func CreateWorkloadsPerNamespace ¶ added in v1.53.0
func CreateWorkloadsPerNamespace(namespaces []string, items ...models.WorkloadListItem) map[string]models.WorkloadList
func UpdateConditionWithError ¶ added in v1.63.0
func UpdateConditionWithError(k8sgw *k8s_networking_v1beta1.Gateway) *k8s_networking_v1beta1.Gateway
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.