elbv2

package
v1.33.3 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package elbv2 provides a client to make API requests to Amazon Elastic Load Balancing.

Index

Constants

View Source
const (
	// TargetHealthStateHealthy wraps the ELBV2 health status HEALTHY.
	TargetHealthStateHealthy = elbv2.TargetHealthStateEnumHealthy
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ELBV2

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

ELBV2 wraps an AWS ELBV2 client.

func New

func New(sess *session.Session) *ELBV2

New returns a ELBV2 configured against the input session.

func (*ELBV2) DescribeRule added in v1.22.0

func (e *ELBV2) DescribeRule(ctx context.Context, ruleARN string) (Rule, error)

DescribeRule returns the Rule with ruleARN.

func (*ELBV2) ListenerRulesHostHeaders added in v1.29.0

func (e *ELBV2) ListenerRulesHostHeaders(ruleARNs []string) ([]string, error)

ListenerRulesHostHeaders returns all the host headers for all listener rules.

func (*ELBV2) LoadBalancer added in v1.32.0

func (e *ELBV2) LoadBalancer(nameOrARN string) (*LoadBalancer, error)

LoadBalancer returns select information about a load balancer.

func (*ELBV2) TargetsHealth

func (e *ELBV2) TargetsHealth(targetGroupARN string) ([]*TargetHealth, error)

TargetsHealth returns the health status of the targets in a target group.

type HealthStatus

type HealthStatus struct {
	TargetID          string `json:"targetID"`
	HealthDescription string `json:"description"`
	HealthState       string `json:"state"`
	HealthReason      string `json:"reason"`
}

HealthStatus contains the health status info of a target.

type Listener added in v1.32.0

type Listener struct {
	ARN      string
	Port     int64
	Protocol string
}

Listener contains information about a listener.

type LoadBalancer added in v1.32.0

type LoadBalancer struct {
	ARN            string
	Name           string
	DNSName        string
	HostedZoneID   string
	Listeners      []Listener
	Scheme         string // "internet-facing" or "internal"
	SecurityGroups []string
}

LoadBalancer contains information about a given load balancer.

type Rule added in v1.22.0

type Rule elbv2.Rule

Rule wraps an elbv2.Rule to add some nice functionality to it.

func (*Rule) HasRedirectAction added in v1.22.0

func (r *Rule) HasRedirectAction() bool

HasRedirectAction returns true if the rule has a redirect action.

type TargetHealth

type TargetHealth elbv2.TargetHealthDescription

TargetHealth wraps up elbv2.TargetHealthDescription.

func (*TargetHealth) HealthStatus

func (t *TargetHealth) HealthStatus() *HealthStatus

HealthStatus returns the health status of the target.

func (*TargetHealth) TargetID

func (t *TargetHealth) TargetID() string

TargetID returns the target's ID, which is either an instance or an IP address.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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