qemu

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFileType

func CheckFileType(filePath string) (models.DiskType, error)

func CreateVm

func CreateVm(vmInfo models.PostApiV1VmsJSONRequestBody, socksPath string) (models.Vm, error)

CreateVm diskとVmをcharV-libの関数から作成する

func DeleteVm

func DeleteVm(id uuid.UUID, sockPath string) error

func GetAllVmInfo

func GetAllVmInfo() ([]models.Vm, error)

func GetVmPower

func GetVmPower(id uuid.UUID, path string) (models.VmPowerInfo, error)

func HandleChangeVmPower

func HandleChangeVmPower(id uuid.UUID, reqBody models.PostChangeVMsPowerStatusByVMIdRequest, sockPath string) error

Types

type ErrorWithStatus

type ErrorWithStatus struct {
	Code int //http status code
	// contains filtered or unexported fields
}

type InstallOpts

type InstallOpts struct {
	Name       string
	Memory     uint64
	VCpu       int
	Image      string
	Disk       string
	Id         uuid.UUID
	SocketPath string
}

type StartOpts

type StartOpts struct {
	Disk string
}

Jump to

Keyboard shortcuts

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