Documentation ¶
Index ¶
- func Deployment(c client.Client) func(namespace, name string) appsv1.Deployment
- func DeploymentConfig(c client.Client) func(namespace, name string) osappsv1.DeploymentConfig
- func DeploymentConfigWithError(c client.Client) func(namespace, name string) (osappsv1.DeploymentConfig, error)
- func DeploymentWithError(c client.Client) func(namespace, name string) (appsv1.Deployment, error)
- func DestinationRule(c client.Client) func(namespace, name string) istionetwork.DestinationRule
- func DestinationRules(c client.Client) ...
- func Gateway(c client.Client) func(namespace, name string) istionetwork.Gateway
- func Session(c client.Client) func(namespace, name string) v1alpha1.Session
- func VirtualService(c client.Client) func(namespace, name string) istionetwork.VirtualService
- func VirtualServices(c client.Client) func(namespace string) istionetwork.VirtualServiceList
- type Getters
- type Predicate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Deployment ¶
func Deployment(c client.Client) func(namespace, name string) appsv1.Deployment
Deployment returns a deployment by name in a given namespace.
func DeploymentConfig ¶
func DeploymentConfig(c client.Client) func(namespace, name string) osappsv1.DeploymentConfig
DeploymentConfig returns a deploymentconfig by name in a given namespace.
func DeploymentConfigWithError ¶
func DeploymentConfigWithError(c client.Client) func(namespace, name string) (osappsv1.DeploymentConfig, error)
DeploymentConfigWithError returns a deploymentconfig by name in a given namespace or error.
func DeploymentWithError ¶
DeploymentWithError returns a deployment by name in a given namespace or error.
func DestinationRule ¶
func DestinationRule(c client.Client) func(namespace, name string) istionetwork.DestinationRule
DestinationRule returns a destinationrule by name in a given namespace.
func DestinationRules ¶ added in v0.1.0
func DestinationRules(c client.Client) func(namespace string, predicates ...Predicate) istionetwork.DestinationRuleList
DestinationRules returns all DestinationRules in a given namespace. When predicates are provided all of them should be satisfied in order to keep the element on the list.
func Gateway ¶
func Gateway(c client.Client) func(namespace, name string) istionetwork.Gateway
Gateway returns a gateway by name in a given namespace.
func VirtualService ¶
func VirtualService(c client.Client) func(namespace, name string) istionetwork.VirtualService
VirtualService returns a virtualservice by name in a given namespace.
func VirtualServices ¶
func VirtualServices(c client.Client) func(namespace string) istionetwork.VirtualServiceList
VirtualServices returns all virtualservices in a given namespace.
Types ¶
type Getters ¶
type Getters struct { Session func(namespace, name string) v1alpha1.Session Gateway func(namespace, name string) istionetwork.Gateway DestinationRule func(namespace, name string) istionetwork.DestinationRule DestinationRules func(namespace string, predicates ...Predicate) istionetwork.DestinationRuleList VirtualService func(namespace, name string) istionetwork.VirtualService Deployment func(namespace, name string) appsv1.Deployment DeploymentWithError func(namespace, name string) (appsv1.Deployment, error) DeploymentConfig func(namespace, name string) osappsv1.DeploymentConfig DeploymentConfigWithError func(namespace, name string) (osappsv1.DeploymentConfig, error) VirtualServices func(namespace string) istionetwork.VirtualServiceList }
Getters simple struct to hold funcs.