MCPcopy
hub / github.com/superplanehq/superplane / GroupManager

Interface GroupManager

pkg/authorization/interface.go:15–25  ·  view source on GitHub ↗

Group management interface

Source from the content-addressed store, hash-verified

13
14// Group management interface
15type 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
28type RoleManager interface {

Callers 43

TestUpdateGroupFunction · 0.65
Test_AddUserToGroupFunction · 0.65
Test_ListGroupsFunction · 0.65
CreateGroupFunction · 0.65
Test_ListGroupUsersFunction · 0.65
Test_DescribeGroupFunction · 0.65
Test_RemoveUserFromGroupFunction · 0.65
DeleteGroupFunction · 0.65
UpdateGroupFunction · 0.65
TestUpdateGroupFunction · 0.65

Implementers 1

AuthServicepkg/authorization/service.go

Calls

no outgoing calls

Tested by

no test coverage detected