mapping

package
v6.15.2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetPciMap

type GetPciMap struct {
	// The comment of the mapped PCI device.
	Comment string `pulumi:"comment"`
	// The ID attribute of the map.
	Id string `pulumi:"id"`
	// The IOMMU group attribute of the map.
	IommuGroup int `pulumi:"iommuGroup"`
	// The node name attribute of the map.
	Node string `pulumi:"node"`
	// The path attribute of the map.
	Path string `pulumi:"path"`
	// The subsystem ID attribute of the map.Not mandatory for the Proxmox VE API call, but causes a PCI hardware mapping to be incomplete when not set.
	SubsystemId string `pulumi:"subsystemId"`
}

type GetPciMapArgs

type GetPciMapArgs struct {
	// The comment of the mapped PCI device.
	Comment pulumi.StringInput `pulumi:"comment"`
	// The ID attribute of the map.
	Id pulumi.StringInput `pulumi:"id"`
	// The IOMMU group attribute of the map.
	IommuGroup pulumi.IntInput `pulumi:"iommuGroup"`
	// The node name attribute of the map.
	Node pulumi.StringInput `pulumi:"node"`
	// The path attribute of the map.
	Path pulumi.StringInput `pulumi:"path"`
	// The subsystem ID attribute of the map.Not mandatory for the Proxmox VE API call, but causes a PCI hardware mapping to be incomplete when not set.
	SubsystemId pulumi.StringInput `pulumi:"subsystemId"`
}

func (GetPciMapArgs) ElementType

func (GetPciMapArgs) ElementType() reflect.Type

func (GetPciMapArgs) ToGetPciMapOutput

func (i GetPciMapArgs) ToGetPciMapOutput() GetPciMapOutput

func (GetPciMapArgs) ToGetPciMapOutputWithContext

func (i GetPciMapArgs) ToGetPciMapOutputWithContext(ctx context.Context) GetPciMapOutput

type GetPciMapArray

type GetPciMapArray []GetPciMapInput

func (GetPciMapArray) ElementType

func (GetPciMapArray) ElementType() reflect.Type

func (GetPciMapArray) ToGetPciMapArrayOutput

func (i GetPciMapArray) ToGetPciMapArrayOutput() GetPciMapArrayOutput

func (GetPciMapArray) ToGetPciMapArrayOutputWithContext

func (i GetPciMapArray) ToGetPciMapArrayOutputWithContext(ctx context.Context) GetPciMapArrayOutput

type GetPciMapArrayInput

type GetPciMapArrayInput interface {
	pulumi.Input

	ToGetPciMapArrayOutput() GetPciMapArrayOutput
	ToGetPciMapArrayOutputWithContext(context.Context) GetPciMapArrayOutput
}

GetPciMapArrayInput is an input type that accepts GetPciMapArray and GetPciMapArrayOutput values. You can construct a concrete instance of `GetPciMapArrayInput` via:

GetPciMapArray{ GetPciMapArgs{...} }

type GetPciMapArrayOutput

type GetPciMapArrayOutput struct{ *pulumi.OutputState }

func (GetPciMapArrayOutput) ElementType

func (GetPciMapArrayOutput) ElementType() reflect.Type

func (GetPciMapArrayOutput) Index

func (GetPciMapArrayOutput) ToGetPciMapArrayOutput

func (o GetPciMapArrayOutput) ToGetPciMapArrayOutput() GetPciMapArrayOutput

func (GetPciMapArrayOutput) ToGetPciMapArrayOutputWithContext

func (o GetPciMapArrayOutput) ToGetPciMapArrayOutputWithContext(ctx context.Context) GetPciMapArrayOutput

type GetPciMapInput

type GetPciMapInput interface {
	pulumi.Input

	ToGetPciMapOutput() GetPciMapOutput
	ToGetPciMapOutputWithContext(context.Context) GetPciMapOutput
}

GetPciMapInput is an input type that accepts GetPciMap and GetPciMapOutput values. You can construct a concrete instance of `GetPciMapInput` via:

GetPciMap{ "key": GetPciArgs{...} }

type GetPciMapOutput

type GetPciMapOutput struct{ *pulumi.OutputState }

func (GetPciMapOutput) Comment

func (o GetPciMapOutput) Comment() pulumi.StringOutput

The comment of the mapped PCI device.

func (GetPciMapOutput) ElementType

func (GetPciMapOutput) ElementType() reflect.Type

func (GetPciMapOutput) Id

The ID attribute of the map.

func (GetPciMapOutput) IommuGroup

func (o GetPciMapOutput) IommuGroup() pulumi.IntOutput

The IOMMU group attribute of the map.

func (GetPciMapOutput) Node

The node name attribute of the map.

func (GetPciMapOutput) Path

The path attribute of the map.

