network

package
v0.64.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: MPL-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// MaxNetworkDevices is the maximum number of network devices supported by the resource.
	MaxNetworkDevices = 32

	// MkNetworkDevice is the name of the network device.
	MkNetworkDevice = "network_device"
)

Variables

This section is empty.

Functions

func CustomizeDiff

func CustomizeDiff() []schema.CustomizeDiffFunc

CustomizeDiff returns the custom diff functions for the network resource.

func GetNetworkDeviceObjects

func GetNetworkDeviceObjects(d *schema.ResourceData) (vms.CustomNetworkDevices, error)

GetNetworkDeviceObjects returns a list of network devices from the resource data.

func ReadNetworkDeviceObjects

func ReadNetworkDeviceObjects(d *schema.ResourceData, vmConfig *vms.GetResponseData) diag.Diagnostics

ReadNetworkDeviceObjects reads the network device objects from the resource data.

func ReadNetworkValues

func ReadNetworkValues(
	ctx context.Context,
	d *schema.ResourceData,
	vmAPI *vms.Client,
	started bool,
	vmConfig *vms.GetResponseData,
	agentTimeout time.Duration,
) diag.Diagnostics

ReadNetworkValues reads the network values from the resource data.

func Schema

func Schema() map[string]*schema.Schema

Schema returns the schema for the network resource.

Types

This section is empty.

Jump to

Keyboard shortcuts

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