elbv2

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: Apache-2.0 Imports: 3 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) 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 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