pkg

package
v0.0.0-...-ce9a8f4 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DebianSourceTypeDeb    = "deb"
	DebianSourceTypeDebSrc = "deb-src"
)
View Source
const (
	ArchAMD64 = "amd64"
	ArchI386  = "i386"
)

Variables

This section is empty.

Functions

func SetArch

func SetArch(arch Arch)

Types

type Arch

type Arch string

type DebianSource

type DebianSource struct {
	Type      DebianSourceType
	URL       string
	Suite     string
	Component string
}

func (*DebianSource) DirectorySignedURL

func (s *DebianSource) DirectorySignedURL() string

DirectorySignedURL is the URL for the release metadata and directories

func (*DebianSource) DirectoryURL

func (s *DebianSource) DirectoryURL() string

DirectoryURL is the URL for the release metadata and directories

func (*DebianSource) ResourceURL

func (s *DebianSource) ResourceURL() string

type DebianSourceList

type DebianSourceList []DebianSource

func LoadDebianSourceList

func LoadDebianSourceList() (DebianSourceList, error)

type DebianSourceType

type DebianSourceType string

type Package

type Package struct {
	common.Metadata
	Filename string
	Size     int
	Arch     string
}

Package is a deb package

func Load

func Load(pathOrUrl string) ([]Package, error)

Load loads packages from a path or URL

Jump to

Keyboard shortcuts

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