inst

package
v0.6.25 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Builtins map[string]BuiltinComponent = map[string]BuiltinComponent{
	"kmdo": {
		Name:      "kmdo",
		BinPath:   "bin/kmdo",
		Installer: installer.KmdoInstaller,
	},
	"kmpkg": {
		Name:      "kmpkg",
		BinPath:   "bin/kmpkg",
		Installer: installer.KmpkgInstaller,
	},
	"kmup": {
		Name:      "kmup",
		BinPath:   "bin/kmup",
		Installer: installer.KmupInstaller,
	},
	"kmcmake": {
		Name:      "kmcmake",
		BinPath:   "",
		Installer: installer.KmcmakeInstaller,
	},
	"kmpkgtool": {
		Name:      "kmpkgtool",
		BinPath:   "",
		Installer: installer.KmpkgToolInstaller,
	},
	"cmake": {
		Name:      "cmake",
		BinPath:   "",
		Installer: installer.CmakeInstaller,
	},
}
View Source
var DownloadComponenet map[string]bool = make(map[string]bool)
View Source
var InstalledComponenet map[string]bool = make(map[string]bool)
View Source
var SupportedFormats = []string{".tar.gz"}

Functions

func CheckCacheFilePath

func CheckCacheFilePath(a *rel.MirrorAsset) (bool, error)

func DownloadAndCacheFile

func DownloadAndCacheFile(a *rel.MirrorAsset) (string, error)

func GetInstaller

func GetInstaller(c string, archive, dest string) (string, pipeline.Piper)

func InstalledPath

func InstalledPath(component, version string) string

func IsBuiltin

func IsBuiltin(c string) bool

func IsBuiltinUpgrade

func IsBuiltinUpgrade(c string) bool

func IsSupportFormat

func IsSupportFormat(url string) bool

func KmdoInstall

func KmdoInstall(args []string, f bool) error

func ShouldSkip

func ShouldSkip(c string) bool

Types

type BuiltinComponent

type BuiltinComponent struct {
	Name      string
	BinPath   string
	Installer installer.InstallerFactory
}

type CheckCachedPiper

type CheckCachedPiper struct{}

func (CheckCachedPiper) Default

func (CheckCachedPiper) Default(ctx *context.Context) error

func (CheckCachedPiper) Run

func (CheckCachedPiper) Skip

func (CheckCachedPiper) Skip(ctx *context.Context) bool

func (CheckCachedPiper) String

func (CheckCachedPiper) String() string

type CheckInstalledPiper

type CheckInstalledPiper struct{}

func (CheckInstalledPiper) Default

func (CheckInstalledPiper) Default(ctx *context.Context) error

func (CheckInstalledPiper) Run

func (CheckInstalledPiper) Skip

func (CheckInstalledPiper) String

func (CheckInstalledPiper) String() string

type DownloadAssertPiper

type DownloadAssertPiper struct{}

func (DownloadAssertPiper) Default

func (DownloadAssertPiper) Default(ctx *context.Context) error

func (DownloadAssertPiper) Run

func (DownloadAssertPiper) Skip

func (DownloadAssertPiper) String

func (DownloadAssertPiper) String() string

type PrepareInstallerdPiper

type PrepareInstallerdPiper struct{}

func (PrepareInstallerdPiper) Default

func (PrepareInstallerdPiper) Run

func (PrepareInstallerdPiper) Skip

func (PrepareInstallerdPiper) String

func (PrepareInstallerdPiper) String() string

type RunInstallerdPiper

type RunInstallerdPiper struct{}

func (RunInstallerdPiper) Default

func (RunInstallerdPiper) Default(ctx *context.Context) error

func (RunInstallerdPiper) Run

func (RunInstallerdPiper) Skip

func (RunInstallerdPiper) String

func (RunInstallerdPiper) String() string

type SearchPiper

type SearchPiper struct{}

func (SearchPiper) Default

func (SearchPiper) Default(ctx *context.Context) error

func (SearchPiper) Run

func (SearchPiper) Run(ctx *context.Context) error

func (SearchPiper) Skip

func (SearchPiper) Skip(ctx *context.Context) bool

func (SearchPiper) String

func (SearchPiper) String() string

type SelectAssertPiper

type SelectAssertPiper struct{}

func (SelectAssertPiper) Default

func (SelectAssertPiper) Default(ctx *context.Context) error

func (SelectAssertPiper) Run

func (SelectAssertPiper) Skip

func (SelectAssertPiper) String

func (SelectAssertPiper) String() string

type SelectVersionPiper

type SelectVersionPiper struct{}

func (SelectVersionPiper) Default

func (SelectVersionPiper) Default(ctx *context.Context) error

func (SelectVersionPiper) Run

func (SelectVersionPiper) Skip

func (SelectVersionPiper) String

func (SelectVersionPiper) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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