Function
equalACLLists
(a, b map[string][]policy.Action)
Source from the content-addressed store, hash-verified
| 116 | } |
| 117 | |
| 118 | func equalACLLists(a, b map[string][]policy.Action) bool { |
| 119 | if len(a) != len(b) { |
| 120 | return false |
| 121 | } |
| 122 | |
| 123 | for k, actions := range a { |
| 124 | if len(actions) != len(b[k]) { |
| 125 | return false |
| 126 | } |
| 127 | for i, a := range actions { |
| 128 | if a != b[k][i] { |
| 129 | return false |
| 130 | } |
| 131 | } |
| 132 | } |
| 133 | return true |
| 134 | } |
| 135 | |
| 136 | func (z Object) RBACObject() Object { |
| 137 | return z |
Tested by
no test coverage detected