aws

package
v0.0.0-...-8cfe922 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2016 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package aws implements a Provider implementation on AWS.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() provider.Provider

Init initialises the AWS Provider.

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) Destroy

func (s AwsSwarm) Destroy() error

Destroy destroys the swarm.

func (AwsSwarm) GetCreationTime

func (s AwsSwarm) GetCreationTime() time.Time

GetCreationTime returns the time of creation of the swarm.

func (AwsSwarm) GetInstances

func (s AwsSwarm) GetInstances() ([]swarmtypes.Instance, error)

GetInstances returns all the instances of the swarm.

func (AwsSwarm) GetName

func (s AwsSwarm) GetName() string

GetName returns the name of the swarm.

func (AwsSwarm) GetPrivateDNS

func (s AwsSwarm) GetPrivateDNS() (string, error)

GetPrivateDNS returns the private DNS address of the swarm.

func (AwsSwarm) GetPublicDNS

func (s AwsSwarm) GetPublicDNS() (string, error)

GetPublicDNS returns the public DNS address of the swarm.

func (AwsSwarm) GetStatus

func (s AwsSwarm) GetStatus() (string, string, error)

GetStatus returns the status, and a status reason, of the swarm.

func (AwsSwarm) GetType

func (s AwsSwarm) GetType() string

GetType returns the type of the swarm.

func (AwsSwarm) KillInstance

func (s AwsSwarm) KillInstance(i swarmtypes.Instance) error

KillInstance kills the given instance in the swarm.

func (AwsSwarm) WaitUntil

func (s AwsSwarm) WaitUntil(status string) error

WaitUntil waits until the swarm is in the given state.

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.

Jump to

Keyboard shortcuts

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