Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdditionLink ¶
type AdditionLink struct { HREF string `json:"href"` Absolute bool `json:"absolute"` // specify the href is an absolute URL or not }
AdditionLink is a link via that the addition can be fetched
type Artifact ¶
type Artifact struct { artifact.Artifact Tags []*tag.Tag `json:"tags"` // the list of tags that attached to the artifact AdditionLinks map[string]*AdditionLink `json:"addition_links"` // the resource link for build history(image), values.yaml(chart), dependency(chart), etc Labels []*cmodels.Label `json:"labels"` }
type Query ¶
type Query struct { // PageSize The size of per page // Default value : 10 PageSize int64 `json:"page_size,omitempty"` //Page The page number // Default value : 1 Page int64 `json:"page,omitempty"` // Query string to query resources. Supported query patterns are "exact match(k=v)", //"fuzzy match(k=~v)", "range(k=[min~max])", "list with union releationship(k={v1 v2 v3})" //and "list with intersetion relationship(k=(v1 v2 v3))". The value of range and list can be string(enclosed by " or '), //integer or time(in format "2020-04-09 02:36:00"). All of these query patterns should be put in the query string "q=xxx" //and splitted by ",". e.g. q=k1=v1,k2=~v2,k3=[min~max] Q string `json:"q,omitempty"` // An unique ID for the request RequestId string `json:"X-Request-Id,omitempty"` }
type Repository ¶
type Repository struct { Id int64 `orm:"pk;auto;column(id)" json:"id"` 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"` }
Repository holds the record of an repository in DB, all the infors are from the registry notification event.
Click to show internal directories.
Click to hide internal directories.