pkgmgr

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DPKGStatusNone dpkgStatusType = iota
	DPKGStatusFile
	DPKGStatusDirectory
	DPKGStatusMixed
)

Variables

This section is empty.

Functions

func GetUniqueLatestUpdates added in v0.4.0

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

nolint: lll

Types

type PackageInfoReader added in v0.4.0

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

type PackageManager added in v0.4.0

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

func GetPackageManager added in v0.4.0

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

type UpdateMap added in v0.4.0

type UpdateMap map[string]*UpdatePackageInfo

func GetValidatedUpdatesMap added in v0.4.0

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

nolint: lll

type UpdatePackageInfo added in v0.4.0

type UpdatePackageInfo struct {
	Filename string
	Version  string
}

type VersionComparer added in v0.4.0

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