Documentation ¶
Index ¶
- Constants
- func AwsStateFile() string
- type AwsProvider
- func (p *AwsProvider) AttachVolume(id, instanceId, mntPoint string) error
- func (p *AwsProvider) CreateEmptyVolume(name string, size int) (*types.Volume, error)
- func (p *AwsProvider) CreateVolume(params types.CreateVolumeParams) (*types.Volume, error)
- func (p *AwsProvider) DeleteImage(id string, force bool) error
- func (p *AwsProvider) DeleteInstance(id string, force bool) error
- func (p *AwsProvider) DeleteVolume(id string, force bool) error
- func (p *AwsProvider) DetachVolume(id string) error
- func (p *AwsProvider) GetConfig() providers.ProviderConfig
- func (p *AwsProvider) GetImage(nameOrIdPrefix string) (*types.Image, error)
- func (p *AwsProvider) GetInstance(nameOrIdPrefix string) (*types.Instance, error)
- func (p *AwsProvider) GetInstanceLogs(id string) (string, error)
- func (p *AwsProvider) GetVolume(nameOrIdPrefix string) (*types.Volume, error)
- func (p *AwsProvider) ListImages() ([]*types.Image, error)
- func (p *AwsProvider) ListInstances() ([]*types.Instance, error)
- func (p *AwsProvider) ListVolumes() ([]*types.Volume, error)
- func (p *AwsProvider) RunInstance(params types.RunInstanceParams) (_ *types.Instance, err error)
- func (p *AwsProvider) Stage(params types.StageImageParams) (_ *types.Image, err error)
- func (p *AwsProvider) StartInstance(id string) error
- func (p *AwsProvider) StopInstance(id string) error
- func (p *AwsProvider) WithState(state state.State) *AwsProvider
Constants ¶
View Source
const UNIK_IMAGE_ID = "UNIK_IMAGE_ID"
Variables ¶
This section is empty.
Functions ¶
func AwsStateFile ¶
func AwsStateFile() string
Types ¶
type AwsProvider ¶
type AwsProvider struct {
// contains filtered or unexported fields
}
func NewAwsProvier ¶
func NewAwsProvier(config config.Aws) *AwsProvider
func (*AwsProvider) AttachVolume ¶
func (p *AwsProvider) AttachVolume(id, instanceId, mntPoint string) error
func (*AwsProvider) CreateEmptyVolume ¶
func (*AwsProvider) CreateVolume ¶
func (p *AwsProvider) CreateVolume(params types.CreateVolumeParams) (*types.Volume, error)
func (*AwsProvider) DeleteImage ¶
func (p *AwsProvider) DeleteImage(id string, force bool) error
func (*AwsProvider) DeleteInstance ¶
func (p *AwsProvider) DeleteInstance(id string, force bool) error
func (*AwsProvider) DeleteVolume ¶
func (p *AwsProvider) DeleteVolume(id string, force bool) error
func (*AwsProvider) DetachVolume ¶
func (p *AwsProvider) DetachVolume(id string) error
func (*AwsProvider) GetConfig ¶
func (p *AwsProvider) GetConfig() providers.ProviderConfig
func (*AwsProvider) GetImage ¶
func (p *AwsProvider) GetImage(nameOrIdPrefix string) (*types.Image, error)
func (*AwsProvider) GetInstance ¶
func (p *AwsProvider) GetInstance(nameOrIdPrefix string) (*types.Instance, error)
func (*AwsProvider) GetInstanceLogs ¶
func (p *AwsProvider) GetInstanceLogs(id string) (string, error)
func (*AwsProvider) GetVolume ¶
func (p *AwsProvider) GetVolume(nameOrIdPrefix string) (*types.Volume, error)
func (*AwsProvider) ListImages ¶
func (p *AwsProvider) ListImages() ([]*types.Image, error)
func (*AwsProvider) ListInstances ¶
func (p *AwsProvider) ListInstances() ([]*types.Instance, error)
func (*AwsProvider) ListVolumes ¶
func (p *AwsProvider) ListVolumes() ([]*types.Volume, error)
func (*AwsProvider) RunInstance ¶
func (p *AwsProvider) RunInstance(params types.RunInstanceParams) (_ *types.Instance, err error)
func (*AwsProvider) Stage ¶
func (p *AwsProvider) Stage(params types.StageImageParams) (_ *types.Image, err error)
func (*AwsProvider) StartInstance ¶
func (p *AwsProvider) StartInstance(id string) error
func (*AwsProvider) StopInstance ¶
func (p *AwsProvider) StopInstance(id string) error
func (*AwsProvider) WithState ¶
func (p *AwsProvider) WithState(state state.State) *AwsProvider
Source Files ¶
- attach_volume.go
- aws_import.go
- aws_provider.go
- create_volume.go
- delete_image.go
- delete_instance.go
- delete_volume.go
- detach_volume.go
- get_config.go
- get_image.go
- get_instance.go
- get_instance_logs.go
- get_volume.go
- list_images.go
- list_instances.go
- list_volumes.go
- run_instance.go
- stage.go
- start_instance.go
- stop_instance.go
Click to show internal directories.
Click to hide internal directories.