mesh

package
v0.0.0-...-8766ec0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 GetIngressPort

func GetIngressPort() string

GetIngressPort returns the ingress port

func GetIngressProtocol

func GetIngressProtocol() string

GetIngressProtocol returns the ingress protocol

func GetLocalDeploymentURI

func GetLocalDeploymentURI(event keptnv2.EventData, port string) []string

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

func GetPublicDeploymentURI(event keptnv2.EventData) []string

GetPublicDeploymentURI returns URIs where a service is exposed

Types

type HTTPRouteDestination

type HTTPRouteDestination struct {
	Host   string
	Weight int32
}

HTTPRouteDestination helper struct for route destinations in a VirtualService

type IstioMesh

type IstioMesh struct {
}

IstioMesh is a Istio implementation of interface Mesh

func NewIstioMesh

func NewIstioMesh() *IstioMesh

NewIstioMesh generates a new istio mesh

func (*IstioMesh) GenerateDestinationRule

func (*IstioMesh) GenerateDestinationRule(name string, host string) ([]byte, error)

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

func (*IstioMesh) GetDestinationRuleSuffix() string

GetDestinationRuleSuffix returns the file name suffix of destination rules

func (*IstioMesh) GetVirtualServiceSuffix

func (*IstioMesh) GetVirtualServiceSuffix() string

GetVirtualServiceSuffix returns the file name suffix of virtual services

func (*IstioMesh) UpdateWeights

func (*IstioMesh) UpdateWeights(virtualService []byte, canaryWeight int32) ([]byte, error)

UpdateWeights returns a virtual service with updated weights

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL