bundles

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunBundles

func RunBundles(bundles ...[]BundleOption) error

RunBundles runs bundles in a system. Accept a list of bundles options, which gets applied based on the bundle configuration.

Types

type BundleConfig

type BundleConfig struct {
	Target     string
	Repository string
	DBPath     string
	RootPath   string
	LocalFile  bool
}

func (*BundleConfig) Apply

func (bc *BundleConfig) Apply(opts ...BundleOption) error

Apply applies bundle options to the config.

func (*BundleConfig) TargetNoScheme added in v0.0.17

func (bc *BundleConfig) TargetNoScheme() (string, error)

func (*BundleConfig) TargetScheme added in v0.0.17

func (bc *BundleConfig) TargetScheme() (string, error)

type BundleInstaller

type BundleInstaller interface {
	Install(*BundleConfig) error
}

func NewBundleInstaller

func NewBundleInstaller(bc BundleConfig) (BundleInstaller, error)

type BundleOption

type BundleOption func(bc *BundleConfig) error

BundleOption defines a configuration option for a bundle.

func WithDBPath

func WithDBPath(r string) BundleOption

WithDBPath sets the DB path for package installs. In case of luet packages will contain the db of the installed packages.

func WithLocalFile

func WithLocalFile(p bool) BundleOption

func WithRepository

func WithRepository(r string) BundleOption

func WithRootFS

func WithRootFS(r string) BundleOption

func WithTarget

func WithTarget(p string) BundleOption

type LuetInstaller

type LuetInstaller struct{}

func (*LuetInstaller) Install

func (l *LuetInstaller) Install(config *BundleConfig) error

type OCIImageExtractor added in v0.0.3

type OCIImageExtractor struct {
	Local bool
}

OCIImageExtractor will extract an OCI image

func (OCIImageExtractor) Install added in v0.0.3

func (e OCIImageExtractor) Install(config *BundleConfig) error

type OCIImageRunner added in v0.0.3

type OCIImageRunner struct {
	Local bool
}

OCIImageRunner will extract an OCI image and then run its run.sh

func (OCIImageRunner) Install added in v0.0.3

func (e OCIImageRunner) Install(config *BundleConfig) error

Jump to

Keyboard shortcuts

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