Documentation ¶
Index ¶
Constants ¶
View Source
const ( RepositoryPublicKey = "repository.key" RepositoryPrivateKey = "private.key" IndexFilename = "APKINDEX.tar.gz" )
View Source
const Name = "apk"
Variables ¶
Functions ¶
Types ¶
type FileMetadata ¶
type FileMetadata struct { Checksum string `json:"checksum"` Packager string `json:"packager,omitempty"` BuildDate int64 `json:"buildDate,omitempty"` Size int64 `json:"size,omitempty"` Architecture string `json:"architecture,omitempty"` Origin string `json:"origin,omitempty"` CommitHash string `json:"commitHash,omitempty"` InstallIf string `json:"installIf,omitempty"` Provides []string `json:"provides,omitempty"` Dependencies []string `json:"dependencies,omitempty"` }
type Package ¶
type Package struct { PkgName string `json:"name"` PkgVersion string `json:"version"` VersionMetadata VersionMetadata `json:"versionMetadata"` FileMetadata FileMetadata `json:"fileMetadata"` PkgSize int64 `json:"size"` PkgDigest string `json:"digest"` Branch string `json:"branch"` Repo string `json:"repo"` FilePath string `json:"filePath"` // contains filtered or unexported fields }
Package represents an Alpine package
func NewPackage ¶
NewPackage parses the Alpine package file
func ParsePackageInfo ¶
ParsePackageInfo parses a PKGINFO file to retrieve the metadata of an Alpine package
Click to show internal directories.
Click to hide internal directories.