elb

package
Version: v0.0.0-...-b425644 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	API_VERSION = "2012-06-01"
)

Variables

This section is empty.

Functions

func OptLoadBalancerName

func OptLoadBalancerName(s string) func(o *DescribeLoadBalancersOptions)

Types

type Client

type Client struct {
	*aws.Client
}

func NewFromEnv

func NewFromEnv() *Client

func (*Client) DeregisterInstancesWithLoadBalancer

func (client *Client) DeregisterInstancesWithLoadBalancer(loadBalancerName string, instances []string) error

func (*Client) DescribeInstanceHealth

func (client *Client) DescribeInstanceHealth(name string) (states []*InstanceState, e error)

func (*Client) DescribeLoadBalancers

func (client *Client) DescribeLoadBalancers(a ...func(*DescribeLoadBalancersOptions)) (lbs []*LoadBalancer, e error)

func (*Client) Endpoint

func (client *Client) Endpoint() string

func (*Client) RegisterInstancesWithLoadBalancer

func (client *Client) RegisterInstancesWithLoadBalancer(loadBalancerName string, instances []string) error

type DescribeInstanceHealthResponse

type DescribeInstanceHealthResponse struct {
	XMLName        xml.Name         `xml:"DescribeInstanceHealthResponse"`
	InstanceStates []*InstanceState `xml:"DescribeInstanceHealthResult>InstanceStates>member"`
}

type DescribeLoadBalancersOptions

type DescribeLoadBalancersOptions struct {
	LoadBalancerNames []string
	Marker            string
	PageSize          int
}

type DescribeLoadBalancersResponse

type DescribeLoadBalancersResponse struct {
	XMLName       xml.Name        `xml:"DescribeLoadBalancersResponse"`
	LoadBalancers []*LoadBalancer `xml:"DescribeLoadBalancersResult>LoadBalancerDescriptions>member"`
}

type InstanceState

type InstanceState struct {
	Description string `xml:"Description"`
	InstanceId  string `xml:"InstanceId"`
	State       string `xml:"State"`
	ReasonCode  string `xml:"ReasonCode"`
}

type Listener

type Listener struct {
	Protocol         string `xml:"Protocol"`
	LoadBalancerPort int    `xml:"LoadBalancerPort"`
	InstanceProtocol string `xml:"InstanceProtocol"`
	InstancePort     int    `xml:"InstancePort"`
}

type LoadBalancer

type LoadBalancer struct {
	LoadBalancerName          string    `"xml:"LoadBalancerName"`
	CreatedTime               time.Time `xml:"CreatedTime"`
	VPCId                     string    `xml:"VPCId"`
	CanonicalHostedZoneName   string    `xml:"CanonicalHostedZoneName"`
	CanonicalHostedZoneNameID string    `xml:"CanonicalHostedZoneNameID"`
	Scheme                    string    `xml:"Scheme"`
	DNSName                   string    `xml:"DNSName"`
	BackendServerDescriptions string    `xml:"BackendServerDescriptions"`

	HealthCheckInterval           int    `xml:"HealthCheck>Interval"`
	HealthCheckTarget             string `xml:"HealthCheck>Target"`
	HealthCheckHealthyThreshold   int    `xml:"HealthCheck>HealthyThreshold"`
	HealthCheckTimeout            int    `xml:"HealthCheck>Timeout"`
	HealthCheckUnhealthyThreshold int    `xml:"HealthCheck>UnhealthyThreshold"`

	SourceSecurityGroupOwnerAlias string `xml:"SourceSecurityGroup>OwnerAlias"`
	SourceSecurityGroupGroupName  string `xml:"SourceSecurityGroup>GroupName"`

	Listeners         []*Listener `xml:"ListenerDescriptions>member>Listener"`
	AvailabilityZones []string    `xml:"AvailabilityZones>member"`
	Instances         []string    `xml:"Instances>member>InstanceId"`
	Subnets           []string    `xml:"Subnets>member"`
}

type RegisterInstancesWithLoadBalancerResponse

type RegisterInstancesWithLoadBalancerResponse struct {
	RequestId string `xml:"ResponseMetadata>RequestId"`
}

Source Files

Jump to

Keyboard shortcuts

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