origin

package
v0.0.0-...-8e866c8 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

func FindPackage(v string) (Package, error)

FindPackage returns installation package given version

func FindPackages

func FindPackages(vs []string) ([]Package, error)

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

func MustParseVersion(a string) *Version

MustParseVersion got panic if parse failure

func ParseVersion

func ParseVersion(v string) (*Version, error)

ParseVersion parses `x.x[.x][-yyy]` string

func (*Version) Compare

func (v *Version) Compare(a *Version) int

Compare compares given version

func (*Version) Equal

func (v *Version) Equal(a *Version) bool

Equal v == a

func (*Version) GreaterThan

func (v *Version) GreaterThan(a *Version) bool

GreaterThan v > a

func (*Version) GreaterThanEqualString

func (v *Version) GreaterThanEqualString(a string) bool

GreaterThanEqualString v >= a

func (*Version) GreaterThanString

func (v *Version) GreaterThanString(a string) bool

GreaterThanString v > a

func (*Version) LessThan

func (v *Version) LessThan(a *Version) bool

LessThan v < a

func (*Version) LessThanString

func (v *Version) LessThanString(a string) bool

LessThanString v < a

func (*Version) Major

func (v *Version) Major() int

Major returns major version

func (*Version) Minor

func (v *Version) Minor() int

Minor returns minor version

func (*Version) String

func (v *Version) String() string

String returns version string

Jump to

Keyboard shortcuts

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