Documentation
¶
Overview ¶
Package elbv2 provides a client to make API requests to Amazon Elastic Load Balancing.
Index ¶
Constants ¶
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 (*ELBV2) DescribeRule ¶ added in v1.22.0
DescribeRule returns the Rule with ruleARN.
func (*ELBV2) ListenerRuleHostHeaders ¶ added in v1.18.0
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
Rule wraps an elbv2.Rule to add some nice functionality to it.
func (*Rule) HasRedirectAction ¶ added in v1.22.0
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.