packageinstaller

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ModulesFile is the file used to store current module state.
	ModulesFile = "modules.json"
)

Variables

This section is empty.

Functions

func MaybeHandleService

func MaybeHandleService(logger logr.Logger)

Types

type PackageInstaller

type PackageInstaller interface {
	io.Closer

	InstallPackage(packagePath string, destination string, options release.InstallOptions) error
	StoreModules(destination string, modules []release.ModuleRelease) error
}

PackageInstaller represents an object capable of installing packages.

func NewDefaultInstaller

func NewDefaultInstaller(logger logr.Logger, dryRun bool) (PackageInstaller, error)

func NewLocalInstaller

func NewLocalInstaller(logger logr.Logger, dryRun bool) PackageInstaller

Jump to

Keyboard shortcuts

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