Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPackageSize ¶
func RemovePackage ¶
Types ¶
type Dependencies ¶
type PackageDefinition ¶
type PackageDefinition struct {
Package Package `toml:"package"`
}
func ParsePackage ¶
func ParsePackage(packageDefinition []byte) (PackageDefinition, error)
Convert data to pkg definition
type PkgData ¶
type PkgData struct { PkgDef PackageDefinition VerData VersionMetadata PlfData PlatformData TarURL string RepoURL string Version string Repository string BinSize int64 }
for use with GetPackage(). Contains all data needed to install a package.
func GetPackage ¶
One function to get all information needed to install a package. Version should be "latest" for latest version. binSize is the size of the tarball in bytes. Probaly going to clean this up and seperate it in seperate functions later.
func NewPkgData ¶
func NewPkgData(PkgDef PackageDefinition, VerData VersionMetadata, PlfData PlatformData, Repository string, Version string, TarURL string, RepoURL string, BinSize int64) *PkgData
func (*PkgData) HandleScript ¶
type PlatformData ¶
type PlatformData struct {
Checksum string `toml:"checksum"`
}
type VersionMetadata ¶
type VersionMetadata struct { Url string `toml:"url"` Dependencies Dependencies `toml:"dependencies"` SupportsRosetta bool `toml:"supportsRosetta"` Intel PlatformData `toml:"intel"` Silicon PlatformData `toml:"silicon"` }
func ParseVersion ¶
func ParseVersion(versionMetadata []byte) (VersionMetadata, error)
Convert data to version metadata
Click to show internal directories.
Click to hide internal directories.