action

package
v0.0.0-...-778b7e7 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrUnsupportedDiskDevice     = "disk device is not supported"
	ErrUnsupportedDiskSourceType = "disk source type is not supported"
	ErrShutdownTimedOut          = "shutdown timed out"
)
View Source
const (
	ErrUnsupportedHash   = "unsupported hash"
	ErrChecksumFail      = "download failed checksum verification"
	ErrNoExistingVolume  = "volume does not exist"
	ErrVolumeShrinking   = "shrinking a volume is not supported"
	ErrLiveResizeNoMatch = "could not match volume to a disk during live resize"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DomainAction

type DomainAction struct {
	host.Client
	// contains filtered or unexported fields
}

func NewDomainAction

func NewDomainAction(client host.Client, name string) (*DomainAction, error)

func (*DomainAction) CPUCacheMode

func (a *DomainAction) CPUCacheMode(mode string)

func (*DomainAction) CPUMode

func (a *DomainAction) CPUMode(mode string)

func (*DomainAction) Create

func (a *DomainAction) Create() error

func (*DomainAction) Delete

func (a *DomainAction) Delete() error

func (*DomainAction) Disk

func (a *DomainAction) Disk(volume string, pool string, wwn *string, readonly *bool) error

func (*DomainAction) Interface

func (a *DomainAction) Interface(network string, queues *uint, macAddress *string)

func (*DomainAction) Memory

func (a *DomainAction) Memory(value uint, unit string)

func (*DomainAction) NoSecureBoot

func (a *DomainAction) NoSecureBoot()

func (*DomainAction) NumatuneMode

func (a *DomainAction) NumatuneMode(mode string)

func (*DomainAction) PCIPassthrough

func (a *DomainAction) PCIPassthrough(domain uint, bus uint, slot uint, function uint)

func (*DomainAction) SCSIMultiqueue

func (a *DomainAction) SCSIMultiqueue(queues uint)

func (*DomainAction) Shutdown

func (a *DomainAction) Shutdown() error

func (*DomainAction) Start

func (a *DomainAction) Start() error

func (*DomainAction) State

func (a *DomainAction) State() (exists bool, shutoff bool)

func (*DomainAction) UEFI

func (a *DomainAction) UEFI()

func (*DomainAction) VCPU

func (a *DomainAction) VCPU(value uint)

func (*DomainAction) VCPUPlacement

func (a *DomainAction) VCPUPlacement(placement string)

type VolumeAction

type VolumeAction struct {
	host.Client
	// contains filtered or unexported fields
}

func NewVolumeAction

func NewVolumeAction(client host.Client, name string, pool string) (*VolumeAction, error)

func (*VolumeAction) BackingStore

func (a *VolumeAction) BackingStore(name string, pool string) error

func (*VolumeAction) CleanupSource

func (a *VolumeAction) CleanupSource() error

func (*VolumeAction) Create

func (a *VolumeAction) Create() error

func (*VolumeAction) Delete

func (a *VolumeAction) Delete() error

func (*VolumeAction) Format

func (a *VolumeAction) Format(format string)

func (*VolumeAction) LiveResize

func (a *VolumeAction) LiveResize(domain string, unit string, value uint64) error

func (*VolumeAction) LocalSource

func (a *VolumeAction) LocalSource(file *os.File)

func (*VolumeAction) RemoteSource

func (a *VolumeAction) RemoteSource(ctx context.Context, url string, checksum *string) error

func (*VolumeAction) Resize

func (a *VolumeAction) Resize(unit string, value uint64) error

func (*VolumeAction) ResizeRequired

func (a *VolumeAction) ResizeRequired(unit string, value uint64) (bool, error)

func (*VolumeAction) Size

func (a *VolumeAction) Size(unit string, value uint64)

func (*VolumeAction) State

func (a *VolumeAction) State() (exists bool)

Jump to

Keyboard shortcuts

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