func (GetPciMapOutput) SubsystemId

func (o GetPciMapOutput) SubsystemId() pulumi.StringOutput

The subsystem ID attribute of the map.Not mandatory for the Proxmox VE API call, but causes a PCI hardware mapping to be incomplete when not set.

func (GetPciMapOutput) ToGetPciMapOutput

func (o GetPciMapOutput) ToGetPciMapOutput() GetPciMapOutput

func (GetPciMapOutput) ToGetPciMapOutputWithContext

func (o GetPciMapOutput) ToGetPciMapOutputWithContext(ctx context.Context) GetPciMapOutput

type GetUsbMap

type GetUsbMap struct {
	// The comment of the mapped USB device.
	Comment string `pulumi:"comment"`
	// The ID attribute of the map.
	Id string `pulumi:"id"`
	// The node name attribute of the map.
	Node string `pulumi:"node"`
	// The path attribute of the map.
	Path string `pulumi:"path"`
}

type GetUsbMapArgs

type GetUsbMapArgs struct {
	// The comment of the mapped USB device.
	Comment pulumi.StringInput `pulumi:"comment"`
	// The ID attribute of the map.
	Id pulumi.StringInput `pulumi:"id"`
	// The node name attribute of the map.
	Node pulumi.StringInput `pulumi:"node"`
	// The path attribute of the map.
	Path pulumi.StringInput `pulumi:"path"`
}

func (GetUsbMapArgs) ElementType

func (GetUsbMapArgs) ElementType() reflect.Type

func (GetUsbMapArgs) ToGetUsbMapOutput

func (i GetUsbMapArgs) ToGetUsbMapOutput() GetUsbMapOutput

func (GetUsbMapArgs) ToGetUsbMapOutputWithContext

func (i GetUsbMapArgs) ToGetUsbMapOutputWithContext(ctx context.Context) GetUsbMapOutput

type GetUsbMapArray

type GetUsbMapArray []GetUsbMapInput

func (GetUsbMapArray) ElementType

func (GetUsbMapArray) ElementType() reflect.Type

func (GetUsbMapArray) ToGetUsbMapArrayOutput

func (i GetUsbMapArray) ToGetUsbMapArrayOutput() GetUsbMapArrayOutput

func (GetUsbMapArray) ToGetUsbMapArrayOutputWithContext

func (i GetUsbMapArray) ToGetUsbMapArrayOutputWithContext(ctx context.Context) GetUsbMapArrayOutput

type GetUsbMapArrayInput

type GetUsbMapArrayInput interface {
	pulumi.Input

	ToGetUsbMapArrayOutput() GetUsbMapArrayOutput
	ToGetUsbMapArrayOutputWithContext(context.Context) GetUsbMapArrayOutput
}

GetUsbMapArrayInput is an input type that accepts GetUsbMapArray and GetUsbMapArrayOutput values. You can construct a concrete instance of `GetUsbMapArrayInput` via:

GetUsbMapArray{ GetUsbMapArgs{...} }

type GetUsbMapArrayOutput

type GetUsbMapArrayOutput struct{ *pulumi.OutputState }

func (GetUsbMapArrayOutput) ElementType

func (GetUsbMapArrayOutput) ElementType() reflect.Type

func (GetUsbMapArrayOutput) Index

func (GetUsbMapArrayOutput) ToGetUsbMapArrayOutput

func (o GetUsbMapArrayOutput) ToGetUsbMapArrayOutput() GetUsbMapArrayOutput

func (GetUsbMapArrayOutput) ToGetUsbMapArrayOutputWithContext

func (o GetUsbMapArrayOutput) ToGetUsbMapArrayOutputWithContext(ctx context.Context) GetUsbMapArrayOutput

type GetUsbMapInput

type GetUsbMapInput interface {
	pulumi.Input

	ToGetUsbMapOutput() GetUsbMapOutput
	ToGetUsbMapOutputWithContext(context.Context) GetUsbMapOutput
}

GetUsbMapInput is an input type that accepts GetUsbMap and GetUsbMapOutput values. You can construct a concrete instance of `GetUsbMapInput` via:

GetUsbMap{ "key": GetUsbArgs{...} }

type GetUsbMapOutput

type GetUsbMapOutput struct{ *pulumi.OutputState }

func (GetUsbMapOutput) Comment

func (o GetUsbMapOutput) Comment() pulumi.StringOutput

The comment of the mapped USB device.

func (GetUsbMapOutput) ElementType

func (GetUsbMapOutput) ElementType() reflect.Type

func (GetUsbMapOutput) Id

The ID attribute of the map.

func (GetUsbMapOutput) Node

The node name attribute of the map.

func (GetUsbMapOutput) Path

The path attribute of the map.

func (GetUsbMapOutput) ToGetUsbMapOutput

