manifest

package
v1.2.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerInfo added in v1.2.0

type ContainerInfo struct {
	Name          string
	AppImage      string
	ContainerPort int32
	Env           []corev1.EnvVar
	Args          []string
}

type GRBuilder

type GRBuilder struct {
	Namespace string
}

func (*GRBuilder) BuildGRPCRoute

func (b *GRBuilder) BuildGRPCRoute(grpcServiceName string, vsName string, nsName string) *appmesh.GRPCGatewayRoute

func (*GRBuilder) BuildGatewayRouteWithHTTP

func (b *GRBuilder) BuildGatewayRouteWithHTTP(instanceName string, vsName string, prefix string) *appmesh.GatewayRoute

func (*GRBuilder) BuildHTTPRoute

func (b *GRBuilder) BuildHTTPRoute(prefix string, vsName string, nsName string) *appmesh.HTTPGatewayRoute

type ManifestBuilder

type ManifestBuilder struct {
	Namespace            string
	ServiceDiscoveryType ServiceDiscoveryType

	// required when serviceDiscoveryType == CloudMapServiceDiscovery
	CloudMapNamespace string
}

func (*ManifestBuilder) BuildContainerSpec added in v1.2.0

func (b *ManifestBuilder) BuildContainerSpec(containersInfo []ContainerInfo) []corev1.Container

func (*ManifestBuilder) BuildDeployment

func (b *ManifestBuilder) BuildDeployment(instanceName string, replicas int32, containers []corev1.Container, annotations map[string]string) *appsv1.Deployment

func (*ManifestBuilder) BuildK8SSecretsFromPemFile added in v1.2.0

func (b *ManifestBuilder) BuildK8SSecretsFromPemFile(pemFileBasePath string, tlsFiles []string,
	secretName string, f *framework.Framework) *corev1.Secret

func (*ManifestBuilder) BuildServiceWithSelector

func (b *ManifestBuilder) BuildServiceWithSelector(instanceName string, containerPort int32, targetPort int) *corev1.Service

func (*ManifestBuilder) BuildServiceWithoutSelector

func (b *ManifestBuilder) BuildServiceWithoutSelector(instanceName string, containerPort int32, targetPort int) *corev1.Service

type RouteToWeightedVirtualNodes

type RouteToWeightedVirtualNodes struct {
	Path            string
	WeightedTargets []WeightedVirtualNode
}

type ServiceDiscoveryType

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

type VGBuilder

type VGBuilder struct {
	Namespace string
}

func (*VGBuilder) BuildHealthCheckPolicy

func (*VGBuilder) BuildVGListener

func (b *VGBuilder) BuildVGListener(protocol appmesh.VirtualGatewayPortProtocol, port appmesh.PortNumber, healthCheckPath string) appmesh.VirtualGatewayListener

func (*VGBuilder) BuildVirtualGateway

func (b *VGBuilder) BuildVirtualGateway(instanceName string, listeners []appmesh.VirtualGatewayListener, nsSelector map[string]string) *appmesh.VirtualGateway

type VNBuilder

type VNBuilder struct {
	Namespace            string
	ServiceDiscoveryType ServiceDiscoveryType

	// required when serviceDiscoveryType == CloudMapServiceDiscovery
	CloudMapNamespace string
}

func (*VNBuilder) BuildListener

func (b *VNBuilder) BuildListener(protocol appmesh.PortProtocol, port appmesh.PortNumber) appmesh.Listener

func (*VNBuilder) BuildListenerWithConnectionPools added in v1.2.0

func (*VNBuilder) BuildListenerWithOutlierDetection added in v1.2.0

func (b *VNBuilder) BuildListenerWithOutlierDetection(protocol appmesh.PortProtocol, port appmesh.PortNumber, maxServerErrors int64,
	interval appmesh.Duration, baseEjectionDuration appmesh.Duration, maxEjectionPercent int64) appmesh.Listener

func (*VNBuilder) BuildListenerWithTLS added in v1.2.0

func (b *VNBuilder) BuildListenerWithTLS(protocol appmesh.PortProtocol, port appmesh.PortNumber, listenerTLS *appmesh.ListenerTLS) appmesh.Listener

func (*VNBuilder) BuildListenerWithTimeout

func (b *VNBuilder) BuildListenerWithTimeout(protocol appmesh.PortProtocol, port appmesh.PortNumber, timeout int64, unit appmesh.DurationUnit) appmesh.Listener

func (*VNBuilder) BuildVirtualNode

func (b *VNBuilder) BuildVirtualNode(instanceName string, backendVirtualServices []types.NamespacedName,
	listeners []appmesh.Listener, backendDefaults *appmesh.BackendDefaults) *appmesh.VirtualNode

type VRBuilder

type VRBuilder struct {
	Namespace string
	Listeners []appmesh.VirtualRouterListener
}

func (*VRBuilder) BuildRoutes

func (b *VRBuilder) BuildRoutes(routeCfgs []RouteToWeightedVirtualNodes) []appmesh.Route

func (*VRBuilder) BuildVirtualRouter

func (b *VRBuilder) BuildVirtualRouter(instanceName string, routes []appmesh.Route) *appmesh.VirtualRouter

func (*VRBuilder) BuildVirtualRouterListener

func (b *VRBuilder) BuildVirtualRouterListener(protocol appmesh.PortProtocol, port appmesh.PortNumber) appmesh.VirtualRouterListener

type VSBuilder

type VSBuilder struct {
	Namespace string
}

func (*VSBuilder) BuildVirtualServiceNoBackend

func (b *VSBuilder) BuildVirtualServiceNoBackend(instanceName string) *appmesh.VirtualService

func (*VSBuilder) BuildVirtualServiceWithNodeBackend

func (b *VSBuilder) BuildVirtualServiceWithNodeBackend(instanceName string, vnName string) *appmesh.VirtualService

func (*VSBuilder) BuildVirtualServiceWithRouterBackend

func (b *VSBuilder) BuildVirtualServiceWithRouterBackend(instanceName string, vrName string) *appmesh.VirtualService

type WeightedVirtualNode

type WeightedVirtualNode struct {
	VirtualNode types.NamespacedName
	Weight      int64
}

Jump to

Keyboard shortcuts

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