need_refactoring

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: BSD-2-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CalendarServiceChan = "calendar-service"
	PongServiceChan     = "services-PongService"
	SimpleStreamChan    = "simple-stream"
	ServbotServiceChan  = "servbot"
	VmServiceChan       = "vm-service"
	VMWCloudServiceChan = "services-CloudServiceStatus"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseVmResponse

type BaseVmResponse struct {
	Error        bool   `json:"error"`
	ErrorMessage string `json:"errorMessage"`
}

type Joke

type Joke struct {
	Id     string `json:"id"`
	Joke   string `json:"joke"`
	Status int    `json:"status"`
}

type RuntimeInfo

type RuntimeInfo struct {
	Host       string `json:"host"`
	PowerState string `json:"powerState"`
}

type SampleMessageItem

type SampleMessageItem struct {
	From    string `json:"from"`
	Message string `json:"message"`
}

type VirtualDisk

type VirtualDisk struct {
	Key        int    `json:"key"`
	DeviceType string `json:"deviceType"`
	DeviceName string `json:"deviceName"`
	CapacityMB int64  `json:"capacityMB"`
	DiskFormat string `json:"diskFormat"`
}

type VirtualHardware

type VirtualHardware struct {
	MemoryMB int           `json:"memoryMB"`
	NumCPU   int           `json:"numCPU"`
	Devices  []interface{} `json:"devices"`
}

type VirtualMachine

type VirtualMachine struct {
	VmRef       VmRef            `json:"vmRef"`
	Name        string           `json:"name"`
	RuntimeInfo *RuntimeInfo     `json:"runtimeInfo"`
	Hardware    *VirtualHardware `json:"hardware"`
}

type VirtualUSB

type VirtualUSB struct {
	Key        int      `json:"key"`
	DeviceType string   `json:"deviceType"`
	DeviceName string   `json:"deviceName"`
	Connected  bool     `json:"connected"`
	Speed      []string `json:"speed"`
}

type VmCreateRequest

type VmCreateRequest struct {
	Name            string           `json:"name"`
	VirtualHardware *VirtualHardware `json:"virtualHardware"`
}

type VmCreateResponse

type VmCreateResponse struct {
	Error        bool           `json:"error"`
	ErrorMessage string         `json:"errorMessage"`
	Vm           VirtualMachine `json:"vm"`
}

type VmDeleteRequest

type VmDeleteRequest struct {
	Vm VmRef `json:"vm"`
}

type VmListResponse

type VmListResponse struct {
	Error           bool             `json:"error"`
	ErrorMessage    string           `json:"errorMessage"`
	VirtualMachines []VirtualMachine `json:"virtualMachines"`
}

type VmPowerOperationRequest

type VmPowerOperationRequest struct {
	VmRefs         []VmRef `json:"vmRefs"`
	PowerOperation string  `json:"powerOperation"`
}

type VmPowerOperationResponse

type VmPowerOperationResponse struct {
	Error        bool                           `json:"error"`
	ErrorMessage string                         `json:"errorMessage"`
	OpResults    []VmPowerOperationResponseItem `json:"opResults"`
}

type VmPowerOperationResponseItem

type VmPowerOperationResponseItem struct {
	VmRef           VmRef `json:"vmRef"`
	OperationResult bool  `json:"operationResult"`
}

type VmRef

type VmRef struct {
	VcGuid string `json:"vcGuid"`
	VmId   string `json:"vmId"`
}

Jump to

Keyboard shortcuts

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