Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 ¶
NewResourcePCI returns a new resource for managing a PCI hardware mapping. This is a helper function to simplify the provider implementation.
func NewResourceUSB ¶
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.