Documentation ¶
Overview ¶
Package aws implements a Provider implementation on AWS.
Index ¶
- func Init() provider.Provider
- type AwsProvider
- type AwsSwarm
- func (s AwsSwarm) Destroy() error
- func (s AwsSwarm) GetCreationTime() time.Time
- func (s AwsSwarm) GetInstances() ([]swarmtypes.Instance, error)
- func (s AwsSwarm) GetName() string
- func (s AwsSwarm) GetPrivateDNS() (string, error)
- func (s AwsSwarm) GetPublicDNS() (string, error)
- func (s AwsSwarm) GetStatus() (string, string, error)
- func (s AwsSwarm) GetType() string
- func (s AwsSwarm) KillInstance(i swarmtypes.Instance) error
- func (s AwsSwarm) WaitUntil(status string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AwsProvider ¶
type AwsProvider struct {
// contains filtered or unexported fields
}
AwsProvider represents a Provider running on AWS.
func (AwsProvider) CreateSwarm ¶
func (aws AwsProvider) CreateSwarm(name string, flags swarmtypes.CreateFlags, cloudconfigText string) (provider.ProviderSwarm, error)
CreateSwarm creates and returns a Swarm, given a name, CreateFlags and cloud config text.
func (AwsProvider) GetSwarm ¶
func (aws AwsProvider) GetSwarm(name string) (provider.ProviderSwarm, error)
GetSwarm returns a matching Swarm given a name, or ErrNotFound if it cannot be found.
func (AwsProvider) GetSwarms ¶
func (aws AwsProvider) GetSwarms() ([]provider.ProviderSwarm, error)
GetSwarms returns a list of all the Swarms running on AWS.
type AwsSwarm ¶
type AwsSwarm struct { Name string Type string CreationTime time.Time Provider AwsProvider }
AwsSwarm represents a Swarm running on AWS.
func (AwsSwarm) GetCreationTime ¶
GetCreationTime returns the time of creation of the swarm.
func (AwsSwarm) GetInstances ¶
GetInstances returns all the instances of the swarm.
func (AwsSwarm) GetPrivateDNS ¶
GetPrivateDNS returns the private DNS address of the swarm.
func (AwsSwarm) GetPublicDNS ¶
GetPublicDNS returns the public DNS address of the swarm.
func (AwsSwarm) KillInstance ¶
KillInstance kills the given instance in the swarm.
Directories ¶
Path | Synopsis |
---|---|
Package sdk provides the API clients for the AWS SDK.
|
Package sdk provides the API clients for the AWS SDK. |
Package types provides some general types used by the api clients of the provider/aws package for internal usage.
|
Package types provides some general types used by the api clients of the provider/aws package for internal usage. |