Documentation ¶
Overview ¶
Package elbv2 provides a client to make API requests to Amazon Elastic Load Balancing.
Index ¶
- Constants
- type ELBV2
- func (e *ELBV2) DescribeRule(ctx context.Context, ruleARN string) (Rule, error)
- func (e *ELBV2) ListenerRulesHostHeaders(ruleARNs []string) ([]string, error)
- func (e *ELBV2) LoadBalancer(nameOrARN string) (*LoadBalancer, error)
- func (e *ELBV2) TargetsHealth(targetGroupARN string) ([]*TargetHealth, error)
- type HealthStatus
- type Listener
- type LoadBalancer
- type Rule
- type TargetHealth
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) ListenerRulesHostHeaders ¶ added in v1.29.0
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 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
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.