AclEntity is an interface that must be met by all the types of entities (i.e users, groups) in the ACL system.
| 181 | // AclEntity is an interface that must be met by all the types of entities (i.e users, groups) |
| 182 | // in the ACL system. |
| 183 | type AclEntity interface { |
| 184 | // GetUid returns the UID of the entity. |
| 185 | // The implementation of GetUid must check the case that the entity is nil |
| 186 | // and return an empty string accordingly. |
| 187 | GetUid() string |
| 188 | } |
| 189 | |
| 190 | func userOrGroupDel(conf *viper.Viper, userOrGroupId string, |
| 191 | queryFn func(context.Context, *dgo.Txn, string) (AclEntity, error)) error { |
no outgoing calls
no test coverage detected