commons

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const CellKind = "Cell"
View Source
const CompositeKind = "Composite"
View Source
const Instance = "instance"
View Source
const InstanceId = "x-instance-id"
View Source
const Kind = "kind"

Variables

This section is empty.

Functions

func Annotate

func Annotate(vs *v1alpha3.VirtualService, name string, value string)

func BuildHostNameForCellDependency

func BuildHostNameForCellDependency(dependencyInst string) string

func BuildHostNamesForCompositeDependency

func BuildHostNamesForCompositeDependency(dependencyInst string, components []v1alpha2.Component) []string

func BuildHttpRoutesForCellDependency

func BuildHttpRoutesForCellDependency(name string, dependencyInst string, isInstanceIdBasedRulesRequired bool, builder SrcLabelBulder) []*v1alpha3.HTTPRoute

func BuildHttpRoutesForCompositeDependency

func BuildHttpRoutesForCompositeDependency(name string, dependencyInst string, components []v1alpha2.Component, isInstanceIdBasedRulesRequired bool, builder SrcLabelBulder) []*v1alpha3.HTTPRoute

func BuildVirtualServiceLastAppliedConfig

func BuildVirtualServiceLastAppliedConfig(vs *v1alpha3.VirtualService) *v1alpha3.VirtualService

func CompositeK8sServiceNameFromInstance

func CompositeK8sServiceNameFromInstance(instance string, component v1alpha2.Component) string

func ExtractDependencies

func ExtractDependencies(annotations map[string]string) ([]map[string]string, error)

func GatewayK8sServiceName

func GatewayK8sServiceName(gwName string) string

func GatewayNameFromInstanceName

func GatewayNameFromInstanceName(instance string) string

func RoutingVirtualServiceName

func RoutingVirtualServiceName(instanceName string) string

Types

type SrcLabelBulder

type SrcLabelBulder interface {
	Get(instance string) map[string]string
}

Jump to

Keyboard shortcuts

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