controllers

package
v0.0.0-...-bbc0b7c Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CloudImages   = []map[string]string{}
	Images        = []map[string]string{}
	Disks         = []map[string]string{}
	CloudInitPath = []map[string]string{}
)
View Source
var Hypervisor = &HV{}

Functions

func CheckStorage

func CheckStorage() error

Types

type HV

type HV models.HV

func (*HV) CreateCloudDisk

func (hv *HV) CreateCloudDisk(path string, size int, image string) error

func (*HV) CreateCloudInitIso

func (hv *HV) CreateCloudInitIso(path string, userData string, metaData string) error

func (*HV) CreateDisk

func (hv *HV) CreateDisk(path string, size int) error

func (*HV) CreateDomain

func (hv *HV) CreateDomain(domID uuid.UUID, req *util.DomainCreateRequest) (err error)

func (*HV) DeleteDiskFile

func (hv *HV) DeleteDiskFile(path string) error

func (*HV) DestroyVM

func (hv *HV) DestroyVM(vm *models.VM) error

func (*HV) GetVMConsole

func (hv *HV) GetVMConsole(vm *models.VM) (string, error)

func (*HV) GetVMState

func (hv *HV) GetVMState(vm *models.VM) (models.VMState, error)

func (*HV) Init

func (hv *HV) Init() error

func (*HV) InitVMs

func (hv *HV) InitVMs() error

func (*HV) ListDir

func (hv *HV) ListDir(path string) ([]string, error)

func (*HV) UndefineVM

func (hv *HV) UndefineVM(vm *models.VM) error

type VM

type VM models.VM

Jump to

Keyboard shortcuts

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