Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// Ctl Global instance of the UserGroup controller
Ctl = newController()
)
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface { // Delete delete user group Delete(ctx context.Context, id int) error // Update update the user group name Update(ctx context.Context, id int, groupName string) error // Create create user group Create(ctx context.Context, group model.UserGroup) (int, error) // Get get user group by id Get(ctx context.Context, id int) (*model.UserGroup, error) // Ensure if this user group doesn't exist in Harbor, create it in Harbor, if exist, do nothing Ensure(ctx context.Context, group *model.UserGroup) error // Populate populate user group and get the user group's id Populate(ctx context.Context, userGroups []model.UserGroup) ([]int, error) // List list user groups List(ctx context.Context, q *q.Query) ([]*model.UserGroup, error) // Count user group count Count(ctx context.Context, q *q.Query) (int64, error) }
Controller manages the user group
Click to show internal directories.
Click to hide internal directories.