Documentation ¶
Index ¶
- func AddGroup(params ...interface{}) bool
- func AddGroupRole(params ...interface{}) bool
- func AddPerm(params ...interface{}) bool
- func CommitChange()
- func DelFilteredPerm(fieldIndex int, params ...string) bool
- func DelGroup(params ...interface{}) bool
- func DelGroupPerm(params ...interface{}) bool
- func DelPerm(params ...interface{}) bool
- func DelRole(role string)
- func DelRoleByDomain(role string, domain string)
- func Enforce(params ...interface{}) bool
- func GetAllPermsByRole(role string) [][]string
- func GetAllPermsByRoleDomain(role string, domain string) [][]string
- func GetAllPermsByUser(uid string) [][]string
- func GetGroupsByUser(userId string) [][]string
- func SetUp(cluster bool)
- func SetUpForTest(dir string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddGroup ¶
func AddGroup(params ...interface{}) bool
AddGroup : method of group policy adding first : user second : group
func AddGroupRole ¶
func AddGroupRole(params ...interface{}) bool
AddGroupRole : assign role to a user group
func AddPerm ¶
func AddPerm(params ...interface{}) bool
AddPerm : method for permission policy adding sub,obj,act,domain
func DelFilteredPerm ¶
DeleteFilteredPerm
func DelGroup ¶
func DelGroup(params ...interface{}) bool
DelGroup : method of group policy deleting
func DelGroupPerm ¶
func DelGroupPerm(params ...interface{}) bool
DelGroupPerm : delete user group - role connection
func DelRoleByDomain ¶
DelRoleByName : delete all specific role policy of domain
func GetAllPermsByRole ¶
GetAllPermsByRole : get all permission across domains
func GetAllPermsByRoleDomain ¶
GetAllPermsByRoleDomain : get policies by role and domain
func GetAllPermsByUser ¶
GetAllPermsByUser : get all permission across domains
func GetGroupsByUser ¶
GetGroupsByUser : get groups by specific user
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.