Documentation ¶
Overview ¶
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2022, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file expect in compliance with the License.
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 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)
Click to show internal directories.
Click to hide internal directories.