elb

package
v0.0.0-...-378618d Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2011 License: BSD-3-Clause, GooglePatentClause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_HASH     = crypto.SHA256
	MAX_MESSAGE_SIZE = 64 * 1024
)
View Source
const DEFAULT_VERSION = "2011-04-05"

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

type Listener struct {
	InstancePort     int
	LoadBalancerPort int
	Protocol         string
	SSLCertificateID string
}

func (Listener) SetValues

func (self Listener) SetValues(v http.Values, i int)

type LoadBalancerDescription

type LoadBalancerDescription struct {
	CanonicalHostedZoneName       string
	CanonicalHostedZoneNameID     string
	CreatedTime                   string
	LoadBalancerName              string
	SourceSecurityGroupOwnerAlias string "sourcesecuritygroup>owneralias"
	SourceSecurityGroupGroupName  string "sourcesecuritygroup>groupname"
	DNSName                       string
	Listeners                     []Listener "listenerdescriptions>member>listener"
	AvailabilityZones             []string   "AvailabilityZones>member"
}

type LoadBalancerQueryResult

type LoadBalancerQueryResult struct {
	LoadBalancerDescription []LoadBalancerDescription "DescribeLoadBalancersResult>LoadBalancerDescriptions>member"
	RequestId               string                    "requestmetadata>requestid"
	ErrorCode               string                    "error>errorcode"
}

type Service

type Service struct {
	URL *http.URL
	// contains filtered or unexported fields
}

func NewService

func NewService(url *http.URL) *Service

func (*Service) Close

func (self *Service) Close() (err os.Error)

Closes the underlying connection

func (*Service) CreateLoadBalancer

func (self *Service) CreateLoadBalancer(id *aws.Signer, name string, zones []string, listeners []Listener) (err os.Error)

func (*Service) DeleteLoadBalancer

func (self *Service) DeleteLoadBalancer(id *aws.Signer, name string) (err os.Error)

Users note: amazon will only return an error if the request is bad, thus an error will not be raised when deleting a non-existent LB.

func (*Service) DescribeLoadBalancers

func (self *Service) DescribeLoadBalancers(id *aws.Signer) (lbs []LoadBalancerDescription, err os.Error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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