Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Mgr is the global project manager Mgr = New() )
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { // Create create project instance Create(ctx context.Context, project *models.Project) (int64, error) // Count returns the total count of projects according to the query Count(ctx context.Context, query *q.Query) (total int64, err error) // Delete delete the project instance by id Delete(ctx context.Context, id int64) error // Get the project specified by the ID or name Get(ctx context.Context, idOrName interface{}) (*models.Project, error) // List projects according to the query List(ctx context.Context, query *q.Query) ([]*models.Project, error) // ListRoles returns the roles of user for the specific project ListRoles(ctx context.Context, projectID int64, userID int, groupIDs ...int) ([]int, error) }
Manager is used for project management
Click to show internal directories.
Click to hide internal directories.