qemutils

package
v0.3.9-9 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: Apache-2.0 Imports: 9 Imported by: 6

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) ChangeOption

func (cl *Cmdline) ChangeOption(changer OptionChanger)

func (*Cmdline) FilterOption

func (cl *Cmdline) FilterOption(filter OptionFilter)

func (*Cmdline) FindOption

func (cl *Cmdline) FindOption(filter OptionFinder)

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 OptionChanger

type OptionChanger func(*Option)

type OptionFilter

type OptionFilter func(Option) bool

type OptionFinder

type OptionFinder func(Option) bool

Jump to

Keyboard shortcuts

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