Documentation ¶
Overview ¶
Package group package
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteGroupInput ¶
DeleteGroupInput is the input for deleting a group
type GetGroupsInput ¶
type GetGroupsInput struct { // Sort specifies the field to sort on and direction Sort *db.GroupSortableField // PaginationOptions supports cursor based pagination PaginationOptions *pagination.Options // ParentGroup filters the groups by the parent group ParentGroup *models.Group }
GetGroupsInput is the input for querying a list of groups
type Service ¶
type Service interface { // GetGroupByID returns a group by ID GetGroupByID(ctx context.Context, id string) (*models.Group, error) // GetGroupByFullPath returns a group by full path GetGroupByFullPath(ctx context.Context, path string) (*models.Group, error) // GetGroupByIDs returns a list of groups by IDs GetGroupsByIDs(ctx context.Context, idList []string) ([]models.Group, error) // GetGroups returns a list of groups GetGroups(ctx context.Context, input *GetGroupsInput) (*db.GroupsResult, error) // DeleteGroup deletes a group by name DeleteGroup(ctx context.Context, input *DeleteGroupInput) error // CreateGroup creates a new group CreateGroup(ctx context.Context, group *models.Group) (*models.Group, error) // UpdateGroup updates an existing group UpdateGroup(ctx context.Context, group *models.Group) (*models.Group, error) // MigrateGroup migrates an existing group to a new parent (or to root) MigrateGroup(ctx context.Context, groupID string, newParentID *string) (*models.Group, error) }
Service implements all group related functionality
func NewService ¶
func NewService( logger logger.Logger, dbClient *db.Client, namespaceMembershipService namespacemembership.Service, activityService activityevent.Service, ) Service
NewService creates an instance of Service
Click to show internal directories.
Click to hide internal directories.