Documentation
¶
Index ¶
- func KnownInstallablePythons() []string
- func NewPythonPackage(rawurl string) *pythonPackage
- type Package
- type PackageType
- type SortablePackages
- type Version
- func (v *Version) Compare(a *Version) int
- func (v *Version) Equal(a *Version) bool
- func (v *Version) GreaterThan(a *Version) bool
- func (v *Version) GreaterThanEqualString(a string) bool
- func (v *Version) GreaterThanString(a string) bool
- func (v *Version) LessThan(a *Version) bool
- func (v *Version) LessThanString(a string) bool
- func (v *Version) Major() int
- func (v *Version) Minor() int
- func (v *Version) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KnownInstallablePythons ¶
func KnownInstallablePythons() []string
KnownInstallablePythons returns list all known installable pythons
func NewPythonPackage ¶
func NewPythonPackage(rawurl string) *pythonPackage
Types ¶
type Package ¶
type Package interface { Type() PackageType URL() *url.URL Name() string Filename() string BuildDir() string InstallDir() string Version() *Version }
Package installation interface
func FindPackage ¶
FindPackage returns installation package given version
func FindPackages ¶
FindPackages returns installation packages given versions
type PackageType ¶
type PackageType string
PackageType type
const (
PackageTypePython PackageType = "python"
)
type SortablePackages ¶
type SortablePackages []Package
SortablePackages implements sort interface
func (SortablePackages) Len ¶
func (p SortablePackages) Len() int
func (SortablePackages) Less ¶
func (p SortablePackages) Less(i, j int) bool
func (SortablePackages) Swap ¶
func (p SortablePackages) Swap(i, j int)
type Version ¶
type Version struct {
// contains filtered or unexported fields
}
Version represents software version
func MustParseVersion ¶
MustParseVersion got panic if parse failure
func ParseVersion ¶
ParseVersion parses `x.x[.x][-yyy]` string
func (*Version) GreaterThanEqualString ¶
GreaterThanEqualString v >= a
func (*Version) GreaterThanString ¶
GreaterThanString v > a
func (*Version) LessThanString ¶
LessThanString v < a
Click to show internal directories.
Click to hide internal directories.