package
0.18.0
Repository: https://github.com/egibs/go-debian.git
Documentation: pkg.go.dev

# Functions

Given a Struct, convert that Struct back into a control.Paragraph.
No description provided by the author
Marshal is a one-off interface to serialize a single object to a writer.
No description provided by the author
Create a new Encoder, which is configured to write to the given `io.Writer`.
Create a new ParagraphReader from the given `io.Reader`, and `keyring`.
Given a bunch of DSC objects, sort the packages topologically by build order by looking at the relationship between the Build-Depends field.
Given a reader, parse out a list of BinaryIndex structs.
Given a bufio.Reader, consume the Reader, and return a Changes object for use.
Given a path on the filesystem, Parse the file off the disk and return a pointer to a brand new Changes struct, unless error is set to a value other than nil.
Given a bufio.Reader, consume the Reader, and return a Control object for use.
Given a path on the filesystem, Parse the file off the disk and return a pointer to a brand new Control struct, unless error is set to a value other than nil.
Given a bufio.Reader, consume the Reader, and return a DSC object for use.
Given a path on the filesystem, Parse the file off the disk and return a pointer to a brand new DSC struct, unless error is set to a value other than nil.
Given a reader, parse out a list of SourceIndex structs.
Given a struct (or list of structs), read the io.Reader RFC822-alike Debian control-file stream into the struct, unpacking keys into the struct as needed.
Unpack a Paragraph into a Struct, as if that data had been unpacked into that struct to begin with.

# Structs

BestChecksums can be included in a struct instead of e.g.
The BinaryIndex struct represents the exported APT Binary package index file, as seen on Debian (and Debian derived) mirrors, as well as the cached version in /var/lib/apt/lists/.
Encapsulation for a debian/control Binary control entry.
The Changes struct is the default encapsulation of the Debian .changes package filetype.This struct contains an anonymous member of type Paragraph, allowing you to use the standard .Values and .Order of the Paragraph type.
Encapsulation for a debian/control file, which is a series of RFC2822-like blocks, starting with a Source control paragraph, and then a series of Binary control paragraphs.
No description provided by the author
A DSC is the encapsulation of a Debian .dsc control file.
Encoder is a struct that allows for the streaming Encoding of data back out to an `io.Writer`.
A FileHash is an entry as found in the Files, Checksum-Sha1, and Checksum-Sha256 entry for the .dsc or .changes files.
No description provided by the author
No description provided by the author
A Paragraph is a block of RFC2822-like key value pairs.
Wrapper to allow iteration on a set of Paragraphs without consuming them all into memory at one time.
No description provided by the author
No description provided by the author
No description provided by the author
The SourceIndex struct represents the exported APT Source index file, as seen on Debian (and Debian derived) mirrors, as well as the cached version in /var/lib/apt/lists/.
Encapsulation for a debian/control Source entry.

# Interfaces

The Marshallable interface defines the interface that Marshal will use to do custom dehydration of the Struct back into the Debian 822 format.
The Unmarshallable interface defines the interface that Unmarshal will use to do custom unpacks into Structs.

# Type aliases

No description provided by the author