Documentation ¶
Index ¶
- func GetIngressGateway() string
- func GetIngressHostnameSuffix() string
- func GetIngressPort() string
- func GetIngressProtocol() string
- func GetLocalDeploymentURI(event keptnv2.EventData, port string) []string
- func GetPublicDeploymentHostNameTemplate() string
- func GetPublicDeploymentURI(event keptnv2.EventData) []string
- type HTTPRouteDestination
- type IstioMesh
- func (*IstioMesh) GenerateDestinationRule(name string, host string) ([]byte, error)
- func (*IstioMesh) GenerateVirtualService(name string, gateways []string, hosts []string, ...) ([]byte, error)
- func (*IstioMesh) GetDestinationRuleSuffix() string
- func (*IstioMesh) GetVirtualServiceSuffix() string
- func (*IstioMesh) UpdateWeights(virtualService []byte, canaryWeight int32) ([]byte, error)
- type Mesh
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIngressGateway ¶
func GetIngressGateway() string
GetIngressGateway returns the ingress gateway
func GetIngressHostnameSuffix ¶
func GetIngressHostnameSuffix() string
GetIngressHostnameSuffix returns the ingress hostname suffix
func GetIngressProtocol ¶
func GetIngressProtocol() string
GetIngressProtocol returns the ingress protocol
func GetLocalDeploymentURI ¶
GetLocalDeploymentURI returns URIs where a service is accessible from within the cluster
func GetPublicDeploymentHostNameTemplate ¶
func GetPublicDeploymentHostNameTemplate() string
GetPublicDeploymentHostNameTemplate returns the HostName of the service
func GetPublicDeploymentURI ¶
GetPublicDeploymentURI returns URIs where a service is exposed
Types ¶
type HTTPRouteDestination ¶
HTTPRouteDestination helper struct for route destinations in a VirtualService
type IstioMesh ¶
type IstioMesh struct { }
IstioMesh is a Istio implementation of interface Mesh
func (*IstioMesh) GenerateDestinationRule ¶
GenerateDestinationRule generates a new Istio DestinationRule
func (*IstioMesh) GenerateVirtualService ¶
func (*IstioMesh) GenerateVirtualService(name string, gateways []string, hosts []string, httpRouteDestinations []HTTPRouteDestination) ([]byte, error)
GenerateVirtualService generates a new Istio VirtualService
func (*IstioMesh) GetDestinationRuleSuffix ¶
GetDestinationRuleSuffix returns the file name suffix of destination rules
func (*IstioMesh) GetVirtualServiceSuffix ¶
GetVirtualServiceSuffix returns the file name suffix of virtual services
type Mesh ¶
type Mesh interface { GenerateDestinationRule(name string, host string) ([]byte, error) GenerateVirtualService(name string, gateways []string, hosts []string, httpRouteDestinations []HTTPRouteDestination) ([]byte, error) UpdateWeights(virtualService []byte, canaryWeight int32) ([]byte, error) GetDestinationRuleSuffix() string GetVirtualServiceSuffix() string }
Mesh abstracts the underlying mesh router