Documentation
¶
Index ¶
- func AddContentFiles(arw *ar.Writer, debSpec *DebSpec, tmpDir string, verbose bool) error
- func AddControlFiles(arw *ar.Writer, debSpec *DebSpec, tmpDir string, verbose bool) error
- func NewDirCache() *dirCache
- func NewDirFileInfo(name string) *dirFileInfo
- type DebControl
- type DebSpec
- type FileEntry
- type Params
- type Symlink
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddContentFiles ¶
func AddControlFiles ¶
func NewDirCache ¶
func NewDirCache() *dirCache
func NewDirFileInfo ¶
func NewDirFileInfo(name string) *dirFileInfo
Types ¶
type DebControl ¶
type DebControl struct {
PkgName string `cfg-attr:"pkg-name"`
Maintainer string `cfg-attr:"maintainer"`
Desc string `cfg-attr:"description"`
Attrs map[string]string `cfg-attr:"other-attrs"`
Arch string
Version string
}
DebControl specifies the attributes of a deb control file.
type DebSpec ¶
type DebSpec struct {
DebCtrl *DebControl `cfg-attr:"control"`
Debian []*FileEntry `cfg-attr:"debian"`
Content []*FileEntry `cfg-attr:"content"`
Link []*Symlink `cfg-attr:"link"`
}
DebSpec specifies the whole deb structure: control files and data files.
type FileEntry ¶
type FileEntry struct {
Path string `cfg-attr:"path"` // input file path
DebPath string `cfg-attr:"deb-path"` // path in deb file
FileInfo os.FileInfo
Md5sum string
}
FileEntry specifies a input file and it's path in the debian package.
Click to show internal directories.
Click to hide internal directories.