Documentation ¶
Index ¶
Constants ¶
View Source
const ( GzipID1 = 0x1f GzipID2 = 0x8b GzipDeflate = 8 )
Signature bytes for finding GZIP header
Variables ¶
This section is empty.
Functions ¶
func ReadGzipHeader ¶ added in v0.1.4
ReadGzipHeader reads the header of a gzip file if found.
Types ¶
type ApkFile ¶
ApkFile is an APK file information with the derived PullChecksum.
func (*ApkFile) ToIndexEntry ¶
ToIndexEntry converts an ApkPkg (Package) to an index record in APKINDEX.
type ApkIndex ¶
type ApkIndex struct {
Entries []*IndexEntry
}
ApkIndex is a list of IndexEntries of an APKINDEX file.
type IndexEntry ¶
type IndexEntry struct { PullChecksum string PackageName string PackageVersion string PackageArchitecture string PackageSize string PackageInstalledSize string PackageDescription string PackageUrl string PackageLicense string PackageOrigin string PackageMaintainer string BuildTimeStamp string GitCommitAport string PullDependencies string PackageProvides string }
IndexEntry is an APKINDEX entry, a record in a APKINDEX file.
func (*IndexEntry) String ¶
func (entry *IndexEntry) String() string
String converts an IndexEntry to a string
type PkgInfo ¶
type PkgInfo struct { PkgName string PkgVer string PkgDesc string PkgUrl string PkgBuildDate string PkgPackager string PkgSize string PkgArch string PkgOrigin string PkgCommit string PkgMaintainer string PkgLicense string PkgProvides []string PkgDepends []string PkgDataHash string }
PkgInfo is the package info struct for .PKGINFO information from APK files.
Click to show internal directories.
Click to hide internal directories.