aws

package
v0.0.0-...-506879c Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultLoadBalancerManager

func NewDefaultLoadBalancerManager(elbv2Client services.ELBV2, logger logr.Logger) *defaultLoadBalancerManager

NewDefaultLoadBalancerManager constructs new defaultLoadBalancerManager.

func NewDefaultTargetGroupManager

func NewDefaultTargetGroupManager(elbv2Client services.ELBV2, logger logr.Logger) *defaultTargetGroupManager

NewDefaultTargetGroupManager constructs new defaultTargetGroupManager.

Types

type LoadBalancerManager

type LoadBalancerManager interface {
	FindLoadBalancerByDNSName(ctx context.Context, dnsName string) (string, error)
	WaitUntilLoadBalancerAvailable(ctx context.Context, lbARN string) error
	GetLoadBalancerFromARN(ctx context.Context, lbARN string) (*elbv2sdk.LoadBalancer, error)
	GetLoadBalancerListeners(ctx context.Context, lbARN string) ([]*elbv2sdk.Listener, error)
	GetLoadBalancerListenerCertificates(ctx context.Context, listenerARN string) ([]*elbv2sdk.Certificate, error)
	GetLoadBalancerAttributes(ctx context.Context, lbARN string) ([]*elbv2sdk.LoadBalancerAttribute, error)
	GetLoadBalancerResourceTags(ctx context.Context, resARN string) ([]*elbv2sdk.Tag, error)
	GetLoadBalancerListenerRules(ctx context.Context, lsARN string) ([]*elbv2sdk.Rule, error)
}

LoadBalancerManager is responsible for LoadBalancer resources.

type TargetGroupManager

type TargetGroupManager interface {
	GetTargetGroupsForLoadBalancer(ctx context.Context, lbARN string) ([]*elbv2sdk.TargetGroup, error)
	CheckTargetGroupHealthy(ctx context.Context, tgARN string, expectedTargetCount int) (bool, error)
	GetCurrentTargetCount(ctx context.Context, tgARN string) (int, error)
	GetTargetGroupAttributes(ctx context.Context, tgARN string) ([]*elbv2sdk.TargetGroupAttribute, error)
}

TargetGroupManager is responsible for TargetGroup resources.

Jump to

Keyboard shortcuts

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