Documentation ¶
Index ¶
- type AWSCloud
- func (aws *AWSCloud) Clusters() (cloudprovider.Clusters, bool)
- func (aws *AWSCloud) ExternalID(name string) (string, error)
- func (v *AWSCloud) GetNodeResources(name string) (*api.NodeResources, error)
- func (self *AWSCloud) GetZone() (cloudprovider.Zone, error)
- func (aws *AWSCloud) Instances() (cloudprovider.Instances, bool)
- func (aws *AWSCloud) List(filter string) ([]string, error)
- func (aws *AWSCloud) NodeAddresses(name string) ([]api.NodeAddress, error)
- func (aws *AWSCloud) TCPLoadBalancer() (cloudprovider.TCPLoadBalancer, bool)
- func (aws *AWSCloud) Zones() (cloudprovider.Zones, bool)
- type AWSCloudConfig
- type AuthFunc
- type EC2
- type GoamzEC2
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSCloud ¶
type AWSCloud struct {
// contains filtered or unexported fields
}
AWSCloud is an implementation of Interface, TCPLoadBalancer and Instances for Amazon Web Services.
func (*AWSCloud) Clusters ¶ added in v0.5.1
func (aws *AWSCloud) Clusters() (cloudprovider.Clusters, bool)
func (*AWSCloud) ExternalID ¶ added in v0.12.0
ExternalID returns the cloud provider ID of the specified instance.
func (*AWSCloud) GetNodeResources ¶
func (v *AWSCloud) GetNodeResources(name string) (*api.NodeResources, error)
func (*AWSCloud) GetZone ¶ added in v0.13.0
func (self *AWSCloud) GetZone() (cloudprovider.Zone, error)
GetZone implements Zones.GetZone
func (*AWSCloud) Instances ¶
func (aws *AWSCloud) Instances() (cloudprovider.Instances, bool)
Instances returns an implementation of Instances for Amazon Web Services.
func (*AWSCloud) NodeAddresses ¶ added in v0.13.1
func (aws *AWSCloud) NodeAddresses(name string) ([]api.NodeAddress, error)
NodeAddresses is an implementation of Instances.NodeAddresses.
func (*AWSCloud) TCPLoadBalancer ¶
func (aws *AWSCloud) TCPLoadBalancer() (cloudprovider.TCPLoadBalancer, bool)
TCPLoadBalancer returns an implementation of TCPLoadBalancer for Amazon Web Services.
type AWSCloudConfig ¶
type AWSCloudConfig struct { Global struct { // TODO: Is there any use for this? We can get it from the instance metadata service Region string } }
type EC2 ¶
type EC2 interface { // Query EC2 for instances matching the filter Instances(instIds []string, filter *ec2InstanceFilter) (resp *ec2.InstancesResp, err error) // Query the EC2 metadata service (used to discover instance-id etc) GetMetaData(key string) ([]byte, error) }
Abstraction over EC2, to allow mocking/other implementations
type GoamzEC2 ¶ added in v0.13.0
type GoamzEC2 struct {
// contains filtered or unexported fields
}
goamzEC2 is an implementation of the EC2 interface, backed by goamz
func (*GoamzEC2) GetMetaData ¶ added in v0.13.0
Click to show internal directories.
Click to hide internal directories.