Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { // Count returns the total count of repositories according to the query Count(ctx context.Context, query *q.Query) (total int64, err error) // List repositories according to the query List(ctx context.Context, query *q.Query) (repositories []*model.RepoRecord, err error) // Get the repository specified by ID Get(ctx context.Context, id int64) (repository *model.RepoRecord, err error) // GetByName gets the repository specified by name GetByName(ctx context.Context, name string) (repository *model.RepoRecord, err error) // Create a repository Create(ctx context.Context, repository *model.RepoRecord) (id int64, err error) // Delete the repository specified by ID Delete(ctx context.Context, id int64) (err error) // Update updates the repository. Only the properties specified by "props" will be updated if it is set Update(ctx context.Context, repository *model.RepoRecord, props ...string) (err error) // AddPullCount increase pull count for the specified repository AddPullCount(ctx context.Context, id int64, count uint64) error // NonEmptyRepos returns the repositories without any artifact or all the artifacts are untagged. NonEmptyRepos(ctx context.Context) ([]*model.RepoRecord, error) }
Manager is used for repository management
Click to show internal directories.
Click to hide internal directories.