func (o GetUsbMapOutput) ToGetUsbMapOutput() GetUsbMapOutput

func (GetUsbMapOutput) ToGetUsbMapOutputWithContext

func (o GetUsbMapOutput) ToGetUsbMapOutputWithContext(ctx context.Context) GetUsbMapOutput

type LookupPciArgs

type LookupPciArgs struct {
	// The name of this PCI hardware mapping.
	Name string `pulumi:"name"`
}

A collection of arguments for invoking getPci.

type LookupPciOutputArgs

type LookupPciOutputArgs struct {
	// The name of this PCI hardware mapping.
	Name pulumi.StringInput `pulumi:"name"`
}

A collection of arguments for invoking getPci.

func (LookupPciOutputArgs) ElementType

func (LookupPciOutputArgs) ElementType() reflect.Type

type LookupPciResult

type LookupPciResult struct {
	// The comment of this PCI hardware mapping.
	Comment string `pulumi:"comment"`
	// The unique identifier of this PCI hardware mapping data source.
	Id string `pulumi:"id"`
	// The actual map of devices for the hardware mapping.
	Maps []GetPciMap `pulumi:"maps"`
	// Indicates whether to use with mediated devices.
	MediatedDevices bool `pulumi:"mediatedDevices"`
	// The name of this PCI hardware mapping.
	Name string `pulumi:"name"`
}

A collection of values returned by getPci.

func LookupPci

func LookupPci(ctx *pulumi.Context, args *LookupPciArgs, opts ...pulumi.InvokeOption) (*LookupPciResult, error)

Retrieves a PCI hardware mapping from a Proxmox VE cluster.

## Example Usage

```go package main

import (

"github.com/muhlba91/pulumi-proxmoxve/sdk/v6/go/proxmoxve/Hardware"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := Hardware.GetPci(ctx, &mapping.GetPciArgs{
			Name: "example",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("dataProxmoxVirtualEnvironmentHardwareMappingPci", example)
		return nil
	})
}

```

type LookupPciResultOutput

type LookupPciResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getPci.

func (LookupPciResultOutput) Comment

The comment of this PCI hardware mapping.

func (LookupPciResultOutput) ElementType

func (LookupPciResultOutput) ElementType() reflect.Type

func (LookupPciResultOutput) Id

The unique identifier of this PCI hardware mapping data source.

func (LookupPciResultOutput) Maps

The actual map of devices for the hardware mapping.

func (LookupPciResultOutput) MediatedDevices

func (o LookupPciResultOutput) MediatedDevices() pulumi.BoolOutput

Indicates whether to use with mediated devices.

func (LookupPciResultOutput) Name

The name of this PCI hardware mapping.

func (LookupPciResultOutput) ToLookupPciResultOutput

func (o LookupPciResultOutput) ToLookupPciResultOutput() LookupPciResultOutput

func (LookupPciResultOutput) ToLookupPciResultOutputWithContext

func (o LookupPciResultOutput) ToLookupPciResultOutputWithContext(ctx context.Context) LookupPciResultOutput

type LookupUsbArgs

type LookupUsbArgs struct {
	// The name of this USB hardware mapping.
	Name string `pulumi:"name"`
}

A collection of arguments for invoking getUsb.

type LookupUsbOutputArgs

type LookupUsbOutputArgs struct {
	// The name of this USB hardware mapping.
	Name pulumi.StringInput `pulumi:"name"`
}

A collection of arguments for invoking getUsb.

func (LookupUsbOutputArgs) ElementType

func (LookupUsbOutputArgs) ElementType() reflect.Type

type LookupUsbResult

type LookupUsbResult struct {
	// The comment of this USB hardware mapping.
	Comment string `pulumi:"comment"`
	// The unique identifier of this USB hardware mapping data source.
	Id string `pulumi:"id"`
	// The actual map of devices for the hardware mapping.
	Maps []GetUsbMap `pulumi:"maps"`
	// The name of this USB hardware mapping.
	Name string `pulumi:"name"`
}

A collection of values returned by getUsb.

func LookupUsb

func LookupUsb(ctx *pulumi.Context, args *LookupUsbArgs, opts ...pulumi.InvokeOption) (*LookupUsbResult, error)

Retrieves a USB hardware mapping from a Proxmox VE cluster.

## Example Usage

```go package main

import (

"github.com/muhlba91/pulumi-proxmoxve/sdk/v6/go/proxmoxve/Hardware"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := Hardware.GetUsb(ctx, &mapping.GetUsbArgs{
			Name: "example",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("dataProxmoxVirtualEnvironmentHardwareMappingUsb", example)
		return nil
	})
}

```

type LookupUsbResultOutput

type LookupUsbResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getUsb.

func (LookupUsbResultOutput) Comment

The comment of this USB hardware mapping.

