Versions in this module Expand all Collapse all v0 v0.1.0 Dec 16, 2020 Changes in this version + type Dependency struct + func (dep *Dependency) DebFormat() string + func (dep *Dependency) RpmFormat() string + func (dep *Dependency) UnmarshalYAML(value *yaml.Node) error + type Package struct + Dependencies []Dependency + Dirs []PackageDir + Files map[string][]PackageFile + Meta PackageMeta + PostIn []string + PostUn []string + PreIn []string + PreUn []string + func LoadPkgInfo(filepath string, srcHome string) (*Package, error) + func NewPackage(meta PackageMeta, srcHome string) *Package + func (pkg *Package) AddDirectory(pkgDir PackageDir) + func (pkg *Package) AddFile(fileType string, pkgFile PackageFile) error + func (pkg *Package) AppendPostIn(script string) + func (pkg *Package) AppendPostUn(script string) + func (pkg *Package) AppendPreIn(script string) + func (pkg *Package) AppendPreUn(script string) + func (pkg *Package) PostInScript() string + func (pkg *Package) PostUnScript() string + func (pkg *Package) PreInScript() string + func (pkg *Package) PreUnScript() string + type PackageDir struct + Dest string + Group string + Mode uint + Owner string + type PackageFile struct + Body string + Dest string + Group string + MTime time.Time + Mode uint + Owner string + Src string + func (file *PackageFile) FileData() []byte + func (file *PackageFile) FileMTime() time.Time + func (file *PackageFile) FileMode() uint + type PackageMeta struct + Arch string + Description string + License string + Maintainer string + Name string + OS string + Release string + Summary string + URL string + Vendor string + Version string + func (meta *PackageMeta) BuildTime() time.Time + func (meta *PackageMeta) UpdateBuildTime(buildTime time.Time)