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 ¶
func (*BundleConfig) Apply ¶
func (bc *BundleConfig) Apply(opts ...BundleOption) error
Apply applies bundle options to the config.
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 WithRepository ¶
func WithRepository(r string) BundleOption
func WithRootFS ¶
func WithRootFS(r string) BundleOption
func WithTarget ¶
func WithTarget(p string) BundleOption
type ContainerInstaller ¶
type ContainerInstaller struct{}
func (*ContainerInstaller) Install ¶
func (l *ContainerInstaller) Install(config *BundleConfig) error
type ContainerRunner ¶
type ContainerRunner struct{}
BundleInstall installs a bundle from a luet repo or a container image.
func (*ContainerRunner) Install ¶
func (l *ContainerRunner) Install(config *BundleConfig) error
type LuetInstaller ¶
type LuetInstaller struct{}
func (*LuetInstaller) Install ¶
func (l *LuetInstaller) Install(config *BundleConfig) error
Click to show internal directories.
Click to hide internal directories.