Documentation
¶
Overview ¶
Package priority provides standard priority levels.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Value ¶
type Value int
Value is an integer priority associated with a repo.
const ( // None is an unspecified priority level. None Value = 0 // Default is the default priority level for everything. Default Value = 500 // Canary is the priority level for canary repos. Canary Value = 1300 // Pin is the priority level for user-pinned repos. Pin Value = 1400 // Rollback is the priority level for rollback repos. Rollback Value = 1500 )
func FromString ¶
FromString converts the string s into a priority Value, where s represents either a semantic priority name or an integer.
func (Value) MarshalYAML ¶
MarshalYAML marshals a priority value as a semantic name if possible otherwise as an integer.
Click to show internal directories.
Click to hide internal directories.