pkgmgr

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 23 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DPKGStatusNone dpkgStatusType = iota
	DPKGStatusFile
	DPKGStatusDirectory
	DPKGStatusMixed

	DPKGStatusInvalid // must always be the last listed
	Debian            = "debian"
)
View Source
const (
	RPMDBNone rpmDBType = iota
	RPMDBBerkley
	RPMDBNative
	RPMDBSqlLite
	RPMDBManifests
	RPMDBMixed
	RPMDBInvalid // must be the last in the list

	RPMDBSize = RPMDBInvalid
)

Variables

This section is empty.

Functions

func GetPackageInfo added in v0.7.0

func GetPackageInfo(file string) (string, string, error)

func GetUniqueLatestUpdates

func GetUniqueLatestUpdates(updates unversioned.UpdatePackages, cmp VersionComparer, ignoreErrors bool) (unversioned.UpdatePackages, error)

Types

type PackageInfoReader

type PackageInfoReader interface {
	GetVersion(string) (string, error)
	GetName(string) (string, error)
}

type PackageManager

type PackageManager interface {
	InstallUpdates(context.Context, *unversioned.UpdateManifest, bool) (*llb.State, []string, error)
	GetPackageType() string
}

func GetPackageManager

func GetPackageManager(osType string, osVersion string, config *buildkit.Config, workingFolder string) (PackageManager, error)

type UpdateMap

type UpdateMap map[string]*UpdatePackageInfo

func GetValidatedUpdatesMap

func GetValidatedUpdatesMap(updates unversioned.UpdatePackages, cmp VersionComparer, reader PackageInfoReader, stagingPath string) (UpdateMap, error)

type UpdatePackageInfo

type UpdatePackageInfo struct {
	Filename string
	Version  string
}

type VersionComparer

type VersionComparer struct {
	IsValid  func(string) bool
	LessThan func(string, string) bool
}

Jump to

Keyboard shortcuts

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