xen

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

Documentation

Index

Constants

View Source
const (
	XenUnikInstanceListener = "XenUnikInstanceListener"
)

Variables

This section is empty.

Functions

func XenStateFile

func XenStateFile() string

Types

type XenProvider

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

func NewXenProvider

func NewXenProvider(config config.Xen) (*XenProvider, error)

func (*XenProvider) AttachVolume

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

func (*XenProvider) CreateVolume

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

func (*XenProvider) DeleteImage

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

func (*XenProvider) DeleteInstance

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

func (*XenProvider) DeleteVolume

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

func (*XenProvider) DetachVolume

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

func (*XenProvider) GetConfig

func (p *XenProvider) GetConfig() providers.ProviderConfig

func (*XenProvider) GetImage

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

func (*XenProvider) GetInstance

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

func (*XenProvider) GetInstanceLogs

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

func (*XenProvider) GetVolume

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

func (*XenProvider) ListImages

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

func (*XenProvider) ListInstances

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

func (*XenProvider) ListVolumes

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

func (*XenProvider) PullImage

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

func (*XenProvider) PushImage

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

func (*XenProvider) RemoteDeleteImage

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

func (*XenProvider) RunInstance

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

func (*XenProvider) Stage

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

func (*XenProvider) StartInstance

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

func (*XenProvider) StopInstance

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

func (*XenProvider) WithState

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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