Documentation ¶
Index ¶
- type BGBuilder
- type ContainerInfo
- type GRBuilder
- func (b *GRBuilder) BuildGRPCRoute(grpcServiceName string, vsName string, nsName string) *appmesh.GRPCGatewayRoute
- func (b *GRBuilder) BuildGatewayRouteWithHTTP(instanceName string, vsName string, prefix string) *appmesh.GatewayRoute
- func (b *GRBuilder) BuildHTTPRoute(prefix string, vsName string, nsName string) *appmesh.HTTPGatewayRoute
- type ManifestBuilder
- func (b *ManifestBuilder) BuildContainerSpec(containersInfo []ContainerInfo) []corev1.Container
- func (b *ManifestBuilder) BuildDeployment(instanceName string, replicas int32, containers []corev1.Container, ...) *appsv1.Deployment
- func (b *ManifestBuilder) BuildK8SSecretsFromPemFile(pemFileBasePath string, tlsFiles []string, secretName string, ...) *corev1.Secret
- func (b *ManifestBuilder) BuildPod(containers []corev1.Container, labels map[string]string) *corev1.Pod
- func (b *ManifestBuilder) BuildPodGroup(containers []corev1.Container, podGroupName string, podCount int) PodGroupInfo
- func (b *ManifestBuilder) BuildServiceWithSelector(instanceName string, containerPort int32, targetPort int) *corev1.Service
- func (b *ManifestBuilder) BuildServiceWithoutSelector(instanceName string, containerPort int32, targetPort int) *corev1.Service
- type PodGroupInfo
- type RouteToWeightedVirtualNodes
- type ServiceDiscoveryType
- type TCPRouteMatch
- type TcpRouteToWeightedVirtualNodes
- type VGBuilder
- func (b *VGBuilder) BuildHealthCheckPolicy(path string, protocol appmesh.VirtualGatewayPortProtocol, ...) *appmesh.VirtualGatewayHealthCheckPolicy
- func (b *VGBuilder) BuildListenerWithConnectionPools(protocol appmesh.VirtualGatewayPortProtocol, port appmesh.PortNumber, ...) appmesh.VirtualGatewayListener
- func (b *VGBuilder) BuildVGListener(protocol appmesh.VirtualGatewayPortProtocol, port appmesh.PortNumber, ...) appmesh.VirtualGatewayListener
- func (b *VGBuilder) BuildVirtualGateway(instanceName string, listeners []appmesh.VirtualGatewayListener, ...) *appmesh.VirtualGateway
- type VNBuilder
- func (b *VNBuilder) BuildListener(protocol appmesh.PortProtocol, port appmesh.PortNumber) appmesh.Listener
- func (b *VNBuilder) BuildListenerWithConnectionPools(protocol appmesh.PortProtocol, port appmesh.PortNumber, ...) appmesh.Listener
- func (b *VNBuilder) BuildListenerWithOutlierDetection(protocol appmesh.PortProtocol, port appmesh.PortNumber, maxServerErrors int64, ...) appmesh.Listener
- func (b *VNBuilder) BuildListenerWithTLS(protocol appmesh.PortProtocol, port appmesh.PortNumber, ...) appmesh.Listener
- func (b *VNBuilder) BuildListenerWithTimeout(protocol appmesh.PortProtocol, port appmesh.PortNumber, timeout int64, ...) appmesh.Listener
- func (b *VNBuilder) BuildVirtualNode(instanceName string, backendVirtualServices []types.NamespacedName, ...) *appmesh.VirtualNode
- func (b *VNBuilder) BuildVirtualNodeWithPodSelector(instanceName string, backendVirtualServices []types.NamespacedName, ...) *appmesh.VirtualNode
- type VRBuilder
- func (b *VRBuilder) BuildRoutes(routeCfgs []RouteToWeightedVirtualNodes) []appmesh.Route
- func (b *VRBuilder) BuildTcpRouteMatch(port *int64) *TCPRouteMatch
- func (b *VRBuilder) BuildVirtualRouter(instanceName string, routes []appmesh.Route) *appmesh.VirtualRouter
- func (b *VRBuilder) BuildVirtualRouterListener(protocol appmesh.PortProtocol, port appmesh.PortNumber) appmesh.VirtualRouterListener
- func (b *VRBuilder) TcpBuildRoutes(tcpRoutesCFgs []TcpRouteToWeightedVirtualNodes) []appmesh.Route
- type VSBuilder
- func (b *VSBuilder) BuildVirtualServiceNoBackend(instanceName string) *appmesh.VirtualService
- func (b *VSBuilder) BuildVirtualServiceWithNodeBackend(instanceName string, vnName string) *appmesh.VirtualService
- func (b *VSBuilder) BuildVirtualServiceWithRouterBackend(instanceName string, vrName string) *appmesh.VirtualService
- type WeightedVirtualNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BGBuilder ¶ added in v1.6.0
type BGBuilder struct {
Namespace string
}
func (*BGBuilder) BuildBackendGroup ¶ added in v1.6.0
func (b *BGBuilder) BuildBackendGroup(instanceName string, backendVirtualServices []types.NamespacedName) *appmesh.BackendGroup
type ContainerInfo ¶ added in v1.2.0
type GRBuilder ¶
type GRBuilder struct {
Namespace string
}
func (*GRBuilder) BuildGRPCRoute ¶
func (*GRBuilder) BuildGatewayRouteWithHTTP ¶
func (*GRBuilder) BuildHTTPRoute ¶
type ManifestBuilder ¶
type ManifestBuilder struct { Namespace string ServiceDiscoveryType ServiceDiscoveryType // required when serviceDiscoveryType == CloudMapServiceDiscovery CloudMapNamespace string // If set, will not enable ipv6 on any of the pods. This is needed to handle // testing on github actions, where ipv6 is not supported - // https://github.com/actions/runner-images/issues/668. DisableIPv6 bool }
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 (*ManifestBuilder) BuildPodGroup ¶ added in v1.5.1
func (b *ManifestBuilder) BuildPodGroup(containers []corev1.Container, podGroupName string, podCount int) PodGroupInfo
func (*ManifestBuilder) BuildServiceWithSelector ¶
func (*ManifestBuilder) BuildServiceWithoutSelector ¶
type PodGroupInfo ¶ added in v1.5.1
type RouteToWeightedVirtualNodes ¶
type RouteToWeightedVirtualNodes struct { Path string WeightedTargets []WeightedVirtualNode }
type ServiceDiscoveryType ¶
type ServiceDiscoveryType string
const ( DNSServiceDiscovery ServiceDiscoveryType = "DNS" CloudMapServiceDiscovery ServiceDiscoveryType = "CloudMap" )
type TCPRouteMatch ¶ added in v1.12.4
type TCPRouteMatch struct {
Port *int64
}
type TcpRouteToWeightedVirtualNodes ¶ added in v1.12.4
type TcpRouteToWeightedVirtualNodes struct { Match *TCPRouteMatch WeightedTargets []WeightedVirtualNode }
type VGBuilder ¶
type VGBuilder struct {
Namespace string
}
func (*VGBuilder) BuildHealthCheckPolicy ¶
func (b *VGBuilder) BuildHealthCheckPolicy(path string, protocol appmesh.VirtualGatewayPortProtocol, port appmesh.PortNumber) *appmesh.VirtualGatewayHealthCheckPolicy
func (*VGBuilder) BuildListenerWithConnectionPools ¶ added in v1.2.0
func (b *VGBuilder) BuildListenerWithConnectionPools(protocol appmesh.VirtualGatewayPortProtocol, port appmesh.PortNumber, http *appmesh.HTTPConnectionPool, http2 *appmesh.HTTP2ConnectionPool, grpc *appmesh.GRPCConnectionPool) appmesh.VirtualGatewayListener
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 (b *VNBuilder) BuildListenerWithConnectionPools(protocol appmesh.PortProtocol, port appmesh.PortNumber, tcp *appmesh.TCPConnectionPool, http *appmesh.HTTPConnectionPool, http2 *appmesh.HTTP2ConnectionPool, grpc *appmesh.GRPCConnectionPool) appmesh.Listener
func (*VNBuilder) BuildListenerWithOutlierDetection ¶ added in v1.2.0
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
func (*VNBuilder) BuildVirtualNodeWithPodSelector ¶ added in v1.5.1
func (b *VNBuilder) BuildVirtualNodeWithPodSelector(instanceName string, backendVirtualServices []types.NamespacedName, listeners []appmesh.Listener, backendDefaults *appmesh.BackendDefaults, podSelectors map[string]string) *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) BuildTcpRouteMatch ¶ added in v1.12.4
func (b *VRBuilder) BuildTcpRouteMatch(port *int64) *TCPRouteMatch
func (*VRBuilder) BuildVirtualRouter ¶
func (*VRBuilder) BuildVirtualRouterListener ¶
func (b *VRBuilder) BuildVirtualRouterListener(protocol appmesh.PortProtocol, port appmesh.PortNumber) appmesh.VirtualRouterListener
func (*VRBuilder) TcpBuildRoutes ¶ added in v1.12.4
func (b *VRBuilder) TcpBuildRoutes(tcpRoutesCFgs []TcpRouteToWeightedVirtualNodes) []appmesh.Route
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 }
Click to show internal directories.
Click to hide internal directories.