Documentation
¶
Overview ¶
Package deb builds a .deb from a directory and reads metadata back out of an existing one, all in-process: no dpkg, no external tooling. The ar container and gzip tarballs it writes are exactly what chisel's own reader consumes.
Doing this by hand is deliberate. chisel-proxy has to hold a .deb before chisel is asked anything, and chisel keeps its own deb code internal. A tool that only wants to know what a package holds should cut it with chisel.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Arches ¶ added in v0.5.0
func Arches() []string
Arches lists every Debian architecture chisel accepts, in the order ubuntu lists them. The slice is the caller's to keep.
Types ¶
type Defaults ¶
Defaults fill in control fields when a packed directory carries no DEBIAN/control of its own.
type Package ¶
type Package struct {
Name string
Version string
Arch string
Control string // full control stanza text
Files []string // absolute install paths in data.tar (e.g. /usr/bin/foo)
Data []byte // raw .deb bytes
SHA256 string // lowercase-hex digest of Data
Size int
}
Package is one .deb ready to be served: metadata, the install paths it carries, and the raw archive bytes.