Documentation
¶
Index ¶
- Variables
- func LookupServicePort(svc *corev1.Service, port intstr.IntOrString) (corev1.ServicePort, error)
- func NewDefaultEndpointResolver(store store.Storer, k8sClient client.Client, cloud prvd.Provider, ...) *defaultEndpointResolver
- type EndpointResolver
- type Manager
- type NodePortEndpoint
- type PodEndpoint
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("backend not found")
Functions ¶
func LookupServicePort ¶
func LookupServicePort(svc *corev1.Service, port intstr.IntOrString) (corev1.ServicePort, error)
Types ¶
type EndpointResolver ¶
type EndpointResolver interface { ResolveENIEndpoints(ctx context.Context, svcKey types.NamespacedName, port intstr.IntOrString) ([]NodePortEndpoint, bool, error) ResolveLocalEndpoints(ctx context.Context, svcKey types.NamespacedName, port intstr.IntOrString) ([]NodePortEndpoint, bool, error) ResolveClusterEndpoints(ctx context.Context, svcKey types.NamespacedName, port intstr.IntOrString) ([]NodePortEndpoint, bool, error) }
type Manager ¶
type Manager struct { EndpointResolver // contains filtered or unexported fields }
func NewBackendManager ¶
func (*Manager) BuildServicePortSDKBackends ¶
func (mgr *Manager) BuildServicePortSDKBackends(ctx context.Context, svcKey types.NamespacedName, port intstr.IntOrString) ([]alb.BackendItem, bool, error)
type NodePortEndpoint ¶
type NodePortEndpoint alb.BackendItem
func RemoteDuplicatedBackends ¶
func RemoteDuplicatedBackends(backends []NodePortEndpoint) []NodePortEndpoint
Click to show internal directories.
Click to hide internal directories.