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 // Search is used to search for a group by name or namespace path Search *string // Set RootOnly true to get only root groups returned by the query. RootOnly bool }
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, limitChecker limits.LimitChecker, namespaceMembershipService namespacemembership.Service, activityService activityevent.Service, ) Service
NewService creates an instance of Service
Click to show internal directories.
Click to hide internal directories.