Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metadata ¶
type Metadata struct { // UUID of rule ID int64 `json:"id"` // ProjectID of project ProjectID int64 `json:"project_id"` // Disabled rule Disabled bool `json:"disabled"` // Priority of rule when doing calculating Priority int `json:"priority"` // Action of the rule performs // "immutable" Action string `json:"action" valid:"Required"` // Template ID Template string `json:"template" valid:"Required"` // TagSelectors attached to the rule for filtering tags TagSelectors []*Selector `json:"tag_selectors" valid:"Required"` // Selector attached to the rule for filtering scope (e.g: repositories or namespaces) ScopeSelectors map[string][]*Selector `json:"scope_selectors" valid:"Required"` }
Metadata of the immutable rule
type Selector ¶
type Selector struct { // Kind of the selector // "doublestar" or "label" Kind string `json:"kind" valid:"Required;Match(doublestar)"` // Decorated the selector // for "doublestar" : "matching" and "excluding" // for "label" : "with" and "without" Decoration string `json:"decoration" valid:"Required"` // Param for the selector Pattern string `json:"pattern" valid:"Required"` }
Selector to narrow down the list
Click to show internal directories.
Click to hide internal directories.