elbv2

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: Apache-2.0 Imports: 8 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) ListenerRuleHostHeaders added in v1.18.0

func (e *ELBV2) ListenerRuleHostHeaders(ruleARN string) ([]string, error)

ListenerRuleHostHeaders returns all the host headers for a listener rule.

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 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