deb

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Overview

auto-generated, DO NOT EDIT!

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareVersions

func CompareVersions(va, vb string) int

CompareVersions compare two version strings that follow the debian version policy and Returns:

-1 if a is smaller than b
 0 if a equals b
+1 if a is bigger than b

func Extract

func Extract(pkgReader io.Reader, options *ExtractOptions) (err error)

func InferArch

func InferArch() (string, error)

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.

func ValidateArch

func ValidateArch(debArch string) error

Types

type ExtractInfo

type ExtractInfo struct {
	Path     string
	Mode     uint
	Optional bool
	Context  any
}

type ExtractOptions

type ExtractOptions struct {
	Package   string
	TargetDir string
	Extract   map[string][]ExtractInfo
	// Create can optionally be set to control the creation of extracted entries.
	// extractInfos is set to the matching entries in Extract, and is nil in cases where
	// the created entry is implicit and unlisted (for example, parent directories).
	Create func(extractInfos []ExtractInfo, options *fsutil.CreateOptions) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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