openstack

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: 25 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_INSTANCE_DISKMB int = 10 * 1024 // 10 GB

Variables

This section is empty.

Functions

func MergeConfWithEnv

func MergeConfWithEnv(conf *config.Openstack)

MergeConfWithEnv overrides configuration with environment values (inplace).

func OpenstackStateFile

func OpenstackStateFile() string

Types

type OpenstackProvider

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

func NewOpenstackProvider

func NewOpenstackProvider(config config.Openstack) (*OpenstackProvider, error)

func (*OpenstackProvider) AttachVolume

func (p *OpenstackProvider) AttachVolume(id, instanceId, mntPoint string) error

func (*OpenstackProvider) CreateVolume

func (p *OpenstackProvider) CreateVolume(params types.CreateVolumeParams) (_ *types.Volume, err error)

func (*OpenstackProvider) DeleteImage

func (p *OpenstackProvider) DeleteImage(id string, force bool) error

func (*OpenstackProvider) DeleteInstance

func (p *OpenstackProvider) DeleteInstance(id string, force bool) error

func (*OpenstackProvider) DeleteVolume

func (p *OpenstackProvider) DeleteVolume(id string, force bool) error

func (*OpenstackProvider) DetachVolume

func (p *OpenstackProvider) DetachVolume(id string) error

func (*OpenstackProvider) GetConfig

func (*OpenstackProvider) GetImage

func (p *OpenstackProvider) GetImage(nameOrIdPrefix string) (*types.Image, error)

func (*OpenstackProvider) GetInstance

func (p *OpenstackProvider) GetInstance(nameOrIdPrefix string) (*types.Instance, error)

func (*OpenstackProvider) GetInstanceLogs

func (p *OpenstackProvider) GetInstanceLogs(id string) (string, error)

func (*OpenstackProvider) GetVolume

func (p *OpenstackProvider) GetVolume(nameOrIdPrefix string) (*types.Volume, error)

func (*OpenstackProvider) ListImages

func (p *OpenstackProvider) ListImages() ([]*types.Image, error)

func (*OpenstackProvider) ListInstances

func (p *OpenstackProvider) ListInstances() ([]*types.Instance, error)

func (*OpenstackProvider) ListVolumes

func (p *OpenstackProvider) ListVolumes() ([]*types.Volume, error)

func (*OpenstackProvider) PullImage

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

func (*OpenstackProvider) PushImage

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

func (*OpenstackProvider) RemoteDeleteImage

func (p *OpenstackProvider) RemoteDeleteImage(params types.RemoteDeleteImagePararms) error

func (*OpenstackProvider) RunInstance

func (p *OpenstackProvider) RunInstance(params types.RunInstanceParams) (_ *types.Instance, err error)

func (*OpenstackProvider) Stage

func (p *OpenstackProvider) Stage(params types.StageImageParams) (_ *types.Image, err error)

func (*OpenstackProvider) StartInstance

func (p *OpenstackProvider) StartInstance(id string) error

func (*OpenstackProvider) StopInstance

func (p *OpenstackProvider) StopInstance(id string) error

func (*OpenstackProvider) WithState

func (p *OpenstackProvider) WithState(state state.State) *OpenstackProvider

Jump to

Keyboard shortcuts

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