aws

package
v0.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2017 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSClient added in v0.2.4

type AWSClient interface {
	List(instanceNameRegex, vpcName string) ([]*ec2.Instance, error)
	Stop(instanceID string) error
	Delete(instanceID string) error
	Create(ami, vmType, name, keyPairName, subnetID, securityGroupID string) (*ec2.Instance, error)
	AssociateElasticIP(instanceID, elasticIP string) error
}

func NewAWSClient added in v0.2.4

func NewAWSClient(ec2 *ec2.EC2) AWSClient

type Client

type Client interface {
	CreateVM(ami, instanceType, name, keyName, subnetID, securityGroupID string) (*ec2.Instance, error)
	DeleteVM(instanceID string) error
	GetVMInfo(name string) (*ec2.Instance, error)
	StopVM(instance ec2.Instance) error
	AssignPublicIP(instance ec2.Instance, ip string) error
	WaitForStartedVM(instanceName string) error
}

func NewClient

func NewClient(
	awsClient AWSClient,
	vpcName string,
	options ...OptionFunc,
) Client

type OptionFunc

type OptionFunc func(*client)

func Clock

func Clock(clock clock.Clock) OptionFunc

func Timeout

func Timeout(timeout time.Duration) OptionFunc

type UpgradeOpsMan

type UpgradeOpsMan struct {
	// contains filtered or unexported fields
}

func NewUpgradeOpsMan

func NewUpgradeOpsMan(client Client) *UpgradeOpsMan

func (*UpgradeOpsMan) Upgrade

func (s *UpgradeOpsMan) Upgrade(name, ami, instanceType, ip string) error

Directories

Path Synopsis
This file was generated by counterfeiter This file was generated by counterfeiter
This file was generated by counterfeiter This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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