Documentation ¶
Index ¶
- func AddGatewaysToVirtualService(gateways []string, vs kubernetes.IstioObject) kubernetes.IstioObject
- func AddHostsToSidecar(hl []interface{}, sc kubernetes.IstioObject) kubernetes.IstioObject
- func AddPortDefinitionToServiceEntry(portDef map[string]interface{}, se kubernetes.IstioObject) kubernetes.IstioObject
- func AddRoutesToVirtualService(routeType string, route map[string]interface{}, vs kubernetes.IstioObject) kubernetes.IstioObject
- func AddSelectorToPeerAuthn(selector map[string]interface{}, mp kubernetes.IstioObject) kubernetes.IstioObject
- func AddSelectorToSidecar(selector map[string]interface{}, sc kubernetes.IstioObject) kubernetes.IstioObject
- func AddServerToGateway(server map[string]interface{}, gw kubernetes.IstioObject) kubernetes.IstioObject
- func AddSubsetToDestinationRule(subset map[string]interface{}, dr kubernetes.IstioObject) kubernetes.IstioObject
- func AddTrafficPolicyToDestinationRule(trafficPolicy map[string]interface{}, dr kubernetes.IstioObject) kubernetes.IstioObject
- func CreateAuthorizationPolicy(sourceNamespaces, operationMethods, operationHosts []interface{}, ...) kubernetes.IstioObject
- func CreateDisabledMTLSTrafficPolicyForDestinationRules() map[string]interface{}
- func CreateEmptyDestinationRule(namespace string, name string, host string) kubernetes.IstioObject
- func CreateEmptyGateway(name, namespace string, selector map[string]string) kubernetes.IstioObject
- func CreateEmptyMeshExternalServiceEntry(name, namespace string, hosts []string) kubernetes.IstioObject
- func CreateEmptyMeshPeerAuthentication(name string, mtls interface{}) kubernetes.IstioObject
- func CreateEmptyPeerAuthentication(name, namespace string, mtls interface{}) kubernetes.IstioObject
- func CreateEmptyPeerAuthenticationWithSelector(name, namespace string, selector interface{}) kubernetes.IstioObject
- func CreateEmptyPortDefinition(port uint32, portName, protocolName string) map[string]interface{}
- func CreateEmptyVirtualService(name string, namespace string, hosts []string) kubernetes.IstioObject
- func CreateExternalServiceEntry() kubernetes.IstioObject
- func CreateLoadBalancerTrafficPolicyForDestinationRules() map[string]interface{}
- func CreateMTLS(mode string) interface{}
- func CreateMTLSTrafficPolicyForDestinationRules() map[string]interface{}
- func CreateNoLabelsDestinationRule(namespace string, name string, host string) kubernetes.IstioObject
- func CreateNoLabelsSubset(name string) map[string]interface{}
- func CreateOneLabelSelector(value string) map[string]interface{}
- func CreatePortLevelTrafficPolicyForDestinationRules() map[string]interface{}
- func CreateRoute(host string, subset string, weight int64) map[string]interface{}
- func CreateServer(hosts []string, port uint32, portName, protocolName string) map[string]interface{}
- func CreateSidecar(name string, namespace string) kubernetes.IstioObject
- func CreateSimpleTLSTrafficPolicyForDestinationRules() map[string]interface{}
- func CreateSubset(name string, versionLabel string) map[string]interface{}
- func CreateTLSPortLevelTrafficPolicyForDestinationRules() map[string]interface{}
- func CreateTestDestinationRule(namespace string, name string, host string) kubernetes.IstioObject
- func CreateTrafficPolicyForDestinationRules(mode string) map[string]interface{}
- func CreateVirtualService() kubernetes.IstioObject
- func CreateVirtualServiceWithServiceEntryTarget() kubernetes.IstioObject
- func CreateWorkloadList(namespace string, items ...models.WorkloadListItem) models.WorkloadList
- func CreateWorkloadListItem(name string, labels map[string]string) models.WorkloadListItem
- type FixtureLoader
- type YamlFixtureLoader
- func (l YamlFixtureLoader) GetAllResources() []kubernetes.IstioObject
- func (l YamlFixtureLoader) GetFirstResource(kind string) kubernetes.IstioObject
- func (l YamlFixtureLoader) GetResource(kind, name, namespace string) kubernetes.IstioObject
- func (l YamlFixtureLoader) GetResources(kind string) []kubernetes.IstioObject
- func (l YamlFixtureLoader) GetResourcesIn(kind, namespace string) []kubernetes.IstioObject
- func (l YamlFixtureLoader) GetResourcesMatching(kind string, match func(resource kubernetes.IstioObject) bool) []kubernetes.IstioObject
- func (l YamlFixtureLoader) GetResourcesNotIn(kind, namespace string) []kubernetes.IstioObject
- func (l *YamlFixtureLoader) Load() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddGatewaysToVirtualService ¶
func AddGatewaysToVirtualService(gateways []string, vs kubernetes.IstioObject) kubernetes.IstioObject
func AddHostsToSidecar ¶ added in v1.15.0
func AddHostsToSidecar(hl []interface{}, sc kubernetes.IstioObject) kubernetes.IstioObject
func AddPortDefinitionToServiceEntry ¶ added in v0.16.0
func AddPortDefinitionToServiceEntry(portDef map[string]interface{}, se kubernetes.IstioObject) kubernetes.IstioObject
func AddRoutesToVirtualService ¶
func AddRoutesToVirtualService(routeType string, route map[string]interface{}, vs kubernetes.IstioObject) kubernetes.IstioObject
func AddSelectorToPeerAuthn ¶ added in v1.18.1
func AddSelectorToPeerAuthn(selector map[string]interface{}, mp kubernetes.IstioObject) kubernetes.IstioObject
func AddSelectorToSidecar ¶ added in v1.15.0
func AddSelectorToSidecar(selector map[string]interface{}, sc kubernetes.IstioObject) kubernetes.IstioObject
func AddServerToGateway ¶ added in v0.11.0
func AddServerToGateway(server map[string]interface{}, gw kubernetes.IstioObject) kubernetes.IstioObject
func AddSubsetToDestinationRule ¶
func AddSubsetToDestinationRule(subset map[string]interface{}, dr kubernetes.IstioObject) kubernetes.IstioObject
func AddTrafficPolicyToDestinationRule ¶ added in v0.15.0
func AddTrafficPolicyToDestinationRule(trafficPolicy map[string]interface{}, dr kubernetes.IstioObject) kubernetes.IstioObject
func CreateAuthorizationPolicy ¶ added in v1.14.0
func CreateAuthorizationPolicy(sourceNamespaces, operationMethods, operationHosts []interface{}, selector map[string]interface{}) kubernetes.IstioObject
func CreateDisabledMTLSTrafficPolicyForDestinationRules ¶ added in v0.16.0
func CreateDisabledMTLSTrafficPolicyForDestinationRules() map[string]interface{}
func CreateEmptyDestinationRule ¶
func CreateEmptyDestinationRule(namespace string, name string, host string) kubernetes.IstioObject
func CreateEmptyGateway ¶
func CreateEmptyGateway(name, namespace string, selector map[string]string) kubernetes.IstioObject
func CreateEmptyMeshExternalServiceEntry ¶ added in v0.16.0
func CreateEmptyMeshExternalServiceEntry(name, namespace string, hosts []string) kubernetes.IstioObject
func CreateEmptyMeshPeerAuthentication ¶ added in v1.18.1
func CreateEmptyMeshPeerAuthentication(name string, mtls interface{}) kubernetes.IstioObject
func CreateEmptyPeerAuthentication ¶ added in v1.18.1
func CreateEmptyPeerAuthentication(name, namespace string, mtls interface{}) kubernetes.IstioObject
func CreateEmptyPeerAuthenticationWithSelector ¶ added in v1.18.1
func CreateEmptyPeerAuthenticationWithSelector(name, namespace string, selector interface{}) kubernetes.IstioObject
func CreateEmptyPortDefinition ¶ added in v0.16.0
func CreateEmptyVirtualService ¶
func CreateEmptyVirtualService(name string, namespace string, hosts []string) kubernetes.IstioObject
func CreateExternalServiceEntry ¶
func CreateExternalServiceEntry() kubernetes.IstioObject
func CreateLoadBalancerTrafficPolicyForDestinationRules ¶ added in v0.15.0
func CreateLoadBalancerTrafficPolicyForDestinationRules() map[string]interface{}
func CreateMTLS ¶ added in v1.18.1
func CreateMTLS(mode string) interface{}
func CreateMTLSTrafficPolicyForDestinationRules ¶ added in v0.15.0
func CreateMTLSTrafficPolicyForDestinationRules() map[string]interface{}
func CreateNoLabelsDestinationRule ¶ added in v1.26.0
func CreateNoLabelsDestinationRule(namespace string, name string, host string) kubernetes.IstioObject
func CreateNoLabelsSubset ¶ added in v1.26.0
func CreateOneLabelSelector ¶ added in v1.18.1
func CreatePortLevelTrafficPolicyForDestinationRules ¶ added in v0.15.0
func CreatePortLevelTrafficPolicyForDestinationRules() map[string]interface{}
func CreateRoute ¶
func CreateServer ¶ added in v0.11.0
func CreateSidecar ¶ added in v1.15.0
func CreateSidecar(name string, namespace string) kubernetes.IstioObject
func CreateSimpleTLSTrafficPolicyForDestinationRules ¶ added in v0.16.0
func CreateSimpleTLSTrafficPolicyForDestinationRules() map[string]interface{}
func CreateSubset ¶
func CreateTLSPortLevelTrafficPolicyForDestinationRules ¶ added in v0.15.0
func CreateTLSPortLevelTrafficPolicyForDestinationRules() map[string]interface{}
func CreateTestDestinationRule ¶
func CreateTestDestinationRule(namespace string, name string, host string) kubernetes.IstioObject
func CreateTrafficPolicyForDestinationRules ¶ added in v0.16.0
func CreateVirtualServiceWithServiceEntryTarget ¶
func CreateVirtualServiceWithServiceEntryTarget() kubernetes.IstioObject
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
Types ¶
type FixtureLoader ¶ added in v1.19.0
type FixtureLoader interface { Load() error GetResources(kind string) kubernetes.IstioObjectList }
type YamlFixtureLoader ¶ added in v1.19.0
type YamlFixtureLoader struct { Filename string // contains filtered or unexported fields }
func (YamlFixtureLoader) GetAllResources ¶ added in v1.24.0
func (l YamlFixtureLoader) GetAllResources() []kubernetes.IstioObject
func (YamlFixtureLoader) GetFirstResource ¶ added in v1.22.0
func (l YamlFixtureLoader) GetFirstResource(kind string) kubernetes.IstioObject
func (YamlFixtureLoader) GetResource ¶ added in v1.19.0
func (l YamlFixtureLoader) GetResource(kind, name, namespace string) kubernetes.IstioObject
func (YamlFixtureLoader) GetResources ¶ added in v1.19.0
func (l YamlFixtureLoader) GetResources(kind string) []kubernetes.IstioObject
func (YamlFixtureLoader) GetResourcesIn ¶ added in v1.22.0
func (l YamlFixtureLoader) GetResourcesIn(kind, namespace string) []kubernetes.IstioObject
func (YamlFixtureLoader) GetResourcesMatching ¶ added in v1.22.0
func (l YamlFixtureLoader) GetResourcesMatching(kind string, match func(resource kubernetes.IstioObject) bool) []kubernetes.IstioObject
func (YamlFixtureLoader) GetResourcesNotIn ¶ added in v1.22.0
func (l YamlFixtureLoader) GetResourcesNotIn(kind, namespace string) []kubernetes.IstioObject
func (*YamlFixtureLoader) Load ¶ added in v1.19.0
func (l *YamlFixtureLoader) Load() error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.