Documentation ¶
Index ¶
- func GetVersionFromPath(path string) string
- func ParseSource(source string) (string, string, error)
- type Address
- type Package
- func (r *Package) AddConstraints(constraint string)
- func (r *Package) BasePath() string
- func (r *Package) ChecksumURL(version string) string
- func (r *Package) DirPath(version string) string
- func (r *Package) FilePath(version string) string
- func (r *Package) FilePathWithSelectedVersion() string
- func (r *Package) Filename(version string) string
- func (r *Package) GenerateCandidates() error
- func (r *Package) GetReleases() error
- func (r *Package) GetRemoteChecksum(version string) (string, error)
- func (r *Package) GetSelectedVersion() string
- func (r *Package) HasVersion(version string) bool
- func (r *Package) IsLocal() bool
- func (r *Package) Newest() string
- func (r *Package) ReleasesURL() string
- func (r *Package) URL(version string) string
- func (r *Package) UpdateSelectedVersion(version string)
- type PackageType
- type Platform
- type Release
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetVersionFromPath ¶
func ParseSource ¶
ParseSource return a registry hostname and namespace if the source is an empty string or . the source is local to the filesystem, returns empty hostname and namespace if the source is not local we expect a delineation with a / between a registry hostname and a namespace
Types ¶
type Address ¶
func (Address) ProjectName ¶
type Package ¶
type Package struct { Type PackageType Address *Address Platform *Platform AvailableVersions versions.List VersionConstraints string CandidateVersions versions.List SelectedVersion string }
func GetPackage ¶
address -> hostname, namespace, name
func (*Package) AddConstraints ¶
func (*Package) ChecksumURL ¶
func (*Package) FilePathWithSelectedVersion ¶
func (*Package) GenerateCandidates ¶
func (*Package) GetReleases ¶
GetReleases returns the avilable releases/versions of the package
func (*Package) GetRemoteChecksum ¶
func (*Package) GetSelectedVersion ¶
func (*Package) HasVersion ¶
func (*Package) ReleasesURL ¶
func (*Package) UpdateSelectedVersion ¶
type PackageType ¶
type PackageType string
const ( PackageTypeProvider PackageType = "provider" PackageTypeModule PackageType = "module" )
Click to show internal directories.
Click to hide internal directories.