Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Telmate/terraform-provider-proxmox
/ functions
Functions
85 in github.com/Telmate/terraform-provider-proxmox
⨍
Functions
85
◇
Types & classes
4
↓ 17 callers
Method
unlock
()
proxmox/provider.go:354
↓ 15 callers
Function
pmParallelBegin
(pconf *providerConfiguration)
proxmox/provider.go:366
↓ 8 callers
Function
BoolPointer
(b bool)
proxmox/util.go:475
↓ 8 callers
Function
ExpandDevicesList
Consumes a terraform TypeList of a Qemu Device (network, hard drive, etc) and returns the "Expanded" version of the equivalent configuration that the
proxmox/resource_vm_qemu.go:1846
↓ 8 callers
Function
parseResourceId
(resId string)
proxmox/provider.go:379
↓ 7 callers
Function
CreateSubLogger
Create a sublogger from the rootLogger This is helpful as it allows for custom logging level for each component/part of the system. The loggerName st
proxmox/util.go:200
↓ 7 callers
Function
FlattenDevicesList
Consumes an API return (pxapi.QemuDevices) and "flattens" it into a []map[string]interface{} as expected by the terraform interface for TypeList
proxmox/resource_vm_qemu.go:1815
↓ 7 callers
Function
diskSlotName
(disk pxapi.QemuDevice)
proxmox/resource_lxc.go:995
↓ 7 callers
Function
resourceId
(targetNode string, resType string, vmId int)
proxmox/provider.go:375
↓ 7 callers
Function
testAccPreCheck
testAccPreCheck validates the necessary test API keys exist in the testing environment
proxmox/resource_vm_qemu_test.go:19
↓ 7 callers
Function
testAccProxmoxProviderFactory
()
proxmox/resource_vm_qemu_test.go:31
↓ 4 callers
Function
DeviceToMap
(device pxapi.QemuDevice, key interface{})
proxmox/util.go:280
↓ 4 callers
Function
DevicesListToDevices
(devicesList []interface{}, key string)
proxmox/util.go:286
↓ 4 callers
Function
DevicesListToMapByKey
(devicesList []interface{}, key string)
proxmox/util.go:267
↓ 4 callers
Function
Provider
Provider - Terrafrom properties for proxmox
proxmox/provider.go:30
↓ 4 callers
Function
parseClusterResourceId
(resId string)
proxmox/provider.go:394
↓ 4 callers
Function
resourceTimeouts
()
proxmox/timeouts.go:9
↓ 4 callers
Function
testAccExampleQemuBasic
testAccCheckVmCreate tests a simple creation/destruction cycle func testAccCheckExampleResourceDestroy(s *terraform.State) error { // retrieve the co
proxmox/resource_vm_qemu_test.go:79
↓ 3 callers
Function
DropElementsFromMap
Drops an element from each map in a []map[string]interface{} this allows a quick and easy way to remove things like "id" that is added by the proxmox
proxmox/resource_vm_qemu.go:1804
↓ 3 callers
Function
_resourceLxcDiskRead
(d *schema.ResourceData, meta interface{})
proxmox/resource_lxc_disk.go:193
↓ 3 callers
Function
_resourcePoolRead
(d *schema.ResourceData, meta interface{})
proxmox/resource_pool.go:64
↓ 3 callers
Function
adaptDeviceToConf
Further parses a QemuDevice by normalizing types
proxmox/util.go:315
↓ 3 callers
Function
initConnInfo
( d *schema.ResourceData, pconf *providerConfiguration, client *pxapi.Client, vmr *pxapi.VmRef, config *p
proxmox/resource_vm_qemu.go:1900
↓ 3 callers
Function
prepareDiskSize
Increase disk size if original disk was smaller than new disk.
proxmox/resource_vm_qemu.go:1730
↓ 3 callers
Function
processLxcDiskChanges
( prevDiskSet KeyedDeviceMap, newDiskSet KeyedDeviceMap, pconf *providerConfiguration, vmr *pxapi.VmRef, )
proxmox/resource_lxc.go:887
↓ 3 callers
Function
testAccExampleQemuStandard
testAccExampleResource generates a virtual machine and uses the disk slot setting to assign a non-standard disk position (scsi5 vs scsi0) func testAcc
proxmox/resource_vm_qemu_test.go:131
↓ 2 callers
Function
AssertNoNonSchemaValues
( devices pxapi.QemuDevices, schemaDef *schema.Schema, )
proxmox/util.go:294
↓ 2 callers
Function
ConfigureLogger
Configure the debug logger for this provider. The goal here is to enable selective amounts of output for targetted debugging without overwhelming wit
proxmox/util.go:86
↓ 2 callers
Function
DevicesSetToMap
Converting from schema.TypeSet to map of id and conf for each device, which will be sent to Proxmox API.
proxmox/resource_vm_qemu.go:1781
↓ 2 callers
Function
UpdateDeviceConfDefaults
( activeDeviceConf pxapi.QemuDevice, defaultDeviceConf *schema.Set, )
proxmox/util.go:226
↓ 2 callers
Function
VMIDValidator
()
proxmox/validators.go:62
↓ 2 callers
Function
clusterResourceId
(resType string, resId string)
proxmox/provider.go:390
↓ 2 callers
Function
extractDiskOptions
(diskOptions map[string]interface{})
proxmox/resource_lxc_disk.go:260
↓ 2 callers
Function
levelStringToZerologLevel
given a string, return the appropriate zerolog level
proxmox/util.go:31
↓ 2 callers
Function
nextVmId
(pconf *providerConfiguration)
proxmox/provider.go:324
↓ 2 callers
Function
processDiskResize
( prevDisk pxapi.QemuDevice, newDisk pxapi.QemuDevice, diskName string, pconf *providerConfiguration, vmr *
proxmox/resource_lxc.go:1007
↓ 2 callers
Function
resourceDataToFlatValues
(d *schema.ResourceData, resource *schema.Resource)
proxmox/util.go:348
↓ 2 callers
Function
resourceLxcRead
(d *schema.ResourceData, meta interface{})
proxmox/resource_lxc.go:746
↓ 2 callers
Function
resourceVmQemuRead
(d *schema.ResourceData, meta interface{})
proxmox/resource_vm_qemu.go:1445
↓ 1 callers
Function
BIOSValidator
()
proxmox/validators.go:83
↓ 1 callers
Function
MacAddressValidator
()
proxmox/validators.go:30
↓ 1 callers
Function
MachineTypeValidator
()
proxmox/validators.go:13
↓ 1 callers
Function
UpdateDevicesSet
Update schema.TypeSet with new values comes from Proxmox API. TODO: remove these set functions and convert attributes using a set to a list instead.
proxmox/resource_vm_qemu.go:1878
↓ 1 callers
Function
_resourceLxcRead
(d *schema.ResourceData, meta interface{})
proxmox/resource_lxc.go:750
↓ 1 callers
Function
_resourceVmQemuRead
(d *schema.ResourceData, meta interface{})
proxmox/resource_vm_qemu.go:1449
↓ 1 callers
Function
getClient
(pm_api_url string, pm_user string, pm_password string, pm_api_token_id string, pm_api_token_secret string
proxmox/provider.go:269
↓ 1 callers
Method
lock
()
proxmox/provider.go:340
↓ 1 callers
Function
permissions_check
(s1 []string, s2 []string)
proxmox/util.go:479
↓ 1 callers
Function
resourceLxc
()
proxmox/resource_lxc.go:16
↓ 1 callers
Function
resourceLxcDisk
()
proxmox/resource_lxc_disk.go:11
↓ 1 callers
Function
resourcePool
()
proxmox/resource_pool.go:11
↓ 1 callers
Function
resourceVmQemu
()
proxmox/resource_vm_qemu.go:27
↓ 1 callers
Function
schemaListToFlatValues
(schemaList []interface{}, resource *schema.Resource)
proxmox/util.go:404
↓ 1 callers
Function
schemaSetToFlatValues
(set *schema.Set, resource *schema.Resource)
proxmox/util.go:376
↓ 1 callers
Function
testAccExampleQemuClone
testAccExampleResourceClone generate two simply configured VMs where the second is a clone of the first.
proxmox/resource_vm_qemu_test.go:160
↓ 1 callers
Function
testAccExampleQemuCloneWithTwoDisks
testAccExampleResourceClone generate two simply configured VMs where the second is a clone of the first.
proxmox/resource_vm_qemu_test.go:180
↓ 1 callers
Function
testAccExampleQemuOvmf
testAccExampleQemuOvmf generates a simple VM which uses EFI bios
proxmox/resource_vm_qemu_test.go:147
↓ 1 callers
Function
testAccExampleQemuPxe
testAccExampleQemuPxe generates the most simplistic PXE boot VM we're able to make this confirms we can spin up a PXE boot VM using just default value
proxmox/resource_vm_qemu_test.go:93
↓ 1 callers
Function
testOptionalArguments
func getIP(ifs pxapi.AgentNetworkInterface, macaddr string) string { for _, iface := range ifs { if strings.ToUpper(iface.MACAddress) == strings.To
proxmox/util.go:462
Function
DevicesSetToMapWithoutId
(devicesSet *schema.Set)
proxmox/util.go:251
Function
TestAccProxmoxVmQemu_BasicCreate
TestAccProxmoxVmQemu_BasicCreate tests a simple creation and destruction of the smallest, but but still viable, configuration for a VM we can create.
proxmox/resource_vm_qemu_test.go:205
Function
TestAccProxmoxVmQemu_BasicCreateClone
TODO: this test FAILS - it looks like the api library isn't actually sending the slot request to proxmox? needs further investigation. TestAccProxmox
proxmox/resource_vm_qemu_test.go:270
Function
TestAccProxmoxVmQemu_CreateCloneWithTwoDisks
TestAccProxmoxVmQemu_CreateCloneWithTwoDisks create a minimally configured VM, then creates a cloned vm with two disks, each increased in size compare
proxmox/resource_vm_qemu_test.go:297
Function
TestAccProxmoxVmQemu_PxeCreate
TestAccProxmoxVmQemu_PxeCreate tests a simple creation and destruction of the smallest, but but still viable, configuration for a PXE Network boot VM
proxmox/resource_vm_qemu_test.go:326
Function
TestAccProxmoxVmQemu_StandardCreate
TestAccProxmoxVmQemu_BasicCreate tests a simple creation and destruction of the smallest, but but still viable, configuration for a VM we can create.
proxmox/resource_vm_qemu_test.go:226
Function
TestAccProxmoxVmQemu_UpdateNoReboot
TestAccProxmoxVmQemu_StandardUpdateNoReboot tests a simple update of a vm_qemu resource, and the modified parameters can be applied without reboot.
proxmox/resource_vm_qemu_test.go:347
Function
TestAccProxmoxVmQemu_UpdateRebootRequired
TestAccProxmoxVmQemu_UpdateRebootRequired tests a simple update of a vm_qemu resource, and the modified parameters can be only applied with reboot.
proxmox/resource_vm_qemu_test.go:376
Function
TestParseClusteResources
(t *testing.T)
proxmox/provider_test.go:26
Function
TestProviderInstantiation
(t *testing.T)
proxmox/provider_test.go:10
Function
TestProviderSchema
(t *testing.T)
proxmox/provider_test.go:18
Function
main
()
main.go:11
Function
providerConfigure
(d *schema.ResourceData)
proxmox/provider.go:172
Function
resourceLxcCreate
(d *schema.ResourceData, meta interface{})
proxmox/resource_lxc.go:440
Function
resourceLxcDiskCreate
(d *schema.ResourceData, meta interface{})
proxmox/resource_lxc_disk.go:111
Function
resourceLxcDiskDelete
(d *schema.ResourceData, meta interface{})
proxmox/resource_lxc_disk.go:234
Function
resourceLxcDiskRead
(d *schema.ResourceData, meta interface{})
proxmox/resource_lxc_disk.go:186
Function
resourceLxcDiskUpdate
(d *schema.ResourceData, meta interface{})
proxmox/resource_lxc_disk.go:155
Function
resourceLxcUpdate
(d *schema.ResourceData, meta interface{})
proxmox/resource_lxc.go:610
Function
resourcePoolCreate
(d *schema.ResourceData, meta interface{})
proxmox/resource_pool.go:38
Function
resourcePoolDelete
(d *schema.ResourceData, meta interface{})
proxmox/resource_pool.go:120
Function
resourcePoolRead
(d *schema.ResourceData, meta interface{})
proxmox/resource_pool.go:57
Function
resourcePoolUpdate
(d *schema.ResourceData, meta interface{})
proxmox/resource_pool.go:94
Function
resourceVmQemuCreate
(d *schema.ResourceData, meta interface{})
proxmox/resource_vm_qemu.go:830
Function
resourceVmQemuDelete
(d *schema.ResourceData, meta interface{})
proxmox/resource_vm_qemu.go:1697
Function
resourceVmQemuUpdate
(ctx context.Context, d *schema.ResourceData, meta interface{})
proxmox/resource_vm_qemu.go:1107