Lines Matching defs:Members
134 // granted to members.
146 // Members returns the list of members with the supplied role.
148 // to modify the members of a role.
149 func (p *Policy) Members(r RoleName) []string {
154 return b.Members
172 Members: []string{member},
177 b.Members = append(b.Members, member)
194 // Order doesn't matter for bindings or members, so to remove, move the last item
196 if len(b.Members) == 1 {
206 last := len(b.Members) - 1
207 b.Members[mi] = b.Members[last]
208 b.Members[last] = ""
209 b.Members = b.Members[:last]
245 // memberIndex returns the index of m in b's Members, or -1 if not found.
250 for i, mm := range b.Members {