Versions in this module Expand all Collapse all v0 v0.2.2 Mar 13, 2022 v0.2.1 Mar 13, 2022 v0.2.0 Mar 13, 2022 Changes in this version + const APK + var ErrPackage = errors.New("unsupported package type") + func Arch(a int) string type Metadata + DataHash string v0.1.0 Feb 1, 2022 Changes in this version + const Arch32 + const Arch64 + const Bash + const Changelog + const DEB + const DefaultLicense + const DefaultOS + const DefaultPriority + const DefaultSection + const DefaultShebang + const DefaultVersion + const EnvArchive + const EnvBash + const EnvMaintainerMail + const EnvMaintainerName + const EnvPerl + const EnvPwsh + const EnvPython + const EnvShell + const License + const Perl + const Powershell + const Python + const RPM + const Readme + const Root + const Shebang + const Shell + func GetLicense(name string, meta Metadata) (string, error) + func Hostname() string + type Change struct + Desc string + Maintainer Maintainer + Title string + Version string + When time.Time + type Condition int + const Eq + const Ge + const Gt + const Le + const Lt + type Dependency struct + Cond Condition + Name string + Version string + func ParseDependency(str string) (Dependency, error) + func (d *Dependency) Set(str string) error + func (d Dependency) String() string + type Maintainer struct + Email string + Name string + func (m Maintainer) IsZero() bool + func (m Maintainer) String() string + type Metadata struct + Arch int + Breaks []Dependency + Changes []Change + Compiler string + Conflicts []Dependency + Date time.Time + Depends []Dependency + Desc string + Essential bool + Home string + License string + Maintainer Maintainer + OS string + Obsoletes []Dependency + Package string + PostInst Script + PostRem Script + PreInst Script + PreRem Script + Priority string + Provides []Dependency + Recommands []Dependency + Release string + Replaces []Dependency + Requires []Dependency + Resources []Resource + Section string + Size int64 + Suggests []Dependency + Summary string + Vendor string + Version string + func Load(r io.Reader, kind string) (Metadata, error) + func (m *Metadata) HasChangelog() bool + func (m *Metadata) HasLicense() bool + func (m *Metadata) Update() error + func (m Metadata) PackageName() string + type Resource struct + Archive string + Compress bool + Digest string + File string + Inline bool + Lang string + ModTime time.Time + Perm int + Size int64 + func (r *Resource) Update() error + func (r Resource) IsConfig() bool + func (r Resource) IsDoc() bool + func (r Resource) IsLicense() bool + func (r Resource) IsReadme() bool + func (r Resource) IsRegular() bool + func (r Resource) Path() string + type Script struct + Code string + Digest string + Program string + func (s *Script) Update() error