package
0.11.5
Repository: https://github.com/aibor/virtrun.git
Documentation: pkg.go.dev

# Functions

ArgumentValueAssertionFunc returns an [assert.ComparisonAssertionFunc] that can be used to assert the value of the Argument with the given name.
BuildArgumentStrings compiles the [Argument]s to into a slice of strings which can be used with [exec.Command].
NewCommand builds the final [Command] with the given [CommandSpec].
RepeatableArg returns a new [Argument] with the given name that is not unique and so can be used in [CommandSpec] multiple times.
UniqueArg returns a new [Argument] with the given name that is marked as unique and so can be used in [CommandSpec] only once.

# Constants

TransportTypeISA is ISA legacy transport.
TransportTypeMMIO is Virtio MMIO transport.
TransportTypePCI is VirtIO PCI transport.

# Variables

ErrArgumentCollision is returned if two [Argument]s are considered equal.
ErrGuestNoExitCodeFound is returned if no exit code matching the [Command.ExitCodeFmt] is printed by the guest and no other error is found.
ErrGuestNonZeroExitCode is returned if the guest did not return exit code 0.
ErrGuestOom is returned if the guest system ran out of memory.
ErrGuestPanic is returned if a kernel panic occurred in the guest system.
ErrTransportTypeInvalid is returned if a transport type is invalid.

# Structs

Argument is a QEMU argument with or without value.
ArgumentError indicates an issue with an input argument.
No description provided by the author
CommandError wraps any error occurred during Command execution.
CommandSpec defines the parameters for a [Command].

# Type aliases

TransportType represents QEMU IO transport types.