elb

package
v0.37.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildELBListeners

func BuildELBListeners(l []v1alpha1.Listener) []elbtypes.Listener

BuildELBListeners builds a list of elbtypes.Listener from given list of v1alpha1.Listener.

func BuildELBTags

func BuildELBTags(tags []v1alpha1.Tag) []elbtypes.Tag

BuildELBTags generates a list of elbtypes.Tag from given list of v1alpha1.Tag

func CreatePatch

CreatePatch creates a v1alpha1.ELBParameters that has only the changed values between the target v1alpha1.ELBParameters and the current elbtypes.LoadBalancerDescription.

func GenerateCreateELBInput

func GenerateCreateELBInput(name string, p v1alpha1.ELBParameters) *elb.CreateLoadBalancerInput

GenerateCreateELBInput generate instance of elasticLoadBlancing.CreateLoadBalancerInput

func GenerateELBObservation

func GenerateELBObservation(e elbtypes.LoadBalancerDescription) v1alpha1.ELBObservation

GenerateELBObservation is used to produce v1alpha1.ELBObservation from elasticLoadBalancing.LoadBalancerDescription.

func IsELBNotFound

func IsELBNotFound(err error) bool

IsELBNotFound returns true if the error is because the item doesn't exist.

func IsUpToDate

IsUpToDate checks whether there is a change in any of the modifiable fields.

func LateInitializeELB

func LateInitializeELB(in *v1alpha1.ELBParameters, v *elbtypes.LoadBalancerDescription, elbTags []elbtypes.Tag)

LateInitializeELB fills the empty fields in *v1alpha1.ELBParameters with the values seen in elasticLoadBalancing.ELB.

Types

type Client

type Client interface {
	DescribeLoadBalancers(ctx context.Context, input *elb.DescribeLoadBalancersInput, opts ...func(*elb.Options)) (*elb.DescribeLoadBalancersOutput, error)
	CreateLoadBalancer(ctx context.Context, input *elb.CreateLoadBalancerInput, opts ...func(*elb.Options)) (*elb.CreateLoadBalancerOutput, error)
	DeleteLoadBalancer(ctx context.Context, input *elb.DeleteLoadBalancerInput, opts ...func(*elb.Options)) (*elb.DeleteLoadBalancerOutput, error)
	EnableAvailabilityZonesForLoadBalancer(ctx context.Context, input *elb.EnableAvailabilityZonesForLoadBalancerInput, opts ...func(*elb.Options)) (*elb.EnableAvailabilityZonesForLoadBalancerOutput, error)
	DisableAvailabilityZonesForLoadBalancer(ctx context.Context, input *elb.DisableAvailabilityZonesForLoadBalancerInput, opts ...func(*elb.Options)) (*elb.DisableAvailabilityZonesForLoadBalancerOutput, error)
	DetachLoadBalancerFromSubnets(ctx context.Context, input *elb.DetachLoadBalancerFromSubnetsInput, opts ...func(*elb.Options)) (*elb.DetachLoadBalancerFromSubnetsOutput, error)
	AttachLoadBalancerToSubnets(ctx context.Context, input *elb.AttachLoadBalancerToSubnetsInput, opts ...func(*elb.Options)) (*elb.AttachLoadBalancerToSubnetsOutput, error)
	ApplySecurityGroupsToLoadBalancer(ctx context.Context, input *elb.ApplySecurityGroupsToLoadBalancerInput, opts ...func(*elb.Options)) (*elb.ApplySecurityGroupsToLoadBalancerOutput, error)
	CreateLoadBalancerListeners(ctx context.Context, input *elb.CreateLoadBalancerListenersInput, opts ...func(*elb.Options)) (*elb.CreateLoadBalancerListenersOutput, error)
	DeleteLoadBalancerListeners(ctx context.Context, input *elb.DeleteLoadBalancerListenersInput, opts ...func(*elb.Options)) (*elb.DeleteLoadBalancerListenersOutput, error)
	RegisterInstancesWithLoadBalancer(ctx context.Context, input *elb.RegisterInstancesWithLoadBalancerInput, opts ...func(*elb.Options)) (*elb.RegisterInstancesWithLoadBalancerOutput, error)
	DeregisterInstancesFromLoadBalancer(ctx context.Context, input *elb.DeregisterInstancesFromLoadBalancerInput, opts ...func(*elb.Options)) (*elb.DeregisterInstancesFromLoadBalancerOutput, error)
	DescribeTags(ctx context.Context, input *elb.DescribeTagsInput, opts ...func(*elb.Options)) (*elb.DescribeTagsOutput, error)
	AddTags(ctx context.Context, input *elb.AddTagsInput, opts ...func(*elb.Options)) (*elb.AddTagsOutput, error)
	RemoveTags(ctx context.Context, input *elb.RemoveTagsInput, opts ...func(*elb.Options)) (*elb.RemoveTagsOutput, error)
	ConfigureHealthCheck(ctx context.Context, params *elb.ConfigureHealthCheckInput, opts ...func(*elb.Options)) (*elb.ConfigureHealthCheckOutput, error)
}

A Client handles CRUD operations for Elastic Load Balancing resources.

func NewClient

func NewClient(cfg aws.Config) Client

NewClient returns a new Elastic Load Balancer client. Credentials must be passed as JSON encoded data.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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