Documentation
¶
Index ¶
- type RemoteVersions
- type Versions
- func (v *Versions) Earliest() *version.Version
- func (v *Versions) GetRunningVersion() *version.Version
- func (v *Versions) GreaterThan() *Versions
- func (v *Versions) LastMajorsGreaterThan() *Versions
- func (v *Versions) Latest() *version.Version
- func (v *Versions) MajorAvailable() bool
- func (v *Versions) MinorAvailable() bool
- func (v *Versions) MinorsGreaterThan() *Versions
- func (v *Versions) PatchAvailable() bool
- func (v *Versions) PatchesGreaterThan() *Versions
- func (v *Versions) SetRemoteVersions(remotes []string) error
- func (v *Versions) SetRunningVersion(ver string) error
- func (v *Versions) StringList() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RemoteVersions ¶
type RemoteVersions []*version.Version
func (*RemoteVersions) Earliest ¶
func (r *RemoteVersions) Earliest() *version.Version
func (*RemoteVersions) Latest ¶
func (r *RemoteVersions) Latest() *version.Version
type Versions ¶
type Versions struct { RunningVersion *version.Version RemoteVersions RemoteVersions }
func (*Versions) GetRunningVersion ¶
func (v *Versions) GetRunningVersion() *version.Version
func (*Versions) GreaterThan ¶
func (*Versions) LastMajorsGreaterThan ¶
Only returns last available majors greater than running version
func (*Versions) MajorAvailable ¶
func (*Versions) MinorAvailable ¶
func (*Versions) MinorsGreaterThan ¶
func (*Versions) PatchAvailable ¶
func (*Versions) PatchesGreaterThan ¶
func (*Versions) SetRemoteVersions ¶
func (*Versions) SetRunningVersion ¶
func (*Versions) StringList ¶
Click to show internal directories.
Click to hide internal directories.