aws

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrEndpointGroupNotFoundException = "EndpointGroupNotFoundException"
)

Variables

This section is empty.

Functions

func GetLBNameFromHostname

func GetLBNameFromHostname(hostname string) (string, string, error)

func GetRegionFromARN added in v0.12.0

func GetRegionFromARN(arn string) string

func Route53OwnerValue added in v0.5.0

func Route53OwnerValue(clusterName, resource, ns, name string) string

Types

type AWS

type AWS struct {
	// contains filtered or unexported fields
}

func NewAWS

func NewAWS(region string) (*AWS, error)

func (*AWS) AddLBToEndpointGroup added in v0.12.0

func (a *AWS) AddLBToEndpointGroup(ctx context.Context, endpointGroup *gatypes.EndpointGroup, lbName string, ipPreserve bool, weight *int32) (*string, time.Duration, error)

func (*AWS) CleanupGlobalAccelerator

func (a *AWS) CleanupGlobalAccelerator(ctx context.Context, arn string) error

func (*AWS) CleanupRecordSet added in v0.4.0

func (a *AWS) CleanupRecordSet(ctx context.Context, clusterName, resource, ns, name string) error

func (*AWS) DescribeEndpointGroup added in v0.12.0

func (a *AWS) DescribeEndpointGroup(ctx context.Context, endpointGroupArn string) (*gatypes.EndpointGroup, error)

--------------------------------- EndpointGroup methods ---------------------------------

func (*AWS) EnsureGlobalAcceleratorForIngress added in v0.2.0

func (a *AWS) EnsureGlobalAcceleratorForIngress(
	ctx context.Context,
	ingress *networkingv1.Ingress,
	lbIngress *networkingv1.IngressLoadBalancerIngress,
	clusterName, lbName, region string,
) (*string, bool, time.Duration, error)

func (*AWS) EnsureGlobalAcceleratorForService added in v0.2.0

func (a *AWS) EnsureGlobalAcceleratorForService(
	ctx context.Context,
	svc *corev1.Service,
	lbIngress *corev1.LoadBalancerIngress,
	clusterName, lbName, region string,
) (*string, bool, time.Duration, error)

func (*AWS) EnsureRoute53ForIngress added in v0.4.0

func (a *AWS) EnsureRoute53ForIngress(
	ctx context.Context,
	ingress *networkingv1.Ingress,
	ingressLBIngress *networkingv1.IngressLoadBalancerIngress,
	hostnames []string,
	clusterName string,
) (bool, time.Duration, error)

func (*AWS) EnsureRoute53ForService added in v0.4.0

func (a *AWS) EnsureRoute53ForService(
	ctx context.Context,
	svc *corev1.Service,
	lbIngress *corev1.LoadBalancerIngress,
	hostnames []string,
	clusterName string,
) (bool, time.Duration, error)

func (*AWS) FindOwneredARecordSets added in v0.5.0

func (a *AWS) FindOwneredARecordSets(ctx context.Context, hostedZone *route53types.HostedZone, ownerValue string) ([]route53types.ResourceRecordSet, error)

func (*AWS) GetEndpointGroup added in v0.5.0

func (a *AWS) GetEndpointGroup(ctx context.Context, listenerArn string) (*gatypes.EndpointGroup, error)

func (*AWS) GetHostedZone added in v0.5.0

func (a *AWS) GetHostedZone(ctx context.Context, originalHostname string) (*route53types.HostedZone, error)

func (*AWS) GetListener added in v0.5.0

func (a *AWS) GetListener(ctx context.Context, acceleratorArn string) (*gatypes.Listener, error)

--------------------------------- Lstener methods ---------------------------------

func (*AWS) GetLoadBalancer added in v0.5.0

func (a *AWS) GetLoadBalancer(ctx context.Context, name string) (*elbv2types.LoadBalancer, error)

func (*AWS) ListGlobalAcceleratorByHostname added in v0.3.0

func (a *AWS) ListGlobalAcceleratorByHostname(ctx context.Context, hostname, clusterName string) ([]*gatypes.Accelerator, error)

func (*AWS) ListGlobalAcceleratorByResource added in v0.5.0

func (a *AWS) ListGlobalAcceleratorByResource(ctx context.Context, clusterName, resource, ns, name string) ([]*gatypes.Accelerator, error)

func (*AWS) RemoveLBFromEdnpointGroup added in v0.12.0

func (a *AWS) RemoveLBFromEdnpointGroup(ctx context.Context, endpointGroup *gatypes.EndpointGroup, endpointId string) error

func (*AWS) UpdateEndpointWeight added in v0.12.5

func (a *AWS) UpdateEndpointWeight(ctx context.Context, endpointGroup *gatypes.EndpointGroup, endpointId string, weight *int32) error

type IngressPort added in v0.8.1

type IngressPort struct {
	HTTP  int64 `json:"HTTP,omitempty"`
	HTTPS int64 `json:"HTTPS,omitempty"`
}

Jump to

Keyboard shortcuts

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