hardwaremapping

package
v0.62.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 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 NewDataSourcePCI

func NewDataSourcePCI() datasource.DataSource

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

func NewDataSourceUSB

func NewDataSourceUSB() datasource.DataSource

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

func NewResourcePCI

func NewResourcePCI() resource.Resource

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

func NewResourceUSB

func NewResourceUSB() resource.Resource

NewResourceUSB 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