Documentation ¶
Index ¶
- Constants
- type ManifestBuilder
- func (b *ManifestBuilder) BuildNodeDeployment(instanceName string, replicas int32) *appsv1.Deployment
- func (b *ManifestBuilder) BuildNodeService(instanceName string) *corev1.Service
- func (b *ManifestBuilder) BuildNodeVirtualNode(instanceName string, backendVirtualServices []types.NamespacedName) *appmesh.VirtualNode
- func (b *ManifestBuilder) BuildServiceService(instanceName string) *corev1.Service
- func (b *ManifestBuilder) BuildServiceVirtualRouter(instanceName string, routeCfgs []RouteToWeightedVirtualNodes) *appmesh.VirtualRouter
- func (b *ManifestBuilder) BuildServiceVirtualService(instanceName string) *appmesh.VirtualService
- type RouteToWeightedVirtualNodes
- type ServiceDiscoveryType
- type WeightedVirtualNode
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
Click to show internal directories.
Click to hide internal directories.