driveropts

package
v0.1.1-18-gd4c3523 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DriverOption

type DriverOption func(do *DriverOptions) error

func WithBackground

func WithBackground(background bool) DriverOption

WithBackground indicates as to whether the driver should start in the background

func WithDebug

func WithDebug(debug bool) DriverOption

func WithExecOptions

func WithExecOptions(eopts ...exec.ExecOption) DriverOption

WithExecOptions offers configuration options to the underlying process executor

func WithLogger

func WithLogger(l log.Logger) DriverOption

WithLogger provides access to a logger to be used within the package

func WithMachineStore

func WithMachineStore(store *machine.MachineStore) DriverOption

WithMachineStore passes in an already instantiated `machine.MachineStore`

func WithRuntimeDir

func WithRuntimeDir(dir string) DriverOption

WithRuntimeDir sets the location of files associated with the runtime of KraftKit. This typically includes PID files, socket files, key-value databases, log files, etc.

type DriverOptions

type DriverOptions struct {
	Log         log.Logger
	ExecOptions []exec.ExecOption
	Debug       bool
	RuntimeDir  string
	Background  bool
	Store       *machine.MachineStore
}

func NewDriverOptions

func NewDriverOptions(opts ...DriverOption) (*DriverOptions, error)

Jump to

Keyboard shortcuts

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