dpkg

package module
v0.0.0-...-3bb47bf Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseLine

func ParseLine(fullline string) (string, string)

Types

type Package

type Package struct {
	Package       string `json:"package"`
	Status        string `json:"status"`
	Priority      string `json:"priority"`
	Architecture  string `json:"architecture"`
	MultiArch     string `json:"multi_arch"`
	Maintainer    string `json:"maintainer"`
	Version       string `json:"version"`
	Section       string `json:"section"`
	InstalledSize int64  `json:"installed_size"`
	Depends       string `json:"depends"`
	PreDepends    string `json:"pre_depends"`
	Description   string `json:"description"`
	Source        string `json:"source"`
	Homepage      string `json:"homepage"`

	Raw map[string]string `json:"raw"`
}

Package control

func Parse

func Parse(r io.Reader) ([]*Package, error)

Parse package info

type TarReader

type TarReader struct {
	// contains filtered or unexported fields
}

TarReader implements tar.reader

func NewReader

func NewReader(r io.Reader) (control, data *TarReader, err error)

NewReader return control and data

func NewTarReader

func NewTarReader(name string, r io.Reader) (*TarReader, error)

NewTarReader create tar reader from stream, support tar.gz tar.xz tar.lz

func (*TarReader) Next

func (tr *TarReader) Next() (*tar.Header, error)

Next like tar next

func (*TarReader) Read

func (tr *TarReader) Read(b []byte) (int, error)

Read like tar Read

Jump to

Keyboard shortcuts

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