Documentation ¶
Index ¶
- func AddGroups(name, info string) (int64, error)
- func AddHost(name, ip, user, pass string, port int, group int) (int64, error)
- func AddUser(name, pass, email string) (int64, error)
- func ChangeHostPass(pass string, id int) (int64, error)
- func ChangeUserPass(pass string, id int) (int64, error)
- func DeleteGroups(id int) (int64, error)
- func DeleteHost(id int) (int64, error)
- func DeleteUser(id int) (int64, error)
- func EditGroups(name, info string, id int) (int64, error)
- func EditHost(name, ip, user string, port int, group int, id int) (int64, error)
- func EditUser(email string, right, id int) (int64, error)
- func GroupsExistCheck(name string) bool
- func NameExistCheck(name string) bool
- func UserExistCheck(name string) bool
- type HostAll
- type Hostgroups
- type Hostinfo
- type Rights
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteGroups ¶
func DeleteHost ¶
func DeleteUser ¶
func GroupsExistCheck ¶
func NameExistCheck ¶
func UserExistCheck ¶
Types ¶
type Hostgroups ¶
func FindAllGroups ¶
func FindAllGroups() ([]Hostgroups, error)
func FindGroupsById ¶
func FindGroupsById(id int) (Hostgroups, error)
func FindGroupsByName ¶
func FindGroupsByName(gname string) ([]Hostgroups, error)
type Hostinfo ¶
type Hostinfo struct { Id int Name string Ip string User string Pass string Port int Skey int Groups *Hostgroups `orm:"rel(fk)"` Created_at string }
func FindHostById ¶
func FindHostByIp ¶
func FindHostByName ¶
type Rights ¶
func FindAllRights ¶
type User ¶
type User struct { Id int Name string Pass string Email string Rights *Rights `orm:"rel(fk)"` Created_at string }
func FindAllUser ¶
func FindUserById ¶
func FindUserByName ¶
Click to show internal directories.
Click to hide internal directories.