aws

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2018 License: Apache-2.0 Imports: 8 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 {
	CreateVM(ami, name string, vmInfo VMInfo) (string, error)
	DeleteVM(instanceID string) error
	GetVMInfo(name string) (VMInfo, error)
	GetDisk(name string) (EBS, error)
	StartVM(instanceID string) error
	StopVM(instanceID string) error
	AssignPublicIP(instance, ip string) error
	WaitForStatus(instanceID string, status string) error
}

func NewAWSClient added in v0.2.4

func NewAWSClient(ec2Client EC2Client, vpcID string, clock clock.Clock) AWSClient

type BlockDeviceMapping added in v0.2.4

type BlockDeviceMapping struct {
	DeviceName string
	EBS        EBS
}

type EBS added in v0.2.4

type EBS struct {
	DeleteOnTermination bool
	VolumeSize          int64
	VolumeType          string
}

type EC2Client added in v0.2.4

func NewEC2Client added in v0.2.4

func NewEC2Client(accessKeyID string, secretAccessKey string, region string) (EC2Client, error)

type VMInfo added in v0.2.4

type VMInfo struct {
	InstanceID            string
	InstanceType          string
	BlockDeviceMappings   []BlockDeviceMapping
	IAMInstanceProfileARN string
	KeyName               string
	SubnetID              string
	SecurityGroupIDs      []string
	PublicIP              string
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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