Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultChannel = Channel("")
View Source
const NullVersion = Version("")
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel string
Channel is an opaque identifier to represent a specific tool distribution channel. This defines the granularity at which upstream versions are tracked and updated.
Channel can be used, for instance, to distinguish between stable and pre-release channels, or between branches in a git repository.
type Checkout ¶
type Checkout interface {
// Path returns the filesystem path for the checkout.
Path() string
// Version returns the version of the tool in the checkout.
Version() Version
}
Checkout represents a materialization of a specific version of a tool in the filesystem.
type UpdateFrequency ¶
type UpdateFrequency int
const ( UpdateDefault UpdateFrequency = iota UpdateDaily UpdateWeekly UpdateMonthly UpdateAlways UpdateFrequency = -1 UpdateNever UpdateFrequency = -2 )
func UpdateFrequencyFromString ¶
func UpdateFrequencyFromString(value string) UpdateFrequency
func (UpdateFrequency) Combine ¶
func (uf UpdateFrequency) Combine(otherUF ...UpdateFrequency) UpdateFrequency
func (UpdateFrequency) IsTimeToUpdate ¶
func (uf UpdateFrequency) IsTimeToUpdate(lastUpdate time.Time) bool
func (UpdateFrequency) String ¶
func (uf UpdateFrequency) String() string
func (*UpdateFrequency) UnmarshalYAML ¶
func (uf *UpdateFrequency) UnmarshalYAML(unmarshal func(interface{}) error) error
Click to show internal directories.
Click to hide internal directories.