bootstrap

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2021 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bootstrapper

type Bootstrapper interface {
	Execute() error
	WithCommandRunner(CommandRunner) Bootstrapper
	WithResourceDeployer(ResourceDeployer) Bootstrapper
}

func NewDefaultBoostrapper

func NewDefaultBoostrapper(logger hclog.Logger, bootstrapData *mmds.MMDSBootstrap) Bootstrapper

type CommandRunner

type CommandRunner interface {
	Execute(commands.Run, rootfs.ClientProvider) error
}

func NewShellCommandRunner

func NewShellCommandRunner(logger hclog.Logger) CommandRunner

type ResourceDeployer

type ResourceDeployer interface {
	Add(commands.Add, rootfs.ClientProvider) error
	Copy(commands.Copy, rootfs.ClientProvider) error
}

func NewExecutingResourceDeployer

func NewExecutingResourceDeployer(logger hclog.Logger) ResourceDeployer

Jump to

Keyboard shortcuts

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