Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RepoRecord ¶
type RepoRecord struct { RepositoryID int64 `orm:"pk;auto;column(repository_id)" json:"repository_id"` Name string `orm:"column(name)" json:"name"` ProjectID int64 `orm:"column(project_id)" json:"project_id"` Description string `orm:"column(description)" json:"description"` PullCount int64 `orm:"column(pull_count)" json:"pull_count"` StarCount int64 `orm:"column(star_count)" json:"star_count"` CreationTime time.Time `orm:"column(creation_time);auto_now_add" json:"creation_time"` UpdateTime time.Time `orm:"column(update_time);auto_now" json:"update_time"` }
RepoRecord holds the record of an repository in DB, all the infos are from the registry notification event.
func (*RepoRecord) FilterByBlobDigest ¶
func (r *RepoRecord) FilterByBlobDigest(ctx context.Context, qs orm.QuerySeter, key string, value interface{}) orm.QuerySeter
FilterByBlobDigest filters the repositories by the blob digest
func (*RepoRecord) GetDefaultSorts ¶
func (r *RepoRecord) GetDefaultSorts() []*q.Sort
GetDefaultSorts specifies the default sorts
func (*RepoRecord) TableName ¶
func (r *RepoRecord) TableName() string
TableName is required by beego orm to map RepoRecord to table repository
Click to show internal directories.
Click to hide internal directories.