Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DAO ¶
type DAO interface { // Count returns the total count of repositories according to the query Count(ctx context.Context, query *q.Query) (count 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) // Create the 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 one pull count for the specified repository AddPullCount(ctx context.Context, id int64) error // NonEmptyRepos returns the repositories without any artifact or all the artifacts are untagged. NonEmptyRepos(ctx context.Context) ([]*model.RepoRecord, error) }
DAO is the data access object interface for repository
Click to show internal directories.
Click to hide internal directories.