Documentation ¶
Index ¶
- Constants
- Variables
- type Control
- type Package
- func (p *Package) AddControlFile(name string, r io.Reader, fi os.FileInfo) error
- func (p *Package) AddDir(path string, mode os.FileMode) error
- func (p *Package) AddFile(path string, r io.Reader, fi os.FileInfo) error
- func (p *Package) AddLink(dst, src string) error
- func (p *Package) RegisterConfFile(path string)
- func (p *Package) Write(w io.Writer) error
- type Version
Constants ¶
View Source
const ControlDescriptionWrap = 76
ControlDescriptionWrap is the control description text wrapping value.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Control ¶
type Control struct { Name string Version string Section string Priority string Architecture string Depends []string PreDepends []string Recommends []string Suggests []string Enhances []string Breaks []string Conflicts []string InstalledSize int64 Maintainer string Description string Homepage string }
Control is a Debian control.
type Package ¶
type Package struct { Name string Arch string Version *Version Control *Control // contains filtered or unexported fields }
Package is a Debian package.
func NewPackage ¶
NewPackage creates a new Debian package instance.
func (*Package) AddControlFile ¶
AddControlFile appends a new file to the internal control archive.
func (*Package) AddDir ¶
AddDir appends a new directory to the internal data archive.
func (*Package) AddFile ¶
AddFile appends a new file to the internal data archive.
func (*Package) AddLink ¶
AddLink appends a new symbolic link to the internal data archive.
func (*Package) RegisterConfFile ¶
RegisterConfFile registers a new configuration file path.
Click to show internal directories.
Click to hide internal directories.