langmgr

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUniqueLatestUpdates

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

Types

type LangManager

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

func GetLanguageManagers

func GetLanguageManagers(config *buildkit.Config, workingFolder string, manifest *unversioned.UpdateManifest, toolchainPatchLevel, goVCSURL, imageRef string) []LangManager

GetLanguageManagers returns a list of language managers that have relevant packages to process. Uses a switch-based approach to determine which managers to include based on package types.

type PackageInfoReader

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

type UpdateMap

type UpdateMap map[string]*UpdatePackageInfo

func GetValidatedUpdatesMap

func GetValidatedUpdatesMap(
	updates unversioned.LangUpdatePackages,
	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