usergroup

package
v0.0.0-...-e417875 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL