hardwaremapping

package
v0.68.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: MPL-2.0 Imports: 24 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrResourceMessageInvalidPath = func(hmType proxmoxtypes.Type) string {
	return fmt.Sprintf("not a valid Linux device path for hardware mapping of type %q", hmType)
}

ErrResourceMessageInvalidPath is the error message for an invalid Linux device path for a hardware mapping of the specified type. Extracting the message helps to reduce duplicated code and allows to use it in automated unit and acceptance tests.

Functions

func NewDataSource

func NewDataSource() datasource.DataSource

NewDataSource returns a new data source for hardware mappings. This is a helper function to simplify the provider implementation.

func NewPCIDataSource added in v0.63.0

func NewPCIDataSource() datasource.DataSource

NewPCIDataSource returns a new data source for a PCI hardware mapping. This is a helper function to simplify the provider implementation.

func NewPCIResource added in v0.63.0

func NewPCIResource() resource.Resource

NewPCIResource returns a new resource for managing a PCI hardware mapping. This is a helper function to simplify the provider implementation.

func NewUSBDataSource added in v0.63.0

func NewUSBDataSource() datasource.DataSource

NewUSBDataSource returns a new data source for a USB hardware mapping. This is a helper function to simplify the provider implementation.

func NewUSBResource added in v0.63.0

func NewUSBResource() resource.Resource

NewUSBResource returns a new resource for managing a USB hardware mapping. This is a helper function to simplify the provider implementation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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