auto

package
v0.0.0-...-68d433b Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Start uint8 = iota
	Reboot
	Poweroff
	Stop
	Reset
)

Variables

View Source
var TLSClient http.Client

The TLS client that we will use to talk to auto

Functions

func Init

func Init()

Types

type Auto

type Auto struct {
	Url    string
	Serial string
}

func (*Auto) CreateVM

func (a *Auto) CreateVM(req *util.VMCreateRequest, vmid uuid.UUID) (err error)

func (*Auto) DeleteVM

func (a *Auto) DeleteVM(vmid string) error

func (*Auto) GetHVSpecs

func (a *Auto) GetHVSpecs() (hv models.HV, err error)

func (*Auto) GetLibvirtVM

func (a *Auto) GetLibvirtVM(vmid string) (vm models.VM, err error)

func (*Auto) GetLibvirtVMs

func (a *Auto) GetLibvirtVMs() (vms []models.VM, err error)

func (*Auto) GetVMState

func (a *Auto) GetVMState(vmid string) (state models.VMState, err error)

func (*Auto) SetVMState

func (a *Auto) SetVMState(vmid string, state uint8) (respState models.VMState, err error)

func (*Auto) WSProxy

func (a *Auto) WSProxy(wsUrl *url.URL, w http.ResponseWriter, r *http.Request)

func (*Auto) WsReq

func (a *Auto) WsReq(w http.ResponseWriter, r *http.Request, domid string)

Jump to

Keyboard shortcuts

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