shared

package
v1.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppContainerPort       = 9080
	HttpProxyContainerPort = 8899
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ManifestBuilder

type ManifestBuilder struct {
	Namespace            string
	ServiceDiscoveryType ServiceDiscoveryType

	// required when serviceDiscoveryType == CloudMapServiceDiscovery
	CloudMapNamespace string
}

func (*ManifestBuilder) BuildNodeDeployment

func (b *ManifestBuilder) BuildNodeDeployment(instanceName string, replicas int32) *appsv1.Deployment

func (*ManifestBuilder) BuildNodeService

func (b *ManifestBuilder) BuildNodeService(instanceName string) *corev1.Service

func (*ManifestBuilder) BuildNodeVirtualNode

func (b *ManifestBuilder) BuildNodeVirtualNode(instanceName string, backendVirtualServices []types.NamespacedName) *appmesh.VirtualNode

func (*ManifestBuilder) BuildServiceService

func (b *ManifestBuilder) BuildServiceService(instanceName string) *corev1.Service

func (*ManifestBuilder) BuildServiceVirtualRouter added in v1.0.0

func (b *ManifestBuilder) BuildServiceVirtualRouter(instanceName string, routeCfgs []RouteToWeightedVirtualNodes) *appmesh.VirtualRouter

func (*ManifestBuilder) BuildServiceVirtualService

func (b *ManifestBuilder) BuildServiceVirtualService(instanceName string) *appmesh.VirtualService

type RouteToWeightedVirtualNodes

type RouteToWeightedVirtualNodes struct {
	Path            string
	WeightedTargets []WeightedVirtualNode
}

type ServiceDiscoveryType

type ServiceDiscoveryType string
const (
	DNSServiceDiscovery      ServiceDiscoveryType = "DNS"
	CloudMapServiceDiscovery ServiceDiscoveryType = "CloudMap"
)

type WeightedVirtualNode

type WeightedVirtualNode struct {
	VirtualNode types.NamespacedName
	Weight      int64
}

WeightedVirtualNode is virtual node with weight

Jump to

Keyboard shortcuts

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