deb

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: AGPL-3.0 Imports: 17 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
}

type ExtractOptions

type ExtractOptions struct {
	Package   string
	TargetDir string
	Extract   map[string][]ExtractInfo
	Globbed   map[string][]string
	Create    func(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