func (LookupUsbResultOutput) ElementType

func (LookupUsbResultOutput) ElementType() reflect.Type

func (LookupUsbResultOutput) Id

The unique identifier of this USB hardware mapping data source.

func (LookupUsbResultOutput) Maps

The actual map of devices for the hardware mapping.

func (LookupUsbResultOutput) Name

The name of this USB hardware mapping.

func (LookupUsbResultOutput) ToLookupUsbResultOutput

func (o LookupUsbResultOutput) ToLookupUsbResultOutput() LookupUsbResultOutput

func (LookupUsbResultOutput) ToLookupUsbResultOutputWithContext

func (o LookupUsbResultOutput) ToLookupUsbResultOutputWithContext(ctx context.Context) LookupUsbResultOutput

type Pci

type Pci struct {
	pulumi.CustomResourceState

	// The comment of this PCI hardware mapping.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// The actual map of devices for the PCI hardware mapping.
	Maps PciMapTypeArrayOutput `pulumi:"maps"`
	// Indicates whether to enable mediated devices.
	MediatedDevices pulumi.BoolOutput `pulumi:"mediatedDevices"`
	// The name of this PCI hardware mapping.
	Name pulumi.StringOutput `pulumi:"name"`
}

Manages a PCI hardware mapping in a Proxmox VE cluster.

## Import

#!/usr/bin/env sh

A PCI hardware mapping can be imported using their name, e.g.:

```sh $ pulumi import proxmoxve:Hardware/mapping/pci:Pci example example ```

func GetPci

func GetPci(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PciState, opts ...pulumi.ResourceOption) (*Pci, error)

GetPci gets an existing Pci resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewPci

func NewPci(ctx *pulumi.Context,
	name string, args *PciArgs, opts ...pulumi.ResourceOption) (*Pci, error)

NewPci registers a new resource with the given unique name, arguments, and options.

func (*Pci) ElementType

func (*Pci) ElementType() reflect.Type

func (*Pci) ToPciOutput

func (i *Pci) ToPciOutput() PciOutput

func (*Pci) ToPciOutputWithContext

func (i *Pci) ToPciOutputWithContext(ctx context.Context) PciOutput

type PciArgs

type PciArgs struct {
	// The comment of this PCI hardware mapping.
	Comment pulumi.StringPtrInput
	// The actual map of devices for the PCI hardware mapping.
	Maps PciMapTypeArrayInput
	// Indicates whether to enable mediated devices.
	MediatedDevices pulumi.BoolPtrInput
	// The name of this PCI hardware mapping.
	Name pulumi.StringPtrInput
}

The set of arguments for constructing a Pci resource.

func (PciArgs) ElementType

func (PciArgs) ElementType() reflect.Type

type PciArray

type PciArray []PciInput

func (PciArray) ElementType

func (PciArray) ElementType() reflect.Type

func (PciArray) ToPciArrayOutput

func (i PciArray) ToPciArrayOutput() PciArrayOutput

func (PciArray) ToPciArrayOutputWithContext

func (i PciArray) ToPciArrayOutputWithContext(ctx context.Context) PciArrayOutput

type PciArrayInput

type PciArrayInput interface {
	pulumi.Input

	ToPciArrayOutput() PciArrayOutput
	ToPciArrayOutputWithContext(context.Context) PciArrayOutput
}

PciArrayInput is an input type that accepts PciArray and PciArrayOutput values. You can construct a concrete instance of `PciArrayInput` via:

PciArray{ PciArgs{...} }

type PciArrayOutput

type PciArrayOutput struct{ *pulumi.OutputState }

func (PciArrayOutput) ElementType

func (PciArrayOutput) ElementType() reflect.Type

func (PciArrayOutput) Index

func (PciArrayOutput) ToPciArrayOutput

func (o PciArrayOutput) ToPciArrayOutput() PciArrayOutput

func (PciArrayOutput) ToPciArrayOutputWithContext

func (o PciArrayOutput) ToPciArrayOutputWithContext(ctx context.Context) PciArrayOutput

type PciInput

type PciInput interface {
	pulumi.Input

	ToPciOutput() PciOutput
	ToPciOutputWithContext(ctx context.Context) PciOutput
}

type PciMap

type PciMap map[string]PciInput

func (PciMap) ElementType

func (PciMap) ElementType() reflect.Type

func (PciMap) ToPciMapOutput

func (i PciMap) ToPciMapOutput() PciMapOutput

func (PciMap) ToPciMapOutputWithContext

func (i PciMap) ToPciMapOutputWithContext(ctx context.Context) PciMapOutput

type PciMapInput

type PciMapInput interface {
	pulumi.Input

	ToPciMapOutput() PciMapOutput
	ToPciMapOutputWithContext(context.Context) PciMapOutput
}

