usbdevicecondition

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Ready signifies that device is ready to use.
	Ready ReadyReason = "Ready"
	// NotReady signifies that device exists in the system but is not ready to use.
	NotReady ReadyReason = "NotReady"
	// NotFound signifies that device is absent on the host.
	NotFound ReadyReason = "NotFound"

	// AttachedToVirtualMachine signifies that device is attached to a virtual machine.
	AttachedToVirtualMachine AttachedReason = "AttachedToVirtualMachine"
	// Available signifies that device is available for attachment to a virtual machine.
	Available AttachedReason = "Available"
	// DetachedForMigration signifies that device was detached for migration (e.g. live migration).
	DetachedForMigration AttachedReason = "DetachedForMigration"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AttachedReason

type AttachedReason string

AttachedReason represents the various reasons for the `Attached` condition type.

func (AttachedReason) String

func (r AttachedReason) String() string

type ReadyReason

type ReadyReason string

ReadyReason represents the various reasons for the `Ready` condition type.

func (ReadyReason) String

func (r ReadyReason) String() string

type Type

type Type string

Type represents the various condition types for the `USBDevice`.

const (
	// ReadyType indicates whether the device is ready to use.
	ReadyType Type = "Ready"
	// AttachedType indicates whether the device is attached to a virtual machine.
	AttachedType Type = "Attached"
)

func (Type) String

func (t Type) String() string

Jump to

Keyboard shortcuts

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