Documentation ¶
Index ¶
Constants ¶
View Source
const ( RepositoryPublicKey = "repository.key" RepositoryPrivateKey = "private.key" )
View Source
const Name = "deb"
Variables ¶
View Source
var ( ErrMissingControlFile = errors.New("control file is missing") ErrUnsupportedCompression = errors.New("unsupported compression algorithm") ErrInvalidName = errors.New("package name is invalid") ErrInvalidVersion = errors.New("package version is invalid") ErrInvalidArchitecture = errors.New("package architecture is invalid") )
Functions ¶
Types ¶
type Package ¶
type Package struct { PkgName string `json:"name"` PkgVersion string `json:"version"` PkgSize int64 `json:"size"` Architecture string `json:"architecture"` Control string `json:"control"` Metadata *Metadata `json:"metadata"` Component string `json:"component"` Distribution string `json:"distribution"` FilePath string `json:"filePath"` MD5 string `json:"md5"` SHA1 string `json:"sha1"` SHA256 string `json:"sha256"` SHA512 string `json:"sha512"` // contains filtered or unexported fields }
func NewPackage ¶
NewPackage parses the Debian package file https://manpages.debian.org/bullseye/dpkg-dev/deb.5.en.html
func ParseControlFile ¶
ParseControlFile parses a Debian control file to retrieve the metadata
Click to show internal directories.
Click to hide internal directories.