aws

package
v0.0.0-...-937b75d Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

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 (p *AwsProvider) CreateEmptyVolume(name string, size int) (*types.Volume, error)

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) PullImage

func (p *AwsProvider) PullImage(params types.PullImagePararms) error

func (*AwsProvider) PushImage

func (p *AwsProvider) PushImage(params types.PushImagePararms) error

func (*AwsProvider) RemoteDeleteImage

func (p *AwsProvider) RemoteDeleteImage(params types.RemoteDeleteImagePararms) 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

Jump to

Keyboard shortcuts

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