client

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 15 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcknowledgeVm

func AcknowledgeVm(client *srpc.Client, ipAddress net.IP) error

func AddVmVolumes

func AddVmVolumes(client *srpc.Client, ipAddress net.IP, sizes []uint64) error

func ChangeVmSize

func ChangeVmSize(client *srpc.Client,
	request proto.ChangeVmSizeRequest) error

func ChangeVmVolumeSize added in v0.3.2

func ChangeVmVolumeSize(client *srpc.Client, ipAddress net.IP, index uint,
	size uint64) error

func ConnectToVmConsole

func ConnectToVmConsole(client *srpc.Client, ipAddr net.IP,
	vncViewerCommand string, logger log.DebugLogger) error

func CreateVm

func CreateVm(client *srpc.Client, request proto.CreateVmRequest,
	reply *proto.CreateVmResponse, logger log.DebugLogger) error

func DeleteVmVolume

func DeleteVmVolume(client *srpc.Client, ipAddr net.IP, accessToken []byte,
	volumeIndex uint) error

func DestroyVm

func DestroyVm(client *srpc.Client, ipAddr net.IP, accessToken []byte) error

func ExportLocalVm

func ExportLocalVm(client *srpc.Client, ipAddr net.IP,
	verificationCookie []byte) (proto.ExportLocalVmInfo, error)

func GetCapacity added in v0.3.4

func GetCapacity(client *srpc.Client) (proto.GetCapacityResponse, error)

func GetRootCookiePath

func GetRootCookiePath(client *srpc.Client) (string, error)

func GetVmInfo

func GetVmInfo(client *srpc.Client, ipAddr net.IP) (proto.VmInfo, error)

func GetVmLastPatchLog added in v0.3.4

func GetVmLastPatchLog(client *srpc.Client, ipAddr net.IP) (
	[]byte, time.Time, error)

func HoldLock added in v0.3.3

func HoldLock(client *srpc.Client, timeout time.Duration,
	writeLock bool) error

func HoldVmLock added in v0.3.3

func HoldVmLock(client *srpc.Client, ipAddr net.IP, timeout time.Duration,
	writeLock bool) error

func ListSubnets

func ListSubnets(client *srpc.Client, doSort bool) ([]proto.Subnet, error)

func ListVolumeDirectories added in v0.3.4

func ListVolumeDirectories(client *srpc.Client, doSort bool) ([]string, error)

func PowerOff

func PowerOff(client *srpc.Client, stopVMs bool) error

func PrepareVmForMigration

func PrepareVmForMigration(client *srpc.Client, ipAddr net.IP,
	accessToken []byte, enable bool) error

func RegisterExternalLeases

func RegisterExternalLeases(client *srpc.Client, addressList proto.AddressList,
	hostnames []string) error

func ReorderVmVolumes added in v0.3.2

func ReorderVmVolumes(client *srpc.Client, ipAddr net.IP, accessToken []byte,
	volumeIndices []uint) error

func ScanVmRoot

func ScanVmRoot(client *srpc.Client, ipAddr net.IP,
	scanFilter *filter.Filter) (*filesystem.FileSystem, error)

func SetDisabledState added in v0.3.3

func SetDisabledState(client *srpc.Client, disable bool) error

func StartVm

func StartVm(client *srpc.Client, ipAddr net.IP, accessToken []byte) error

func StopVm

func StopVm(client *srpc.Client, ipAddr net.IP, accessToken []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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