Documentation ¶
Index ¶
- Constants
- func AddDBGroup(data Group) bool
- func AddDBNode(data Node) bool
- func AddDBUser(data User) bool
- func ChangeDBGroupAdmin(id int, data string) bool
- func ChangeDBGroupName(id int, data string) bool
- func ChangeDBGroupUser(id int, data string) bool
- func ChangeDBUserName(id int, data string) bool
- func ChangeDBUserPassword(id int, data string) bool
- func GetDBGroupID(name string) (int, bool)
- func GetDBUserID(name string) (int, bool)
- func InitDB() bool
- func NodeDBStatusUpdate(id, status int) bool
- func PassAuthDBUser(name, pass string) bool
- func RemoveDBGroup(id int) bool
- func RemoveDBNode(id int) bool
- func RemoveDBUser(name string) bool
- type Group
- type Node
- type User
Constants ¶
View Source
const DBPath = "./main.db"
Variables ¶
This section is empty.
Functions ¶
func ChangeDBGroupAdmin ¶
func ChangeDBGroupName ¶
func ChangeDBGroupUser ¶
func ChangeDBUserName ¶
func ChangeDBUserPassword ¶
func GetDBGroupID ¶
func GetDBUserID ¶
func NodeDBStatusUpdate ¶
func PassAuthDBUser ¶
func RemoveDBGroup ¶
func RemoveDBNode ¶
func RemoveDBUser ¶
Types ¶
type Group ¶
type Group struct { ID int Name string Admin string User string MaxVM int MaxCPU int MaxMem int MaxStorage int Net string }
func GetDBAllGroup ¶
func GetDBAllGroup() []Group
func GetDBGroup ¶
Click to show internal directories.
Click to hide internal directories.