Documentation ¶
Index ¶
Constants ¶
View Source
const ( PropertyMetadata = "alpine.metadata" PropertyBranch = "alpine.branch" PropertyRepository = "alpine.repository" PropertyArchitecture = "alpine.architecture" SettingKeyPrivate = "alpine.key.private" SettingKeyPublic = "alpine.key.public" RepositoryPackage = "_alpine" RepositoryVersion = "_repository" NoArch = "noarch" )
Variables ¶
View Source
var ( ErrMissingPKGINFOFile = util.NewInvalidArgumentErrorf("PKGINFO file is missing") ErrInvalidName = util.NewInvalidArgumentErrorf("package name is invalid") ErrInvalidVersion = util.NewInvalidArgumentErrorf("package version is invalid") )
Functions ¶
This section is empty.
Types ¶
type FileMetadata ¶
type FileMetadata struct { Checksum string `json:"checksum"` Packager string `json:"packager,omitempty"` BuildDate int64 `json:"build_date,omitempty"` Size int64 `json:"size,omitempty"` Architecture string `json:"architecture,omitempty"` Origin string `json:"origin,omitempty"` CommitHash string `json:"commit_hash,omitempty"` InstallIf string `json:"install_if,omitempty"` Provides []string `json:"provides,omitempty"` Dependencies []string `json:"dependencies,omitempty"` ProviderPriority int64 `json:"provider_priority,omitempty"` }
type Package ¶
type Package struct { Name string Version string VersionMetadata VersionMetadata FileMetadata FileMetadata }
Package represents an Alpine package
func ParsePackage ¶
ParsePackage parses the Alpine package file
Click to show internal directories.
Click to hide internal directories.