deb

package
v0.0.0-...-8910f1f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2014 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrControl = errors.New("archive/deb: empty control file")
	ErrData    = errors.New("archive/deb: empty data file")
	ErrFormat  = errors.New("archive/deb: data format not implemented")
	ErrField   = errors.New("archive/deb: invalid control field")
)

Functions

func NewTarBz2Reader

func NewTarBz2Reader(r io.Reader) *tar.Reader

func NewTarGzReader

func NewTarGzReader(r io.Reader) (*tar.Reader, error)

Types

type Package

type Package struct {
	Path         string            // The path to the .deb file.
	Name         string            // The base filename.
	Size         int64             // The size of the package in bytes.
	Files        []string          // The list of installable files.
	Fields       map[string]string // The control file as key/value pairs.
	ControlData  string            // The ./control file data.
	PreInstData  string            // The ./preinst file data.
	PreRmData    string            // The ./prerm file data.
	PostInstData string            // The ./postinst file data.
	PostRmData   string            // The ./postrm file data.
}

A Package represents a Debian package.

func NewPackage

func NewPackage(path string) (*Package, error)

NewPackage creates a new Package from the file specified by path.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL