pkgmgr

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: MIT Imports: 17 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DPKGStatusNone dpkgStatusType = iota
	DPKGStatusFile
	DPKGStatusDirectory
	DPKGStatusMixed
)
View Source
const (
	RPMDBNone rpmDBType = iota
	RPMDBBerkley
	RPMDBNative
	RPMDBSqlLite
	RPMDBManifests
	RPMDBMixed
)

Variables

This section is empty.

Functions

func GetUniqueLatestUpdates

func GetUniqueLatestUpdates(updates types.UpdatePackages, cmp VersionComparer) (types.UpdatePackages, error)

Types

type PackageInfoReader

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

type PackageManager

type PackageManager interface {
	InstallUpdates(context.Context, *types.UpdateManifest) (*llb.State, error)
}

func GetPackageManager

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

type UpdateMap

type UpdateMap map[string]*UpdatePackageInfo

func GetValidatedUpdatesMap

func GetValidatedUpdatesMap(updates types.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