Documentation ¶
Index ¶
- func GetVersionFromPath(path string) string
- func ParseSource(source string) (string, string, error)
- type Address
- type Asset
- type AssetState
- type Image
- type Images
- 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) ExecPath() string
- func (r *Package) FilePath(version string) string
- func (r *Package) FilePathWithSelectedVersion() string
- func (r *Package) Filename() string
- func (r *Package) GenerateCandidates() error
- func (r *Package) GetRawRefWithVersion(version string) string
- func (r *Package) GetRef() string
- func (r *Package) GetReleases(ctx context.Context) (Releases, error)
- func (r *Package) GetRemoteChecksum(ctx context.Context, version string) (string, error)
- func (r *Package) GetSelectedVersion() string
- func (r *Package) GetVersionRef() 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 Platform
- type Release
- type Releases
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 Asset ¶
type Asset struct { Name string `json:"name"` ContentType string `json:"content_type"` State AssetState `json:"state"` BrowserDownloadURL string `json:"browser_download_url"` }
type Package ¶
type Package struct { Address *Address Platform *Platform AvailableVersions versions.List VersionConstraints string CandidateVersions versions.List SelectedVersion string }
func GetPackage ¶
address -> hostname, namespace, name
func GetPackageFromRef ¶
func (*Package) AddConstraints ¶
func (*Package) ChecksumURL ¶
func (*Package) FilePathWithSelectedVersion ¶
func (*Package) GenerateCandidates ¶
func (*Package) GetRawRefWithVersion ¶
func (*Package) GetReleases ¶
GetReleases returns the avilable releases/versions of the package
func (*Package) GetRemoteChecksum ¶
func (*Package) GetSelectedVersion ¶
func (*Package) GetVersionRef ¶
func (*Package) HasVersion ¶
func (*Package) ReleasesURL ¶
func (*Package) UpdateSelectedVersion ¶
Click to show internal directories.
Click to hide internal directories.