Group management interface
| 13 | |
| 14 | // Group management interface |
| 15 | type GroupManager interface { |
| 16 | CreateGroup(domainID string, domainType string, groupName string, role string, displayName string, description string) error |
| 17 | DeleteGroup(domainID string, domainType string, groupName string) error |
| 18 | UpdateGroup(domainID string, domainType string, groupName string, newRole string, displayName string, description string) error |
| 19 | AddUserToGroup(domainID string, domainType string, userID string, group string) error |
| 20 | RemoveUserFromGroup(domainID string, domainType string, userID string, group string) error |
| 21 | GetGroupUsers(ctx context.Context, domainID string, domainType string, group string) ([]string, error) |
| 22 | GetUserGroups(ctx context.Context, domainID string, domainType string, userID string) ([]string, error) |
| 23 | GetGroups(ctx context.Context, domainID string, domainType string) ([]string, error) |
| 24 | GetGroupRole(ctx context.Context, domainID string, domainType string, group string) (string, error) |
| 25 | } |
| 26 | |
| 27 | // Role management interface |
| 28 | type RoleManager interface { |
no outgoing calls
no test coverage detected