Documentation ¶
Index ¶
- Constants
- type DomainAction
- func (a *DomainAction) CPUCacheMode(mode string)
- func (a *DomainAction) CPUMode(mode string)
- func (a *DomainAction) Create() error
- func (a *DomainAction) Delete() error
- func (a *DomainAction) Disk(volume string, pool string, wwn *string, readonly *bool) error
- func (a *DomainAction) Interface(network string, queues *uint, macAddress *string)
- func (a *DomainAction) Memory(value uint, unit string)
- func (a *DomainAction) NoSecureBoot()
- func (a *DomainAction) NumatuneMode(mode string)
- func (a *DomainAction) PCIPassthrough(domain uint, bus uint, slot uint, function uint)
- func (a *DomainAction) SCSIMultiqueue(queues uint)
- func (a *DomainAction) Shutdown() error
- func (a *DomainAction) Start() error
- func (a *DomainAction) State() (exists bool, shutoff bool)
- func (a *DomainAction) UEFI()
- func (a *DomainAction) VCPU(value uint)
- func (a *DomainAction) VCPUPlacement(placement string)
- type VolumeAction
- func (a *VolumeAction) BackingStore(name string, pool string) error
- func (a *VolumeAction) CleanupSource() error
- func (a *VolumeAction) Create() error
- func (a *VolumeAction) Delete() error
- func (a *VolumeAction) Format(format string)
- func (a *VolumeAction) LiveResize(domain string, unit string, value uint64) error
- func (a *VolumeAction) LocalSource(file *os.File)
- func (a *VolumeAction) RemoteSource(ctx context.Context, url string, checksum *string) error
- func (a *VolumeAction) Resize(unit string, value uint64) error
- func (a *VolumeAction) ResizeRequired(unit string, value uint64) (bool, error)
- func (a *VolumeAction) Size(unit string, value uint64)
- func (a *VolumeAction) State() (exists bool)
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 ¶
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) 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 ¶
func NewVolumeAction ¶
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 (*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)
Click to show internal directories.
Click to hide internal directories.