types

package
v1.59.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPAllocationMode

type IPAllocationMode string
const (
	PoolIPAllocationMode IPAllocationMode = "POOL"
	DHCPIPAllocationMode IPAllocationMode = "DHCP"
)

type RawConfig

type RawConfig struct {
	// Provider configuration.
	Username      providerconfigtypes.ConfigVarString `json:"username"`
	Password      providerconfigtypes.ConfigVarString `json:"password"`
	APIToken      providerconfigtypes.ConfigVarString `json:"apiToken"`
	Organization  providerconfigtypes.ConfigVarString `json:"organization"`
	URL           providerconfigtypes.ConfigVarString `json:"url"`
	VDC           providerconfigtypes.ConfigVarString `json:"vdc"`
	AllowInsecure providerconfigtypes.ConfigVarBool   `json:"allowInsecure"`

	// VM configuration.
	VApp            providerconfigtypes.ConfigVarString `json:"vapp"`
	Template        providerconfigtypes.ConfigVarString `json:"template"`
	Catalog         providerconfigtypes.ConfigVarString `json:"catalog"`
	PlacementPolicy *string                             `json:"placementPolicy,omitempty"`

	// Network configuration.
	Network          providerconfigtypes.ConfigVarString `json:"network"`
	IPAllocationMode IPAllocationMode                    `json:"ipAllocationMode,omitempty"`

	// Compute configuration.
	CPUs         int64   `json:"cpus"`
	CPUCores     int64   `json:"cpuCores"`
	MemoryMB     int64   `json:"memoryMB"`
	SizingPolicy *string `json:"sizingPolicy,omitempty"`

	// Storage configuration.
	DiskSizeGB     *int64  `json:"diskSizeGB,omitempty"`
	DiskBusType    *string `json:"diskBusType,omitempty"`
	DiskIOPS       *int64  `json:"diskIOPS,omitempty"`
	StorageProfile *string `json:"storageProfile,omitempty"`

	// Metadata configuration.
	Metadata *map[string]string `json:"metadata,omitempty"`
}

RawConfig represents VMware Cloud Director specific configuration.

func GetConfig

func GetConfig(pconfig providerconfigtypes.Config) (*RawConfig, error)

Jump to

Keyboard shortcuts

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