data

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 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGroup

func AddGroup(a *AuthData, address, group, net, maxvm, maxcpu, maxmem, maxstorage string)

func AddUser

func AddUser(a *AuthData, address, user, pass string)

func CreateVM

func CreateVM(d *pb.VMData, address string)

name string, vcpu, vmem, storage int64, storage_path string, cdrom string, vnet string, vnc int64, autostart bool

func CreateVMCheck

func CreateVMCheck(d *pb.VMData) bool

func DeleteVM

func DeleteVM(d *pb.VMID, address string)

func GetAllGroup

func GetAllGroup(a *AuthData, address string)

func GetAllUser

func GetAllUser(a *AuthData, address string)

func GetAllVM

func GetAllVM(d *pb.Base, address string)

func GetMyGroup

func GetMyGroup(a *AuthData, address string)

func GetNode

func GetNode(a *AuthData, address string)

func GetSelectGroup

func GetSelectGroup(a *AuthData, address, name string)

func GetVM

func GetVM(d *pb.VMID, address string)

func GetVMName

func GetVMName(d *pb.VMName, address string)

func JoinAddGroup

func JoinAddGroup(a *AuthData, address, genre, group, user string)

func JoinRemoveGroup

func JoinRemoveGroup(a *AuthData, address, genre, group, user string)

func NodeAdd

func NodeAdd(d *pb.NodeData, address string)

func NodeRemove

func NodeRemove(d *pb.NodeID, address string)

func NodeStopVM

func NodeStopVM(d *pb.NodeID, address string)

func PauseVM

func PauseVM(d *pb.VMID, address string) bool

func RemoveGroup

func RemoveGroup(a *AuthData, address, group string)

func RemoveUser

func RemoveUser(a *AuthData, address, user string)

func ResetVM

func ResetVM(d *pb.VMID, address string) bool

func ResumeVM

func ResumeVM(d *pb.VMID, address string) bool

func ShutdownVM

func ShutdownVM(d *pb.VMID, address string) bool

func StartVM

func StartVM(d *pb.VMID, address string) bool

func StopVM

func StopVM(d *pb.VMID, address string) bool

func UserNameChange

func UserNameChange(a *AuthData, address, user, pass string)

func UserPassChange

func UserPassChange(a *AuthData, address, user, pass string)

Types

type AuthData

type AuthData struct {
	Name  string
	Pass1 string
	Pass2 string
}

Jump to

Keyboard shortcuts

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