debian

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

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

func NewIndex

func NewIndex(ctx context.Context, repository, release, component, arch string) (*Index, error)

func (*Index) Count

func (idx *Index) Count() int

func (*Index) GetPackageWithDependencies

func (idx *Index) GetPackageWithDependencies(ctx context.Context, existing map[string]Package, pv *PackageVersion) ([]Package, error)

func (*Index) Source

func (idx *Index) Source() string

type Package

type Package struct {
	Package      string
	Version      string
	Architecture string
	Depends      []string `delim:", "`
	Filename     string
	Sha256       string `control:"SHA256"`
}

func (*Package) String

func (p *Package) String() string

type PackageVersion

type PackageVersion struct {
	Names      []string
	Version    string
	Constraint string
}

func ParseVersion

func ParseVersion(s string) (*PackageVersion, error)

ParseVersion parses a debian version as used in the "Depends" section.

https://www.debian.org/doc/debian-policy/ch-relationships.html

func (*PackageVersion) Matches

func (pv *PackageVersion) Matches(s1 string) bool

Jump to

Keyboard shortcuts

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