driveropts

package
v0.4.1-75-g4c3047f Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

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)

Jump to

Keyboard shortcuts

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