archive

package
v0.0.0-...-918fe8e Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProFIPS        = "fips"
	ProFIPSUpdates = "fips-updates"
	ProApps        = "esm-apps"
	ProInfra       = "esm-infra"
)

Variables

View Source
var ErrCredentialsNotFound = errors.New("credentials not found")

Functions

func SetDebug

func SetDebug(debug bool)

Enable the delivery of debug messages to the logger. Only meaningful if a logger is also set.

func SetLogger

func SetLogger(logger log_Logger)

Specify the *log.Logger object where log messages should be sent to.

Types

type Archive

type Archive interface {
	Options() *Options
	Fetch(pkg string) (io.ReadCloser, *PackageInfo, error)
	Exists(pkg string) bool
	Info(pkg string) (*PackageInfo, error)
}

func Open

func Open(options *Options) (Archive, error)

type Options

type Options struct {
	Label      string
	Version    string
	Arch       string
	Suites     []string
	Components []string
	Pro        string
	CacheDir   string
	PubKeys    []*packet.PublicKey
}

type PackageInfo

type PackageInfo struct {
	Name    string
	Version string
	Arch    string
	SHA256  string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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