PciMapInput is an input type that accepts PciMap and PciMapOutput values. You can construct a concrete instance of `PciMapInput` via:

PciMap{ "key": PciArgs{...} }

type PciMapOutput

type PciMapOutput struct{ *pulumi.OutputState }

func (PciMapOutput) ElementType

func (PciMapOutput) ElementType() reflect.Type

func (PciMapOutput) MapIndex

func (o PciMapOutput) MapIndex(k pulumi.StringInput) PciOutput

func (PciMapOutput) ToPciMapOutput

func (o PciMapOutput) ToPciMapOutput() PciMapOutput

func (PciMapOutput) ToPciMapOutputWithContext

func (o PciMapOutput) ToPciMapOutputWithContext(ctx context.Context) PciMapOutput

type PciMapType

type PciMapType struct {
	// The comment of the mapped PCI device.
	Comment *string `pulumi:"comment"`
	// The ID of the map.
	Id string `pulumi:"id"`
	// The IOMMU group of the map. Not mandatory for the Proxmox VE API call, but causes a PCI hardware mapping to be incomplete when not set
	IommuGroup *int `pulumi:"iommuGroup"`
	// The node name of the map.
	Node string `pulumi:"node"`
	// The path of the map.
	Path string `pulumi:"path"`
	// The subsystem ID group of the map. Not mandatory for the Proxmox VE API call, but causes a PCI hardware mapping to be incomplete when not set
	SubsystemId *string `pulumi:"subsystemId"`
}

type PciMapTypeArgs

type PciMapTypeArgs struct {
	// The comment of the mapped PCI device.
	Comment pulumi.StringPtrInput `pulumi:"comment"`
	// The ID of the map.
	Id pulumi.StringInput `pulumi:"id"`
	// The IOMMU group of the map. Not mandatory for the Proxmox VE API call, but causes a PCI hardware mapping to be incomplete when not set
	IommuGroup pulumi.IntPtrInput `pulumi:"iommuGroup"`
	// The node name of the map.
	Node pulumi.StringInput `pulumi:"node"`
	// The path of the map.
	Path pulumi.StringInput `pulumi:"path"`
	// The subsystem ID group of the map. Not mandatory for the Proxmox VE API call, but causes a PCI hardware mapping to be incomplete when not set
	SubsystemId pulumi.StringPtrInput `pulumi:"subsystemId"`
}

func (PciMapTypeArgs) ElementType

func (PciMapTypeArgs) ElementType() reflect.Type

func (PciMapTypeArgs) ToPciMapTypeOutput

func (i PciMapTypeArgs) ToPciMapTypeOutput() PciMapTypeOutput

func (PciMapTypeArgs) ToPciMapTypeOutputWithContext

func (i PciMapTypeArgs) ToPciMapTypeOutputWithContext(ctx context.Context) PciMapTypeOutput

type PciMapTypeArray

type PciMapTypeArray []PciMapTypeInput

func (PciMapTypeArray) ElementType

func (PciMapTypeArray) ElementType() reflect.Type

func (PciMapTypeArray) ToPciMapTypeArrayOutput

func (i PciMapTypeArray) ToPciMapTypeArrayOutput() PciMapTypeArrayOutput

func (PciMapTypeArray) ToPciMapTypeArrayOutputWithContext

func (i PciMapTypeArray) ToPciMapTypeArrayOutputWithContext(ctx context.Context) PciMapTypeArrayOutput

type PciMapTypeArrayInput

type PciMapTypeArrayInput interface {
	pulumi.Input

	ToPciMapTypeArrayOutput() PciMapTypeArrayOutput
	ToPciMapTypeArrayOutputWithContext(context.Context) PciMapTypeArrayOutput
}

PciMapTypeArrayInput is an input type that accepts PciMapTypeArray and PciMapTypeArrayOutput values. You can construct a concrete instance of `PciMapTypeArrayInput` via:

PciMapTypeArray{ PciMapTypeArgs{...} }

type PciMapTypeArrayOutput

type PciMapTypeArrayOutput struct{ *pulumi.OutputState }

func (PciMapTypeArrayOutput) ElementType

func (PciMapTypeArrayOutput) ElementType() reflect.Type

func (PciMapTypeArrayOutput) Index

func (PciMapTypeArrayOutput) ToPciMapTypeArrayOutput

func (o PciMapTypeArrayOutput) ToPciMapTypeArrayOutput() PciMapTypeArrayOutput

func (PciMapTypeArrayOutput) ToPciMapTypeArrayOutputWithContext

func (o PciMapTypeArrayOutput) ToPciMapTypeArrayOutputWithContext(ctx context.Context) PciMapTypeArrayOutput

type PciMapTypeInput

