cloud

package
v0.0.0-...-d89cd05 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2017 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsCloudEngine

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

func (*AwsCloudEngine) GetInstanceType

func (aws *AwsCloudEngine) GetInstanceType(HostId) InstanceType

func (*AwsCloudEngine) GetIp

func (a *AwsCloudEngine) GetIp(hostId HostId) string

func (*AwsCloudEngine) GetPem

func (aws *AwsCloudEngine) GetPem() string

func (*AwsCloudEngine) Init

func (aws *AwsCloudEngine) Init(awsAccessKeyId string, awsAccessKeySecret string, awsRegion string, awsBaseAmi string, sshKey string, sshKeyPath string, securityGroupId string)

func (*AwsCloudEngine) SpawnInstanceSync

func (engine *AwsCloudEngine) SpawnInstanceSync(instanceType InstanceType) HostId

func (*AwsCloudEngine) TerminateInstance

func (aws *AwsCloudEngine) TerminateInstance(HostId) bool

type CloudEngine

type CloudEngine interface {
	SpawnInstanceSync(InstanceType) HostId
	GetInstanceType(HostId) InstanceType
	TerminateInstance(HostId) bool

	GetIp(hostId HostId) string

	GetPem() string
}

type CloudProvider

type CloudProvider struct {
	Engine  CloudEngine
	Changes []*model.ChangeServer
	// contains filtered or unexported fields
}

func (*CloudProvider) ActionChange

func (cloud *CloudProvider) ActionChange(change *model.ChangeServer)

func (*CloudProvider) AddChange

func (cloud *CloudProvider) AddChange(change *model.ChangeServer)

func (*CloudProvider) GetAllChanges

func (cloud *CloudProvider) GetAllChanges() []*model.ChangeServer

func (*CloudProvider) HasChanges

func (cloud *CloudProvider) HasChanges() bool

func (*CloudProvider) Init

func (cloud *CloudProvider) Init(engine CloudEngine, sshUser string, apiEndpoint string)

func (*CloudProvider) RemoveChange

func (cloud *CloudProvider) RemoveChange(changeId string)

type HostId

type HostId string

type InstanceType

type InstanceType string

Jump to

Keyboard shortcuts

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