(other *ConditionalRoleManager)
| 755 | } |
| 756 | |
| 757 | func (crm *ConditionalRoleManager) copyFrom(other *ConditionalRoleManager) { |
| 758 | other.Range(func(name1, name2 string, domain ...string) bool { |
| 759 | _ = crm.AddLink(name1, name2, domain...) |
| 760 | return true |
| 761 | }) |
| 762 | } |
| 763 | |
| 764 | // use this constructor to avoid rebuild of AddMatchingFunc. |
| 765 | func newConditionalRoleManagerWithMatchingFunc(maxHierarchyLevel int, fn rbac.MatchingFunc) *ConditionalRoleManager { |
no test coverage detected