Documentation
¶
Index ¶
- type AwsCloudEngine
- func (aws *AwsCloudEngine) GetInstanceType(HostId) InstanceType
- func (a *AwsCloudEngine) GetIp(hostId HostId) string
- func (aws *AwsCloudEngine) GetPem() string
- func (aws *AwsCloudEngine) Init(awsAccessKeyId string, awsAccessKeySecret string, awsRegion string, ...)
- func (engine *AwsCloudEngine) SpawnInstanceSync(instanceType InstanceType) HostId
- func (aws *AwsCloudEngine) TerminateInstance(HostId) bool
- type CloudEngine
- type CloudProvider
- func (cloud *CloudProvider) ActionChange(change *model.ChangeServer)
- func (cloud *CloudProvider) AddChange(change *model.ChangeServer)
- func (cloud *CloudProvider) GetAllChanges() []*model.ChangeServer
- func (cloud *CloudProvider) HasChanges() bool
- func (cloud *CloudProvider) Init(engine CloudEngine, sshUser string, apiEndpoint string)
- func (cloud *CloudProvider) RemoveChange(changeId string)
- type HostId
- type InstanceType
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) 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 InstanceType ¶
type InstanceType string
Click to show internal directories.
Click to hide internal directories.