Help us shape the future of Go! Take the 2026 Go Developer Survey

elb

package
v0.227.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: Apache-2.0 Imports: 29 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cleanup

func Cleanup(ctx context.Context, ec2API awsapi.EC2, elbAPI DescribeLoadBalancersAPI, elbv2API DescribeLoadBalancersAPIV2,
	kubernetesCS kubernetes.Interface, restConfig *rest.Config, clusterConfig *api.ClusterConfig) error

Cleanup finds and deletes any dangling ELBs associated to a Kubernetes Service, Ingress, or Gateway

Types

type DescribeLoadBalancersAPI added in v0.91.0

type DescribeLoadBalancersAPI interface {
	// DescribeLoadBalancers describes the specified load balancers or all load balancers.
	DescribeLoadBalancers(ctx context.Context, params *elasticloadbalancing.DescribeLoadBalancersInput, optFns ...func(*elasticloadbalancing.Options)) (*elasticloadbalancing.DescribeLoadBalancersOutput, error)
}

DescribeLoadBalancersAPI provides an interface to the AWS ELB service.

type DescribeLoadBalancersAPIV2 added in v0.91.0

type DescribeLoadBalancersAPIV2 interface {
	// DescribeLoadBalancers describes the specified load balancers or all load balancers for ELBv2.
	DescribeLoadBalancers(ctx context.Context, params *elasticloadbalancingv2.DescribeLoadBalancersInput, optFns ...func(*elasticloadbalancingv2.Options)) (*elasticloadbalancingv2.DescribeLoadBalancersOutput, error)
}

DescribeLoadBalancersAPIV2 provides an interface to the AWS ELBv2 service.

type Gateway added in v0.224.0

type Gateway interface {
	Delete(ctx context.Context, gwClient gatewayclient.Interface) error
	GetGatewayClassName() string
	GetMetadata() metav1.ObjectMeta
	GetLoadBalancerAddresses() []string
}

Gateway interface abstracts over different Gateway API versions

type Ingress added in v0.39.0

type Ingress interface {
	Delete(kubernetesCS kubernetes.Interface) error
	GetIngressClass() string
	GetMetadata() metav1.ObjectMeta
	GetLoadBalancersHosts() []string
}

Jump to

Keyboard shortcuts

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