HasLink determines whether a link exists between two roles. role: name1 inherits role: name2. domain is a prefix to the roles (can be used for other purposes).
(name1 string, name2 string, domain ...string)
| 33 | // HasLink determines whether a link exists between two roles. role: name1 inherits role: name2. |
| 34 | // domain is a prefix to the roles (can be used for other purposes). |
| 35 | HasLink(name1 string, name2 string, domain ...string) (bool, error) |
| 36 | // GetRoles gets the roles that a user inherits. |
| 37 | // domain is a prefix to the roles (can be used for other purposes). |
| 38 | GetRoles(name string, domain ...string) ([]string, error) |
no outgoing calls