Versions in this module Expand all Collapse all v0 v0.18.0 Nov 27, 2024 Changes in this version + func Marshal(writer io.Writer, data interface{}) error + func Unmarshal(data interface{}, reader io.Reader) error + func UnpackFromParagraph(para Paragraph, incoming interface{}) error + type BestChecksums struct + ChecksumsSha256 []SHA256FileHash + ChecksumsSha512 []SHA256FileHash + func (b *BestChecksums) Checksums() []FileHash + type BinaryIndex struct + Architecture dependency.Arch + DebugBuildIds []string + Description string + DescriptionMD5 string + Filename string + Homepage string + InstalledSize int + MD5sum string + Maintainer string + MultiArch string + Package string + Priority string + SHA1 string + SHA256 string + Section string + Size int + Source string + Tags []string + Version version.Version + func ParseBinaryIndex(reader *bufio.Reader) (ret []BinaryIndex, err error) + func (index *BinaryIndex) GetBreaks() dependency.Dependency + func (index *BinaryIndex) GetBuiltUsing() dependency.Dependency + func (index *BinaryIndex) GetConflicts() dependency.Dependency + func (index *BinaryIndex) GetDepends() dependency.Dependency + func (index *BinaryIndex) GetPreDepends() dependency.Dependency + func (index *BinaryIndex) GetReplaces() dependency.Dependency + func (index *BinaryIndex) GetSuggests() dependency.Dependency + func (index *BinaryIndex) SourcePackage() string + type BinaryParagraph struct + Architectures []dependency.Arch + Breaks dependency.Dependency + BuiltUsing dependency.Dependency + Conffiles []MD5FileHash + Conflicts dependency.Dependency + Depends dependency.Dependency + Description string + Enhances dependency.Dependency + Essential bool + Package string + PreDepends dependency.Dependency + Priority string + Recommends dependency.Dependency + Replaces dependency.Dependency + Section string + Suggests dependency.Dependency + type Changes struct + Architectures []dependency.Arch + Binaries []string + ChangedBy string + Changes string + ChecksumsSha1 []SHA1FileHash + ChecksumsSha256 []SHA256FileHash + Closes []string + Distribution string + Filename string + Files []FileListChangesFileHash + Format string + Maintainer string + Origin string + Source string + Urgency string + Version version.Version + func ParseChanges(reader *bufio.Reader, path string) (*Changes, error) + func ParseChangesFile(path string) (ret *Changes, err error) + func (changes *Changes) AbsFiles() []FileListChangesFileHash + func (changes *Changes) Copy(dest string) error + func (changes *Changes) GetDSC() (*DSC, error) + func (changes *Changes) Move(dest string) error + func (changes *Changes) Remove() error + type Control struct + Binaries []BinaryParagraph + Filename string + Source SourceParagraph + func ParseControl(reader *bufio.Reader, path string) (*Control, error) + func ParseControlFile(path string) (ret *Control, err error) + type DSC struct + Architectures []dependency.Arch + Binaries []string + BuildDepends dependency.Dependency + BuildDependsArch dependency.Dependency + BuildDependsIndep dependency.Dependency + ChecksumsSha1 []SHA1FileHash + ChecksumsSha256 []SHA256FileHash + Filename string + Files []MD5FileHash + Format string + Homepage string + Maintainer string + Origin string + Source string + StandardsVersion string + Uploaders []string + Version version.Version + func OrderDSCForBuild(dscs []DSC, arch dependency.Arch) ([]DSC, error) + func ParseDsc(reader *bufio.Reader, path string) (*DSC, error) + func ParseDscFile(path string) (ret *DSC, err error) + func (d *DSC) AbsFiles() []MD5FileHash + func (d *DSC) Copy(dest string) error + func (d *DSC) DebianSource() (string, error) + func (d *DSC) HasArchAll() bool + func (d *DSC) Maintainers() []string + func (d *DSC) Move(dest string) error + func (d *DSC) Remove() error + type Decoder struct + func NewDecoder(reader io.Reader, certs []*x509.Certificate) (*Decoder, error) + func (d *Decoder) Decode(into interface{}) error + func (d *Decoder) Signer() *x509.Certificate + type Encoder struct + func NewEncoder(writer io.Writer) (*Encoder, error) + func (e *Encoder) Encode(incoming interface{}) error + type FileHash struct + Algorithm string + ByHash string + Filename string + Hash string + Size int64 + func FileHashFromHasher(path string, hasher hashio.Hasher) FileHash + func (c *FileHash) ByHashPath(path string) string + func (c *FileHash) Verifier() (io.WriteCloser, error) + type FileHashes []FileHash + type FileListChangesFileHash struct + Component string + Priority string + func (c *FileListChangesFileHash) UnmarshalControl(data string) error + type MD5FileHash struct + func (c *MD5FileHash) UnmarshalControl(data string) error + func (c MD5FileHash) MarshalControl() (string, error) + type Marshallable interface + MarshalControl func() (string, error) + type Paragraph struct + Order []string + Values map[string]string + func ConvertToParagraph(incoming interface{}) (*Paragraph, error) + func (p *Paragraph) Set(key, value string) + func (p *Paragraph) Update(other Paragraph) Paragraph + func (p *Paragraph) WriteTo(out io.Writer) error + type ParagraphReader struct + func NewParagraphReader(reader io.Reader, certs []*x509.Certificate) (*ParagraphReader, error) + func (p *ParagraphReader) All() ([]Paragraph, error) + func (p *ParagraphReader) Next() (*Paragraph, error) + func (p *ParagraphReader) Signer() *x509.Certificate + type SHA1FileHash struct + func (c *SHA1FileHash) UnmarshalControl(data string) error + func (c SHA1FileHash) MarshalControl() (string, error) + type SHA256FileHash struct + func (c *SHA256FileHash) UnmarshalControl(data string) error + func (c SHA256FileHash) MarshalControl() (string, error) + type SHA512FileHash struct + func (c *SHA512FileHash) UnmarshalControl(data string) error + func (c SHA512FileHash) MarshalControl() (string, error) + type SourceIndex struct + Architecture []dependency.Arch + Binaries []string + ChecksumsSha1 []SHA1FileHash + ChecksumsSha256 []SHA256FileHash + Directory string + Files []MD5FileHash + Format string + Homepage string + Maintainer string + Package string + Priority string + Section string + StandardsVersion string + Uploaders string + VcsBrowser string + VcsBzr string + VcsGit string + VcsSvn string + Version version.Version + func ParseSourceIndex(reader *bufio.Reader) (ret []SourceIndex, err error) + func (index *SourceIndex) GetBuildDepends() dependency.Dependency + func (index *SourceIndex) GetBuildDependsArch() dependency.Dependency + func (index *SourceIndex) GetBuildDependsIndep() dependency.Dependency + type SourceParagraph struct + BuildConflicts dependency.Dependency + BuildConflictsIndep dependency.Dependency + BuildDepends dependency.Dependency + BuildDependsIndep dependency.Dependency + Description string + Maintainer string + Priority string + Section string + Source string + Uploaders []string + func (s *SourceParagraph) Maintainers() []string + type Unmarshallable interface + UnmarshalControl func(data string) error