MCPcopy Index your code

hub / github.com/Telmate/proxmox-api-go / functions

Functions3,081 in github.com/Telmate/proxmox-api-go

↓ 12 callersFunctionCSV
CSV converts an array of fmt.Stringer to a CSV string
internal/array/array.go:45
↓ 12 callersMethodString
()
proxmox/config__lxc__new.go:853
↓ 12 callersMethodString
()
proxmox/config__apiToken.go:143
↓ 12 callersMethodValidate
For fmt.Stringer interface. Check if a groupName is valid.
proxmox/config__group.go:552
↓ 12 callersMethoderror
()
proxmox/permission.go:98
↓ 12 callersMethodmapToSdkSubroutine
(flags map[string]rune, flag string)
proxmox/config__qemu__cpu.go:119
↓ 12 callersMethodput
( ctx context.Context, url string, params *url.Values, headers *http.Header, body *[]byte, )
proxmox/session.go:393
↓ 11 callersMethodGetItemConfigMapStringInterface
Shared
proxmox/client.go:2233
↓ 11 callersMethodPostWithTask
Makes a POST request and waits on proxmox for the task to complete. It returns the status of the test as 'exitStatus' and the HTTP error as 'err'.
proxmox/client.go:2287
↓ 11 callersMethodPut
Makes a PUT request without waiting on proxmox for the task to complete. It returns the HTTP error as 'err'.
proxmox/client.go:2299
↓ 11 callersMethodValidate
String is for fmt.Stringer.
proxmox/config__pool.go:969
↓ 11 callersMethodValidate
TODO improve when Name and Realm have their own types
proxmox/config__user.go:552
↓ 11 callersFunctionbTOr
(in bool)
proxmox/util.go:40
↓ 11 callersMethodcheckInitialized
Checks if the client is initialized and returns an error if not
proxmox/client.go:52
↓ 11 callersFunctiondiskSubtypeSet
(set bool)
proxmox/config__qemu__disk.go:1214
↓ 11 callersMethodmapToApiCreate
Swap is for sort.Interface.
proxmox/type__tag.go:20
↓ 11 callersMethodmapToSDK
(tags string)
proxmox/type__tag.go:59
↓ 10 callersFunctionBoolInvert
(b bool)
proxmox/util.go:97
↓ 10 callersFunctionCheckConfig
(t *testing.T, ctx context.Context, c *pveSDK.Client, guestID pveSDK.GuestID, expected *pveSDK.ConfigQemu)
test/api/qemu/helper.go:24
↓ 10 callersMethodGetVmInfo
(ctx context.Context, vmr *VmRef)
proxmox/client.go:317
↓ 10 callersMethodString
()
proxmox/config__pool.go:967
↓ 10 callersMethodValidate
()
proxmox/config__lxc__networks.go:558
↓ 10 callersMethodValidate
(current *ConfigLXC)
proxmox/config__lxc__new.go:470
↓ 10 callersFunctionValidateStringInArray
(array []string, value, text string)
proxmox/validate.go:30
↓ 10 callersMethodget
( ctx context.Context, url string, params *url.Values, headers *http.Header, )
proxmox/session.go:349
↓ 10 callersMethodstring
(privileged bool)
proxmox/config__lxc__mount.go:107
↓ 9 callersFunctionCleanup
Default CLEANUP test for Group
test/cli/Group/group_sub_tests/group_sub_tests.go:13
↓ 9 callersFunctionCloudInitSnippetPath_Max_Legal
256 valid characters
test/data/test_data_qemu/type_CloudInitSnippetPath.go:41
↓ 9 callersFunctionDelete
Default DELETE test for Group
test/cli/Group/group_sub_tests/group_sub_tests.go:23
↓ 9 callersMethodGetResourceList
TODO this func should not be exported
proxmox/client.go:287
↓ 9 callersMethodHandleTaskError
HandleTaskError reads the body from the passed in HTTP response and closes it. It returns the body of the passed in HTTP response.
proxmox/client.go:2363
↓ 9 callersFunctionQemuDiskSerial_Max_Illegal
61 valid charaters
test/data/test_data_qemu/type_QemuDiskSerial.go:11
↓ 9 callersFunctionRequestsDeleteResponse
(urlPath Path, expected any, response []byte)
internal/mockServer/requests.go:31
↓ 9 callersFunctionRequestsPutHandler
(urlPath Path, handler func(t *testing.T, v url.Values))
internal/mockServer/requests.go:97
↓ 9 callersMethodSetDefaults
()
proxmox/config__storage.go:305
↓ 9 callersMethodTest
(t *testing.T)
proxmox/config__qemu__helper__api_test.go:11
↓ 9 callersMethodValidate
()
proxmox/snapshot.go:650
↓ 9 callersMethodValidate
Used for fmt.Stringer interface
proxmox/config__apiToken.go:349
↓ 9 callersMethodapiRaw
TODO once we use `ClientNew` everywhere this function can be removed
proxmox/client__newtest.go:16
↓ 9 callersMethodgetList
(ctx context.Context, url, text, message string)
proxmox/client__api__reusable.go:79
↓ 9 callersMethodgetMap
(ctx context.Context, url, text, message string)
proxmox/client__api__reusable.go:71
↓ 9 callersMethodmapToApiCreate
()
proxmox/config__lxc__networks.go:515
↓ 9 callersMethodputRawRetry
(ctx context.Context, url string, body *[]byte, tries int)
proxmox/client__api__reusable.go:204
↓ 9 callersFunctiontestParamsEqual
(t *testing.T, expected map[string]string, params *[]byte, msgAndArgs ...any)
proxmox/helper_test.go:28
↓ 8 callersFunctionAddToList
(list, newItem string)
proxmox/util.go:223
↓ 8 callersMethodCreateTest
()
test/api/Test.go:57
↓ 8 callersMethodDelete
Makes a DELETE request without waiting on proxmox for the task to complete. It returns the HTTP error as 'err'.
proxmox/client.go:2328
↓ 8 callersMethodGetItemList
(ctx context.Context, url string)
proxmox/client.go:2356
↓ 8 callersMethodGetState
()
proxmox/vmref.go:565
↓ 8 callersFunctionItemInKeyOfArray
Check the value of a key in a nested array of map[string]interface{}
proxmox/util.go:102
↓ 8 callersMethodPost
Makes a POST request without waiting on proxmox for the task to complete. It returns the HTTP error as 'err'.
proxmox/client.go:2270
↓ 8 callersFunctionPrintItemUpdated
(out io.Writer, id, text string)
cli/print.go:19
↓ 8 callersMethodStatusChangeVm
(ctx context.Context, vmr *VmRef, params map[string]interface{}, setStatus string)
proxmox/client.go:623
↓ 8 callersMethodValidate
(current *QemuUSB)
proxmox/config__qemu__usb.go:299
↓ 8 callersMethodValidate
()
proxmox/config__ha__rules.go:911
↓ 8 callersMethodValidate
()
proxmox/config__qemu__network.go:32
↓ 8 callersMethodcheckDuplicates
(numberOFCloudInitDrives uint8)
proxmox/config__qemu__disk.go:153
↓ 8 callersMethoddelete
( ctx context.Context, url string, params *url.Values, headers *http.Header, )
proxmox/session.go:340
↓ 8 callersFunctiondeleteID
(ctx context.Context, args []string, IDtype string)
cli/command/delete/delete.go:21
↓ 8 callersFunctiongenerateUPID
(node NodeName, task string, guest GuestID, user UserID)
proxmox/helper_test.go:86
↓ 8 callersFunctiongetConfig
(args []string, IDtype string)
cli/command/get/get.go:19
↓ 8 callersMethodmapToApi
(version Version)
proxmox/config__qemu__cpu.go:477
↓ 8 callersMethodmapToApiUpdate
(current Tags)
proxmox/type__tag.go:46
↓ 8 callersMethodmapToIntMap
()
proxmox/config__qemu__disk__scsi.go:117
↓ 8 callersMethodmapToIntMap
()
proxmox/config__qemu__disk__ide.go:86
↓ 8 callersMethodmapToIntMap
()
proxmox/config__qemu__disk__sata.go:88
↓ 8 callersFunctionpoolRead
(t *testing.T, ctx context.Context, c pveSDK.PoolInterface, name pveSDK.PoolName, comment string, guests []p
test/api/Pool/helper_test.go:12
↓ 7 callersMethodAddMembers
(context.Context, PoolName, []GuestID, []StorageName)
proxmox/config__pool.go:18
↓ 7 callersMethodCreateQemu
(ctx context.Context, guest VmRef, name SnapshotName, description string, vmState bool)
proxmox/snapshot.go:22
↓ 7 callersFunctionLogFatalError
(err error)
cli/log.go:7
↓ 7 callersFunctionMinimumConfig
(id pveSDK.GuestID, node pveSDK.NodeName, name pveSDK.GuestName)
test/api/qemu/config.go:93
↓ 7 callersMethodNode
()
proxmox/client.go:106
↓ 7 callersFunctionPrintGuestStatus
(out io.Writer, id proxmox.GuestID, text string)
cli/print.go:11
↓ 7 callersFunctionPrintItemCreated
(out io.Writer, id, text string)
cli/print.go:15
↓ 7 callersMethodStop
Stop will stop the guest. The overrule flag will opportunistically set the overrule-shutdown parameter if the Proxmox VE version is 8.0 or higher. If
proxmox/config__guest.go:41
↓ 7 callersMethodString
()
proxmox/config__group.go:549
↓ 7 callersMethodValidate
(current *LxcMount, privileged bool)
proxmox/config__lxc__mount.go:689
↓ 7 callersFunctionfakeClient
provides a fake client to bypass *Client.checkInitialized() during testing
proxmox/client.go:63
↓ 7 callersMethodmapToApiCreate
()
proxmox/config__lxc__new.go:101
↓ 7 callersMethodmapToApiCreate
(version Version)
proxmox/config__qemu.go:414
↓ 7 callersMethodmapToIntMap
()
proxmox/config__qemu__disk__virtio.go:90
↓ 7 callersMethodparse
(guestType string)
proxmox/config__guest.go:545
↓ 7 callersMethodstring
()
proxmox/type__mtu.go:23
↓ 7 callersMethodvalidateCreate
(version Version)
proxmox/config__qemu.go:1010
↓ 6 callersFunctionArrayToCSV
Convert Array to a comma (,) delimited list
proxmox/util.go:235
↓ 6 callersMethodAsArrays
()
proxmox/config__pool.go:541
↓ 6 callersFunctionBtoi
(b bool)
proxmox/util.go:31
↓ 6 callersMethodCreateLxc
(ctx context.Context, guest VmRef, name SnapshotName, description string)
proxmox/snapshot.go:20
↓ 6 callersMethodGetEnabled
()
proxmox/config__ha__rules.go:97
↓ 6 callersMethodGetItemListInterfaceArray
(ctx context.Context, url string)
proxmox/client.go:2344
↓ 6 callersMethodGetRawGuestStatus
(ctx context.Context, c *Client)
proxmox/vmref.go:173
↓ 6 callersMethodGetStatus
()
proxmox/config__guest__resource.go:124
↓ 6 callersFunctionPrintFormattedJson
(out io.Writer, input interface{})
cli/print.go:37
↓ 6 callersFunctionRequestsDelete
(urlPath Path, expected any)
internal/mockServer/requests.go:22
↓ 6 callersMethodSetNode
(node string)
proxmox/client.go:86
↓ 6 callersMethodStart
(context.Context, VmRef)
proxmox/config__guest.go:35
↓ 6 callersMethodString
()
proxmox/type__tag.go:122
↓ 6 callersMethodcheck_unsafe
Returns nil when we had enough information in the VmRef to determine the guest resource, otherwise it returns the guest resource or an error if it can
proxmox/vmref.go:18
↓ 6 callersFunctioncombineParamsAndBody
Combines params and raw body into a new body. This function can be removed once all bodys are created without the intermidiary params step.
proxmox/util.go:49
↓ 6 callersMethoddeleteRetry
(ctx context.Context, url string, tries int)
proxmox/client__api__reusable.go:37
← previousnext →101–200 of 3,081, ranked by callers