Versions in this module Expand all Collapse all v0 v0.6.8 Nov 20, 2025 Changes in this version + func ClearPackagers() + func Enumerate() []string + func PrepareForPackager(info *Info, packager string) (err error) + func RegisterPackager(format string, p Packager) + func Validate(info *Info) (err error) + type APK struct + Arch string + Scripts APKScripts + Signature APKSignature + type APKScripts struct + PostUpgrade string + PreUpgrade string + type APKSignature struct + KeyName string + type ArchLinux struct + Arch string + Packager string + Pkgbase string + Scripts ArchLinuxScripts + type ArchLinuxScripts struct + PostUpgrade string + PreUpgrade string + type Config struct + Overrides map[string]*Overridables + func Parse(in io.Reader) (config Config, err error) + func ParseFile(path string) (config Config, err error) + func ParseFileWithEnvMapping(path string, mapping func(string) string) (config Config, err error) + func ParseWithEnvMapping(in io.Reader, mapping func(string) string) (config Config, err error) + func (c *Config) Get(format string) (info *Info, err error) + func (c *Config) Validate() error + type Deb struct + Arch string + Breaks []string + Compression string + Fields map[string]string + Predepends []string + Scripts DebScripts + Signature DebSignature + Triggers DebTriggers + type DebScripts struct + Config string + Rules string + Templates string + type DebSignature struct + Method string + Signer string + Type string + type DebTriggers struct + Activate []string + ActivateAwait []string + ActivateNoAwait []string + Interest []string + InterestAwait []string + InterestNoAwait []string + type ErrFieldEmpty struct + func (e ErrFieldEmpty) Error() string + type ErrNoPackager struct + func (e ErrNoPackager) Error() string + type ErrSigningFailure struct + Err error + func (s *ErrSigningFailure) Error() string + func (s *ErrSigningFailure) Unwarp() error + type IPK struct + ABIVersion string + Alternatives []IPKAlternative + Arch string + AutoInstalled bool + Essential bool + Fields map[string]string + Predepends []string + Tags []string + type IPKAlternative struct + LinkName string + Priority int + Target string + type Info struct + Arch string + Changelog string + Description string + DisableGlobbing bool + Epoch string + Homepage string + License string + MTime time.Time + Maintainer string + Name string + Platform string + Prerelease string + Priority string + Release string + Section string + Target string + Vendor string + Version string + VersionMetadata string + VersionSchema string + func WithDefaults(info *Info) *Info + func (i *Info) GetChangeLog() (log *chglog.PackageChangeLog, err error) + func (i *Info) Validate() error + type Overridables struct + APK APK + ArchLinux ArchLinux + Conflicts []string + Contents files.Contents + Deb Deb + Depends []string + IPK IPK + Provides []string + RPM RPM + Recommends []string + Replaces []string + Scripts Scripts + Suggests []string + Umask os.FileMode + type PackageSignature struct + KeyFile string + KeyID *string + KeyPassphrase string + SignFn func(data io.Reader) ([]byte, error) + type Packager interface + ConventionalFileName func(info *Info) string + Package func(info *Info, w io.Writer) error + func Get(format string) (Packager, error) + type PackagerWithExtension interface + ConventionalExtension func() string + type RPM struct + Arch string + BuildHost string + Compression string + Group string + Packager string + Prefixes []string + Scripts RPMScripts + Signature RPMSignature + Summary string + type RPMScripts struct + PostTrans string + PreTrans string + Verify string + type RPMSignature struct + type Scripts struct + PostInstall string + PostRemove string + PreInstall string + PreRemove string