Documentation ¶
Index ¶
- func BuildELBListeners(l []v1alpha1.Listener) []elbtypes.Listener
- func BuildELBTags(tags []v1alpha1.Tag) []elbtypes.Tag
- func CreatePatch(in elbtypes.LoadBalancerDescription, target v1alpha1.ELBParameters, ...) (*v1alpha1.ELBParameters, error)
- func GenerateCreateELBInput(name string, p v1alpha1.ELBParameters) *elb.CreateLoadBalancerInput
- func GenerateELBObservation(e elbtypes.LoadBalancerDescription) v1alpha1.ELBObservation
- func IsELBNotFound(err error) bool
- func IsUpToDate(p v1alpha1.ELBParameters, elb elbtypes.LoadBalancerDescription, ...) (bool, error)
- func LateInitializeELB(in *v1alpha1.ELBParameters, v *elbtypes.LoadBalancerDescription, ...)
- type Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildELBListeners ¶
BuildELBListeners builds a list of elbtypes.Listener from given list of v1alpha1.Listener.
func BuildELBTags ¶
BuildELBTags generates a list of elbtypes.Tag from given list of v1alpha1.Tag
func CreatePatch ¶
func CreatePatch(in elbtypes.LoadBalancerDescription, target v1alpha1.ELBParameters, elbTags []elbtypes.Tag) (*v1alpha1.ELBParameters, error)
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 ¶
IsELBNotFound returns true if the error is because the item doesn't exist.
func IsUpToDate ¶
func IsUpToDate(p v1alpha1.ELBParameters, elb elbtypes.LoadBalancerDescription, elbTags []elbtypes.Tag) (bool, error)
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.