Documentation
¶
Index ¶
Constants ¶
View Source
const ( // GatewayPrefix prefix annotation GatewayPrefix = "gateway.appmesh.k8s.aws/" // GatewayExpose expose boolean annotation GatewayExpose = GatewayPrefix + "expose" // GatewayDomain annotation with a comma separated list of public or internal domains GatewayDomain = GatewayPrefix + "domain" // GatewayTimeout max response duration annotation GatewayTimeout = GatewayPrefix + "timeout" // GatewayRetries number of retries annotation GatewayRetries = GatewayPrefix + "retries" // GatewayPrimary primary virtual service name annotation GatewayPrimary = GatewayPrefix + "primary" // GatewayCanary canary virtual service name annotation GatewayCanary = GatewayPrefix + "canary" // GatewayCanaryWeight traffic weight percentage annotation GatewayCanaryWeight = GatewayPrefix + "canary-weight" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Canary ¶
type Canary struct {
PrimaryCluster string `json:"primaryCluster"`
CanaryCluster string `json:"canaryCluster"`
CanaryWeight int `json:"canaryWeight"`
}
Canary is a compact form of an Envoy weighted cluster
func CanaryFromAnnotations ¶
CanaryFromAnnotations parses the annotations and returns a canary object
type Snapshot ¶
type Snapshot struct {
// contains filtered or unexported fields
}
Snapshot manages Envoy clusters and listeners cache snapshots
func NewSnapshot ¶
func NewSnapshot(cache cache.SnapshotCache) *Snapshot
NewSnapshot creates an Envoy cache snapshot manager
type Upstream ¶
type Upstream struct {
Name string `json:"name"`
Host string `json:"host"`
Port uint32 `json:"port"`
PortName string `json:"portName"`
Domains []string `json:"domains"`
Prefix string `json:"prefix"`
Retries uint32 `json:"retries"`
Timeout time.Duration `json:"timeout"`
Canary *Canary `json:"canary"`
}
Upstream is a compact form of an Envoy cluster and virtual host
Click to show internal directories.
Click to hide internal directories.