Documentation ¶
Index ¶
- Constants
- func CreateELBClient(awsCredentials *credentials.Credentials, opt ELBOptions) elbiface.ELBAPI
- func Credentials(cred *Credential) *credentials.Credentials
- func GetMetadata(key MetadataKey) (string, error)
- func GetRegion() (string, error)
- func NewELBPlugin(client elbiface.ELBAPI, name string) (loadbalancer.L4, error)
- type Credential
- type ELBOptions
- type MetadataKey
Constants ¶
View Source
const ( // MetadataAmiID - AMI ID MetadataAmiID = MetadataKey("http://169.254.169.254/latest/meta-data/ami-id") // MetadataInstanceID - Instance ID MetadataInstanceID = MetadataKey("http://169.254.169.254/latest/meta-data/instance-id") // MetadataInstanceType - Instance type MetadataInstanceType = MetadataKey("http://169.254.169.254/latest/meta-data/instance-type") // MetadataHostname - Host name MetadataHostname = MetadataKey("http://169.254.169.254/latest/meta-data/hostname") // MetadataLocalIPv4 - Local IPv4 address MetadataLocalIPv4 = MetadataKey("http://169.254.169.254/latest/meta-data/local-ipv4") // MetadataPublicIPv4 - Public IPv4 address MetadataPublicIPv4 = MetadataKey("http://169.254.169.254/latest/meta-data/public-ipv4") // MetadataAvailabilityZone - Availability zone MetadataAvailabilityZone = MetadataKey("http://169.254.169.254/latest/meta-data/placement/availability-zone") )
Variables ¶
This section is empty.
Functions ¶
func CreateELBClient ¶
func CreateELBClient(awsCredentials *credentials.Credentials, opt ELBOptions) elbiface.ELBAPI
CreateELBClient creates an AWS ELB API client.
func Credentials ¶
func Credentials(cred *Credential) *credentials.Credentials
Credentials allocates a credential object that has the access key and secret id.
func GetMetadata ¶
func GetMetadata(key MetadataKey) (string, error)
GetMetadata returns the value of the metadata by key
func NewELBPlugin ¶
NewELBPlugin creates an AWS-based ELB provisioner.
Types ¶
type Credential ¶
type Credential struct { AccessKeyID string `yaml:"access_key_id" json:"access_key_id"` SecretAccessKey string `yaml:"secret_access_key" json:"secret_access_key"` SessionToken string `yaml:"session_token" json:"session_token"` }
Credential defines static authentication details (as opposed to environment-based) for the AWS API.
func (*Credential) IsExpired ¶
func (a *Credential) IsExpired() bool
IsExpired implements the AWS credentials.Provider interface method. For static credentials this always returns false
func (*Credential) Retrieve ¶
func (a *Credential) Retrieve() (credentials.Value, error)
Retrieve implements the AWS credentials.Provider interface method
type ELBOptions ¶
ELBOptions are the configuration parameters for the ELB provisioner.
Click to show internal directories.
Click to hide internal directories.