type Permissions struct {
Owner_U int `xml:"OWNER_U"`
Owner_M int `xml:"OWNER_M"`
Owner_A int `xml:"OWNER_A"`
Group_U int `xml:"GROUP_U"`
Group_M int `xml:"GROUP_M"`
Group_A int `xml:"GROUP_A"`
Other_U int `xml:"OTHER_U"`
Other_M int `xml:"OTHER_M"`
Other_A int `xml:"OTHER_A"`
}
type UserTemplate struct {
Name string `xml:"NAME"`
Id int `xml:"ID"`
Uid int `xml:"UID"`
Gid int `xml:"GID"`
Uname string `xml:"UNAME"`
Gname string `xml:"GNAME"`
RegTime int `xml:"REGTIME"`
Permissions *Permissions `xml:"PERMISSIONS"`
}
type UserVm struct {
Id string `xml:"ID"`
Name string `xml:"NAME"`
Uid int `xml:"UID"`
Gid int `xml:"GID"`
Uname string `xml:"UNAME"`
Gname string `xml:"GNAME"`
Permissions *Permissions `xml:"PERMISSIONS"`
State int `xml:"STATE"`
LcmState int `xml:"LCM_STATE"`
VmTemplate *VmTemplate `xml:"TEMPLATE"`
}
type UserVnet struct {
Name string `xml:"NAME"`
Id int `xml:"ID"`
Uid int `xml:"UID"`
Gid int `xml:"GID"`
Uname string `xml:"UNAME"`
Gname string `xml:"GNAME"`
Permissions *Permissions `xml:"PERMISSIONS"`
Bridge string `xml:"BRIDGE"`
}
type VmTemplate struct {
Context *Context `xml:"CONTEXT"`
Nic *Nic `xml:"NIC"`
Disk *Disk `xml:"DISK"`
Cpu int `xml:"CPU"`
Vcpu int `xml:"VCPU"`
Memory int `xml:"MEMORY"`
}