version

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

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 NewVersions

func NewVersions(running string, remotes []string) (*Versions, error)

func (*Versions) Earliest

func (v *Versions) Earliest() *version.Version

func (*Versions) GetRunningVersion

func (v *Versions) GetRunningVersion() *version.Version

func (*Versions) GreaterThan

func (v *Versions) GreaterThan() *Versions

func (*Versions) LastMajorsGreaterThan

func (v *Versions) LastMajorsGreaterThan() *Versions

Only returns last available majors greater than running version

func (*Versions) Latest

func (v *Versions) Latest() *version.Version

func (*Versions) MajorAvailable

func (v *Versions) MajorAvailable() bool

func (*Versions) MinorAvailable

func (v *Versions) MinorAvailable() bool

func (*Versions) MinorsGreaterThan

func (v *Versions) MinorsGreaterThan() *Versions

func (*Versions) PatchAvailable

func (v *Versions) PatchAvailable() bool

func (*Versions) PatchesGreaterThan

func (v *Versions) PatchesGreaterThan() *Versions

func (*Versions) SetRemoteVersions

func (v *Versions) SetRemoteVersions(remotes []string) error

func (*Versions) SetRunningVersion

func (v *Versions) SetRunningVersion(ver string) error

func (*Versions) StringList

func (v *Versions) StringList() []string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL