Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type DefaultRegistry ¶
type DefaultRegistry struct {
// contains filtered or unexported fields
}
var Registry *DefaultRegistry = NewDefaultRegistry()
func NewDefaultRegistry ¶
func NewDefaultRegistry() *DefaultRegistry
func (*DefaultRegistry) FindForVersion ¶
func (d *DefaultRegistry) FindForVersion(version string) VersionParser
type Major ¶
type Major struct {
// contains filtered or unexported fields
}
func (*Major) Distinction ¶
func (*Major) IsGreaterThan ¶
func (p *Major) IsGreaterThan(other VersionParser) (bool, error)
type MajorMinor ¶
type MajorMinor struct {
// contains filtered or unexported fields
}
func (*MajorMinor) Distinction ¶
func (p *MajorMinor) Distinction() string
func (*MajorMinor) IsGreaterThan ¶
func (p *MajorMinor) IsGreaterThan(other VersionParser) (bool, error)
func (*MajorMinor) String ¶
func (p *MajorMinor) String() string
func (*MajorMinor) Weight ¶
func (p *MajorMinor) Weight() int
type MajorMinorPatch ¶
type MajorMinorPatch struct {
// contains filtered or unexported fields
}
func (*MajorMinorPatch) Distinction ¶
func (p *MajorMinorPatch) Distinction() string
func (*MajorMinorPatch) IsGreaterThan ¶
func (p *MajorMinorPatch) IsGreaterThan(other VersionParser) (bool, error)
func (*MajorMinorPatch) String ¶
func (p *MajorMinorPatch) String() string
func (*MajorMinorPatch) Weight ¶
func (p *MajorMinorPatch) Weight() int
type NameDate ¶
type NameDate struct {
// contains filtered or unexported fields
}
func (*NameDate) Distinction ¶
func (*NameDate) IsGreaterThan ¶
func (p *NameDate) IsGreaterThan(other VersionParser) (bool, error)
type Static ¶
type Static struct {
// contains filtered or unexported fields
}
func (*Static) Distinction ¶
func (*Static) IsGreaterThan ¶
func (p *Static) IsGreaterThan(other VersionParser) (bool, error)
type Unknown ¶
type Unknown struct {
// contains filtered or unexported fields
}
func (*Unknown) Distinction ¶
func (*Unknown) IsGreaterThan ¶
func (p *Unknown) IsGreaterThan(other VersionParser) (bool, error)
type VersionParser ¶
type VersionParser interface { Distinction() string IsGreaterThan(other VersionParser) (bool, error) String() string Weight() int }
func FindForVersion ¶
func FindForVersion(version string) VersionParser
Click to show internal directories.
Click to hide internal directories.