Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Package ¶
type Package struct {
Name string `ini:"pkgname"`
Version string `ini:"pkgver"`
Arch string `ini:"arch"`
Description string `ini:"pkgdesc"`
License string `ini:"license"`
Origin string `ini:"origin"`
Maintainer string `ini:"maintainer"`
URL string `ini:"url"`
Checksum []byte
Dependencies []string `ini:"depend,,allowshadow"`
Provides []string `ini:"provides,,allowshadow"`
InstallIf []string
Size uint64 `ini:"size"`
InstalledSize uint64
ProviderPriority uint64 `ini:"provider_priority"`
BuildTime time.Time
BuildDate int64 `ini:"builddate"`
RepoCommit string `ini:"commit"`
Replaces []string `ini:"replaces,,allowshadow"`
DataHash string `ini:"datahash"`
}
Package represents a single package with the information present in an APKINDEX.
func (*Package) ChecksumString ¶
ChecksumString returns a human-readable version of the control section checksum.
func (*Package) PackageName ¶
type PackageInfo ¶
type PackageInfo struct {
Name string `ini:"pkgname"`
Version string `ini:"pkgver"`
Arch string `ini:"arch"`
Description string `ini:"pkgdesc"`
License string `ini:"license"`
Origin string `ini:"origin"`
Maintainer string `ini:"maintainer"`
URL string `ini:"url"`
Dependencies []string `ini:"depend,,allowshadow"`
Provides []string `ini:"provides,,allowshadow"`
InstallIf []string `ini:"install_if,,allowshadow"`
Size uint64 `ini:"size"`
ProviderPriority uint64 `ini:"provider_priority"`
BuildDate int64 `ini:"builddate"`
RepoCommit string `ini:"commit"`
Replaces []string `ini:"replaces,,allowshadow"`
DataHash string `ini:"datahash"`
Triggers []string `ini:"triggers,,allowshadow"`
}
PackageInfo represents the information present in .PKGINFO.
func ParsePackageInfo ¶
func ParsePackageInfo(info io.Reader) (*PackageInfo, error)
ParsePackageInfo parses the given reader containing the contents of a .PKGINFO file and returns a PackageInfo struct.
Click to show internal directories.
Click to hide internal directories.