client

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 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 ChangeVmConsoleType added in v0.4.0

func ChangeVmConsoleType(client *srpc.Client, ipAddress net.IP,
	consoleType proto.ConsoleType) error

func ChangeVmCpuPriority added in v0.4.0

func ChangeVmCpuPriority(client *srpc.Client, ipAddress net.IP,
	request proto.ChangeVmCpuPriorityRequest) error

func ChangeVmMachineType added in v0.4.0

func ChangeVmMachineType(client *srpc.Client, ipAddress net.IP,
	machineType proto.MachineType) error

func ChangeVmSize

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

func ChangeVmVolumeInterfaces added in v0.4.0

func ChangeVmVolumeInterfaces(client *srpc.Client, ipAddress net.IP,
	volumeInterfaces []proto.VolumeInterface) 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 GetIdentityProvider added in v0.4.0

func GetIdentityProvider(client srpc.ClientI) (string, error)

GetIdentityProvider will get the base URL of the Identity Provider.

func GetPublicKey added in v0.4.0

func GetPublicKey(client srpc.ClientI) ([]byte, error)

GetPublicKey will get the PEM-encoded public key for the Hypervisor.

func GetRootCookiePath

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

func GetVmInfo

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

func GetVmInfos added in v0.4.0

func GetVmInfos(client *srpc.Client,
	request proto.GetVmInfosRequest) ([]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 ListVMs added in v0.4.0

func ListVMs(client *srpc.Client,
	request proto.ListVMsRequest) ([]net.IP, 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 ReplaceVmIdentity added in v0.4.0

func ReplaceVmIdentity(client srpc.ClientI,
	request proto.ReplaceVmIdentityRequest) 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