NewConditionalRoleManager is the constructor for creating an instance of the ConditionalRoleManager implementation.
(maxHierarchyLevel int)
| 771 | // NewConditionalRoleManager is the constructor for creating an instance of the |
| 772 | // ConditionalRoleManager implementation. |
| 773 | func NewConditionalRoleManager(maxHierarchyLevel int) *ConditionalRoleManager { |
| 774 | rm := ConditionalRoleManager{} |
| 775 | _ = rm.Clear() // init allRoles and matchingFuncCache |
| 776 | rm.maxHierarchyLevel = maxHierarchyLevel |
| 777 | return &rm |
| 778 | } |
| 779 | |
| 780 | // HasLink determines whether role: name1 inherits role: name2. |
| 781 | func (crm *ConditionalRoleManager) HasLink(name1 string, name2 string, domains ...string) (bool, error) { |
no test coverage detected
searching dependent graphs…