type PciMapTypeInput interface {
	pulumi.Input

	ToPciMapTypeOutput() PciMapTypeOutput
	ToPciMapTypeOutputWithContext(context.Context) PciMapTypeOutput
}

PciMapTypeInput is an input type that accepts PciMapTypeArgs and PciMapTypeOutput values. You can construct a concrete instance of `PciMapTypeInput` via:

PciMapTypeArgs{...}

type PciMapTypeOutput

type PciMapTypeOutput struct{ *pulumi.OutputState }

func (PciMapTypeOutput) Comment

The comment of the mapped PCI device.

func (PciMapTypeOutput) ElementType

func (PciMapTypeOutput) ElementType() reflect.Type

func (PciMapTypeOutput) Id

The ID of the map.

func (PciMapTypeOutput) IommuGroup

func (o PciMapTypeOutput) IommuGroup() pulumi.IntPtrOutput

The IOMMU group of the map. Not mandatory for the Proxmox VE API call, but causes a PCI hardware mapping to be incomplete when not set

func (PciMapTypeOutput) Node

The node name of the map.

func (PciMapTypeOutput) Path

The path of the map.

func (PciMapTypeOutput) SubsystemId

func (o PciMapTypeOutput) SubsystemId() pulumi.StringPtrOutput

The subsystem ID group of the map. Not mandatory for the Proxmox VE API call, but causes a PCI hardware mapping to be incomplete when not set

func (PciMapTypeOutput) ToPciMapTypeOutput

func (o PciMapTypeOutput) ToPciMapTypeOutput() PciMapTypeOutput

func (PciMapTypeOutput) ToPciMapTypeOutputWithContext

func (o PciMapTypeOutput) ToPciMapTypeOutputWithContext(ctx context.Context) PciMapTypeOutput

type PciOutput

type PciOutput struct{ *pulumi.OutputState }

func (PciOutput) Comment

func (o PciOutput) Comment() pulumi.StringPtrOutput

The comment of this PCI hardware mapping.

func (PciOutput) ElementType

func (PciOutput) ElementType() reflect.Type

func (PciOutput) Maps

The actual map of devices for the PCI hardware mapping.

func (PciOutput) MediatedDevices

func (o PciOutput) MediatedDevices() pulumi.BoolOutput

Indicates whether to enable mediated devices.

func (PciOutput) Name

func (o PciOutput) Name() pulumi.StringOutput

The name of this PCI hardware mapping.

func (PciOutput) ToPciOutput

func (o PciOutput) ToPciOutput() PciOutput

func (PciOutput) ToPciOutputWithContext

func (o PciOutput) ToPciOutputWithContext(ctx context.Context) PciOutput

type PciState

type PciState struct {
	// The comment of this PCI hardware mapping.
	Comment pulumi.StringPtrInput
	// The actual map of devices for the PCI hardware mapping.
	Maps PciMapTypeArrayInput
	// Indicates whether to enable mediated devices.
	MediatedDevices pulumi.BoolPtrInput
	// The name of this PCI hardware mapping.
	Name pulumi.StringPtrInput
}

func (PciState) ElementType

func (PciState) ElementType() reflect.Type

type Usb

type Usb struct {
	pulumi.CustomResourceState

	// The comment of this USB hardware mapping.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// The actual map of devices for the hardware mapping.
	Maps UsbMapTypeArrayOutput `pulumi:"maps"`
	// The name of this hardware mapping.
	Name pulumi.StringOutput `pulumi:"name"`
}

Manages a USB hardware mapping in a Proxmox VE cluster.

## Example Usage

