qemutils

package
v0.3.10-0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	USER_LOCAL_BIN = "/usr/local/bin"
	USER_BIN       = "/usr/bin"
)

Variables

This section is empty.

Functions

func GetQemu

func GetQemu(version string) string

func GetQemuImg

func GetQemuImg() string

func GetQemuNbd

func GetQemuNbd() string

func UseAarch64

func UseAarch64()

Types

type Cmdline

type Cmdline struct {
	// contains filtered or unexported fields
}

func NewCmdline

func NewCmdline(content string) (*Cmdline, error)

func (*Cmdline) AddOption

func (cl *Cmdline) AddOption(opts ...Option) *Cmdline

func (*Cmdline) FilterOption

func (cl *Cmdline) FilterOption(filter OptionFilter)

func (*Cmdline) ToString

func (cl *Cmdline) ToString() string

type Option

type Option struct {
	Key   string
	Value string
}

func (Option) ToString

func (o Option) ToString() string

type OptionFilter

type OptionFilter func(Option) bool

Jump to

Keyboard shortcuts

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