db

package
v0.1.1-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2020 License: MIT, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDBVM

func AddDBVM(data NodeVM) bool

func Createdb

func Createdb() bool

func DeleteDBVM

func DeleteDBVM(id int) bool

func VMDBGetVMID

func VMDBGetVMID(name string) (int, error)

func VMDBGetVMStatus

func VMDBGetVMStatus(id int) (int, error)

func VMDBStatusStop

func VMDBStatusStop(id int)

func VMDBStatusUpdate

func VMDBStatusUpdate(id, status int) bool

func VMDBUpdate

func VMDBUpdate(data *NodeVM)

Types

type NodeVM

type NodeVM struct {
	ID          int
	Name        string
	CPU         int
	Mem         int
	StoragePath string
	Net         string
	Vnc         int
	Socket      string
	Status      int
	AutoStart   bool
}

func VMDBGetAll

func VMDBGetAll() []NodeVM

func VMDBGetData

func VMDBGetData(id int) (*NodeVM, error)

Jump to

Keyboard shortcuts

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