```go package main

import (

"github.com/muhlba91/pulumi-proxmoxve/sdk/v6/go/proxmoxve/Hardware"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Hardware.NewUsb(ctx, "example", &Hardware.UsbArgs{
			Comment: pulumi.String("This is a comment"),
			Maps: mapping.UsbMapTypeArray{
				&mapping.UsbMapTypeArgs{
					Comment: pulumi.String("This is a device specific comment"),
					Id:      pulumi.String("8087:0a2b"),
					Node:    pulumi.String("pve"),
					Path:    pulumi.String("1-8.2"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

#!/usr/bin/env sh

A USB hardware mapping can be imported using their name, e.g.:

```sh $ pulumi import proxmoxve:Hardware/mapping/usb:Usb example example ```

func GetUsb

func GetUsb(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *UsbState, opts ...pulumi.ResourceOption) (*Usb, error)

GetUsb gets an existing Usb resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewUsb

func NewUsb(ctx *pulumi.Context,
	name string, args *UsbArgs, opts ...pulumi.ResourceOption) (*Usb, error)

NewUsb registers a new resource with the given unique name, arguments, and options.

func (*Usb) ElementType

func (*Usb) ElementType() reflect.Type

func (*Usb) ToUsbOutput

func (i *Usb) ToUsbOutput() UsbOutput

func (*Usb) ToUsbOutputWithContext

func (i *Usb) ToUsbOutputWithContext(ctx context.Context) UsbOutput

type UsbArgs

type UsbArgs struct {
	// The comment of this USB hardware mapping.
	Comment pulumi.StringPtrInput
	// The actual map of devices for the hardware mapping.
	Maps UsbMapTypeArrayInput
	// The name of this hardware mapping.
	Name pulumi.StringPtrInput
}

The set of arguments for constructing a Usb resource.

func (UsbArgs) ElementType

func (UsbArgs) ElementType() reflect.Type

type UsbArray

type UsbArray []UsbInput

func (UsbArray) ElementType

func (UsbArray) ElementType() reflect.Type

func (UsbArray) ToUsbArrayOutput

func (i UsbArray) ToUsbArrayOutput() UsbArrayOutput

func (UsbArray) ToUsbArrayOutputWithContext

func (i UsbArray) ToUsbArrayOutputWithContext(ctx context.Context) UsbArrayOutput

type UsbArrayInput

type UsbArrayInput interface {
	pulumi.Input

	ToUsbArrayOutput() UsbArrayOutput
	ToUsbArrayOutputWithContext(context.Context) UsbArrayOutput
}

UsbArrayInput is an input type that accepts UsbArray and UsbArrayOutput values. You can construct a concrete instance of `UsbArrayInput` via:

UsbArray{ UsbArgs{...} }

type UsbArrayOutput

type UsbArrayOutput struct{ *pulumi.OutputState }

func (UsbArrayOutput) ElementType

func (UsbArrayOutput) ElementType() reflect.Type

func (UsbArrayOutput) Index

func (UsbArrayOutput) ToUsbArrayOutput

func (o UsbArrayOutput) ToUsbArrayOutput() UsbArrayOutput

func (UsbArrayOutput) ToUsbArrayOutputWithContext

func (o UsbArrayOutput) ToUsbArrayOutputWithContext(ctx context.Context) UsbArrayOutput

type UsbInput

type UsbInput interface {
	pulumi.Input

	ToUsbOutput() UsbOutput
	ToUsbOutputWithContext(ctx context.Context) UsbOutput
}

type UsbMap

type UsbMap map[string]UsbInput

func (UsbMap) ElementType

func (UsbMap) ElementType() reflect.Type

func (UsbMap) ToUsbMapOutput

func (i UsbMap) ToUsbMapOutput() UsbMapOutput

func (UsbMap) ToUsbMapOutputWithContext

func (i UsbMap) ToUsbMapOutputWithContext(ctx context.Context) UsbMapOutput

type UsbMapInput

type UsbMapInput interface {
	pulumi.Input

	ToUsbMapOutput() UsbMapOutput
	ToUsbMapOutputWithContext(context.Context) UsbMapOutput
}

UsbMapInput is an input type that accepts UsbMap and UsbMapOutput values. You can construct a concrete instance of `UsbMapInput` via:

UsbMap{ "key": UsbArgs{...} }

type UsbMapOutput

type UsbMapOutput struct{ *pulumi.OutputState }

func (UsbMapOutput) ElementType

func (UsbMapOutput) ElementType() reflect.Type

func (UsbMapOutput) MapIndex

func (o UsbMapOutput) MapIndex(k pulumi.StringInput) UsbOutput

func (UsbMapOutput) ToUsbMapOutput

func (o UsbMapOutput) ToUsbMapOutput() UsbMapOutput

func (UsbMapOutput) ToUsbMapOutputWithContext

func (o UsbMapOutput) ToUsbMapOutputWithContext(ctx context.Context) UsbMapOutput

type UsbMapType

type UsbMapType struct {
	// The comment of the mapped USB device.
	Comment *string `pulumi:"comment"`
	// The ID of the map.
	Id string `pulumi:"id"`
	// The node name of the map.
	Node string `pulumi:"node"`
	// The path of the map. For hardware mappings of type USB the path is optional and indicates that the device is mapped through the device ID instead of ports.
	Path *string `pulumi:"path"`
}

type UsbMapTypeArgs

type UsbMapTypeArgs struct {
	// The comment of the mapped USB device.
	Comment pulumi.StringPtrInput `pulumi:"comment"`
	// The ID of the map.
	Id pulumi.StringInput `pulumi:"id"`
	// The node name of the map.
	Node pulumi.StringInput `pulumi:"node"`
	// The path of the map. For hardware mappings of type USB the path is optional and indicates that the device is mapped through the device ID instead of ports.
	Path pulumi.StringPtrInput `pulumi:"path"`
}

func (UsbMapTypeArgs) ElementType

func (UsbMapTypeArgs) ElementType() reflect.Type

func (UsbMapTypeArgs) ToUsbMapTypeOutput

func (i UsbMapTypeArgs) ToUsbMapTypeOutput() UsbMapTypeOutput

func (UsbMapTypeArgs) ToUsbMapTypeOutputWithContext

func (i UsbMapTypeArgs) ToUsbMapTypeOutputWithContext(ctx context.Context) UsbMapTypeOutput

type UsbMapTypeArray

type UsbMapTypeArray []UsbMapTypeInput

func (UsbMapTypeArray) ElementType

func (UsbMapTypeArray) ElementType() reflect.Type

func (UsbMapTypeArray) ToUsbMapTypeArrayOutput

func (i UsbMapTypeArray) ToUsbMapTypeArrayOutput() UsbMapTypeArrayOutput

func (UsbMapTypeArray) ToUsbMapTypeArrayOutputWithContext

func (i UsbMapTypeArray) ToUsbMapTypeArrayOutputWithContext(ctx context.Context) UsbMapTypeArrayOutput

type UsbMapTypeArrayInput

type UsbMapTypeArrayInput interface {
	pulumi.Input

	ToUsbMapTypeArrayOutput() UsbMapTypeArrayOutput
	ToUsbMapTypeArrayOutputWithContext(context.Context) UsbMapTypeArrayOutput
}

UsbMapTypeArrayInput is an input type that accepts UsbMapTypeArray and UsbMapTypeArrayOutput values. You can construct a concrete instance of `UsbMapTypeArrayInput` via:

UsbMapTypeArray{ UsbMapTypeArgs{...} }

type UsbMapTypeArrayOutput

type UsbMapTypeArrayOutput struct{ *pulumi.OutputState }

func (UsbMapTypeArrayOutput) ElementType

func (UsbMapTypeArrayOutput) ElementType() reflect.Type

func (UsbMapTypeArrayOutput) Index

func (UsbMapTypeArrayOutput) ToUsbMapTypeArrayOutput

func (o UsbMapTypeArrayOutput) ToUsbMapTypeArrayOutput() UsbMapTypeArrayOutput

func (UsbMapTypeArrayOutput) ToUsbMapTypeArrayOutputWithContext

func (o UsbMapTypeArrayOutput) ToUsbMapTypeArrayOutputWithContext(ctx context.Context) UsbMapTypeArrayOutput

type UsbMapTypeInput

type UsbMapTypeInput interface {
	pulumi.Input

	ToUsbMapTypeOutput() UsbMapTypeOutput
	ToUsbMapTypeOutputWithContext(context.Context) UsbMapTypeOutput
}

UsbMapTypeInput is an input type that accepts UsbMapTypeArgs and UsbMapTypeOutput values. You can construct a concrete instance of `UsbMapTypeInput` via:

UsbMapTypeArgs{...}

type UsbMapTypeOutput

type UsbMapTypeOutput struct{ *pulumi.OutputState }

func (UsbMapTypeOutput) Comment

The comment of the mapped USB device.

func (UsbMapTypeOutput) ElementType

func (UsbMapTypeOutput) ElementType() reflect.Type

func (UsbMapTypeOutput) Id

The ID of the map.

func (UsbMapTypeOutput) Node

The node name of the map.

func (UsbMapTypeOutput) Path

The path of the map. For hardware mappings of type USB the path is optional and indicates that the device is mapped through the device ID instead of ports.

func (UsbMapTypeOutput) ToUsbMapTypeOutput

func (o UsbMapTypeOutput) ToUsbMapTypeOutput() UsbMapTypeOutput

func (UsbMapTypeOutput) ToUsbMapTypeOutputWithContext

func (o UsbMapTypeOutput) ToUsbMapTypeOutputWithContext(ctx context.Context) UsbMapTypeOutput

type UsbOutput

type UsbOutput struct{ *pulumi.OutputState }

func (UsbOutput) Comment

func (o UsbOutput) Comment() pulumi.StringPtrOutput

The comment of this USB hardware mapping.

func (UsbOutput) ElementType

func (UsbOutput) ElementType() reflect.Type

func (UsbOutput) Maps

The actual map of devices for the hardware mapping.

func (UsbOutput) Name

func (o UsbOutput) Name() pulumi.StringOutput

The name of this hardware mapping.

func (UsbOutput) ToUsbOutput

func (o UsbOutput) ToUsbOutput() UsbOutput

func (UsbOutput) ToUsbOutputWithContext

func (o UsbOutput) ToUsbOutputWithContext(ctx context.Context) UsbOutput

type UsbState

type UsbState struct {
	// The comment of this USB hardware mapping.
	Comment pulumi.StringPtrInput
	// The actual map of devices for the hardware mapping.
	Maps UsbMapTypeArrayInput
	// The name of this hardware mapping.
	Name pulumi.StringPtrInput
}

func (UsbState) ElementType

func (UsbState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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