apt

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(ctx context.Context, c *Config) error

Types

type CompressionAlgo added in v0.3.0

type CompressionAlgo uint8
const (
	NoCompression CompressionAlgo = 1 << iota
	GZIP
	BZIP2
	XZ
	LZMA
	LZ4
	ZSTD
)

type Config

type Config struct {
	Source     *source.Source
	Version    string
	Prerelease bool
	Target     target.Target
	PGPKey     *pgp.PrivateKey
	Compress   CompressionAlgo
}

type Package

type Package struct {
	Package       string
	Version       string
	Architecture  string
	Maintainer    string
	InstalledSize int    `deb:"Installed-Size"`
	PreDepends    string `deb:"Pre-Depends"`
	Depends       string
	Recommends    string
	Conflicts     string
	Replaces      string
	Provides      string
	Priority      string
	Section       string
	Filename      string
	Size          int
	MD5sum        [16]byte
	SHA1          [20]byte
	SHA256        [32]byte
	Homepage      string
	Description   string
}

type Release

type Release struct {
	Origin       string
	Label        string
	Archive      string
	Suite        string
	Architecture string
	Component    string
	Description  string
}

type Releases

type Releases struct {
	Origin        string
	Label         string
	Suite         string
	Codename      string
	Date          time.Time
	Architectures string
	Components    string
	Description   string
	MD5Sum        string
	SHA1          string
	SHA256        string
	SHA512        string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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