MCPcopy Index your code

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

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

↓ 3,501 callersFunctionPointer
Gets inlined by the compiler, so it's not a performance hit
internal/util/util.go:4
↓ 1,383 callersMethodNew
()
proxmox/client.go:168
↓ 175 callersMethodValidate
()
proxmox/node.go:27
↓ 173 callersMethodDelete
Delete deletes the specified pool. Returns true if the pool was deleted, false if the pool did not exist.
proxmox/config__pool.go:26
↓ 154 callersFunctionRequestsGetJson
(urlPath Path, v any)
internal/mockServer/requests.go:41
↓ 143 callersMethodStandardTest
(t *testing.T)
test/cli/shared_tests.go:49
↓ 140 callersFunctionfailError
(err error)
main.go:1068
↓ 124 callersFunctionAppend
(r ...[]Request)
internal/mockServer/request.go:27
↓ 111 callersMethodError
()
proxmox/error.go:84
↓ 99 callersMethodCreate
(context.Context, ConfigPool)
proxmox/config__pool.go:21
↓ 91 callersMethodGet
()
proxmox/helper_test.go:69
↓ 89 callersMethodString
()
proxmox/node.go:58
↓ 82 callersFunctionContext
()
cli/cobra.go:31
↓ 80 callersFunctiontestQemuBaseConfig_Validate
(config ConfigQemu)
proxmox/config__qemu_test.go:124
↓ 72 callersFunctionRequestsPut
RequestsPut creates a request that expects a PUT with JSON body matching 'expected' all values in 'expected' will be treated as strings or arrays of s
internal/mockServer/requests.go:88
↓ 69 callersFunctionRequestsError
(url Path, method Method, Code HTTPcode, amount uint)
internal/mockServer/requests.go:139
↓ 69 callersMethodSet
(context.Context, ConfigPool)
proxmox/config__pool.go:42
↓ 57 callersMethodLogin
(ctx context.Context, username string, password string, otp string)
proxmox/client.go:223
↓ 55 callersFunctionNewClient
()
cli/cobra.go:56
↓ 55 callersMethodUpdate
(context.Context, ConfigPool)
proxmox/config__pool.go:45
↓ 53 callersFunctionRequestsErrorHandled
(url Path, method Method, err HTTPerror)
internal/mockServer/requests.go:130
↓ 50 callersFunctionLeft
(input string, length int, padChar rune)
internal/pad/left.go:3
↓ 49 callersMethodClear
Clear removes all configured requests and responses. Panics if there are unhandled requests remaining.
internal/mockServer/server.go:21
↓ 49 callersFunctiontestMockServerInit
Creates a test server and returns a authenticated client connected to it.
proxmox/helper_test.go:16
↓ 48 callersMethodCheckVmRef
(ctx context.Context, vmr *VmRef)
proxmox/client.go:307
↓ 48 callersFunctionRequestsGetJsonData
(urlPath Path, v any)
internal/mockServer/requests.go:51
↓ 44 callersMethodLen
()
proxmox/config__pool.go:448
↓ 41 callersFunctionresponseJSON
(resp *http.Response)
proxmox/session.go:141
↓ 38 callersMethodnew
()
proxmox/client.go:180
↓ 38 callersFunctionparamsToBody
(params map[string]interface{})
proxmox/session.go:71
↓ 37 callersFunctionRequestsVersion
(version string)
internal/mockServer/requests.go:55
↓ 37 callersMethodextract
(i interface{})
proxmox/permission.go:211
↓ 34 callersFunctionNewVmRef
(vmId GuestID)
proxmox/client.go:129
↓ 33 callersFunctiontestQemuBaseConfig_get
(config ConfigQemu)
proxmox/config__qemu_test.go:87
↓ 32 callersMethodList
(ctx context.Context)
proxmox/config__pool.go:32
↓ 31 callersFunctionRequestsPostResponse
(urlPath Path, expected any, response []byte)
internal/mockServer/requests.go:76
↓ 31 callersMethodWaitForCompletion
WaitForCompletion - poll the API for task completion
proxmox/client.go:577
↓ 31 callersMethodmapToStruct
(param string, LinkedVmId *GuestID)
proxmox/config__qemu__disk__scsi.go:420
↓ 30 callersFunctionJsonError
(code HTTPcode, data map[string]any)
internal/mockServer/error.go:14
↓ 29 callersFunctionErrorKeyEmpty
(text string)
proxmox/validate.go:81
↓ 29 callersFunctionRequestsPost
RequestsPost creates a request that expects a POST with JSON body matching 'expected' all values in 'expected' will be treated as strings or arrays of
internal/mockServer/requests.go:67
↓ 29 callersMethodmax
return the maximum version, used during testing
proxmox/client.go:2535
↓ 27 callersFunctionEscape
(s string)
internal/body/escape.go:6
↓ 27 callersMethodRead
When we read the pool config, we also receive a lot of member info.
proxmox/config__pool.go:36
↓ 27 callersFunctionRequiredIDset
Should be used for Required IDs. returns if the indexed arg if it is set. It throws and error when the indexed arg is not set.
cli/validate.go:14
↓ 27 callersMethodpost
( ctx context.Context, url string, params *url.Values, headers *http.Header, body *[]byte, )
proxmox/session.go:368
↓ 24 callersMethodString
Converts the userID to "username@realm" Returns an empty string when either the Name or Realm is empty
proxmox/config__user.go:544
↓ 24 callersMethodVmId
()
proxmox/client.go:102
↓ 24 callersMethodpanic
(field string)
proxmox/client__newtest__mock.go:40
↓ 23 callersMethodAsMap
()
proxmox/config__pool.go:446
↓ 23 callersMethodGetName
()
proxmox/vmref.go:564
↓ 23 callersMethodString
()
proxmox/config__lxc__networks.go:344
↓ 23 callersMethodString
()
proxmox/snapshot.go:630
↓ 23 callersFunctionValidateStringNotEmpty
(value, text string)
proxmox/validate.go:41
↓ 22 callersFunctionItob
(i int)
proxmox/util.go:89
↓ 22 callersFunctionsplitStringOfSettings
(settings string)
proxmox/util.go:331
↓ 21 callersMethodValidate
(version Version)
proxmox/config__qemu__cpu.go:499
↓ 21 callersMethodValidate
()
proxmox/config__qemu__disk.go:27
↓ 21 callersFunctionValidateStringsEqual
check if a key is allowed to be changed after creation.
proxmox/validate.go:49
↓ 20 callersFunctionCloneJson
(jsonStruct proxmox.ConfigStorage)
test/cli/Storage/storage-sub-tests/json.go:10
↓ 20 callersFunctionGet
(s *proxmox.ConfigStorage, name string, t *testing.T)
test/cli/Storage/storage-sub-tests/standard.go:28
↓ 20 callersMethodParse
Parses "username@realm" to a UserID object
proxmox/config__user.go:490
↓ 20 callersMethodString
()
proxmox/config__qemu__cpu.go:201
↓ 19 callersMethodGetID
()
proxmox/config__ha__rules.go:98
↓ 19 callersMethodString
()
proxmox/config__qemu__usb.go:124
↓ 19 callersFunctionValidateGuestIDset
(args []string, text string)
cli/validate.go:30
↓ 19 callersMethodmapToAPI
(current *CloudInit, params map[string]any, version Version)
proxmox/config__qemu__cloudinit.go:24
↓ 18 callersMethodAsArray
()
proxmox/config__pool.go:445
↓ 18 callersMethodExists
(context.Context, PoolName)
proxmox/config__pool.go:29
↓ 18 callersMethodGetMembers
()
proxmox/config__pool.go:493
↓ 18 callersMethodString
()
proxmox/config__lxc__mount.go:679
↓ 17 callersMethodString
returns the model with proper dashes, underscores and capitalization
proxmox/config__qemu__network.go:482
↓ 17 callersMethodValidate
String is for fmt.Stringer.
proxmox/config__qemu__pcie.go:573
↓ 17 callersMethodmapToApiValues
Maps all the disk related settings to api values proxmox understands.
proxmox/config__qemu__disk.go:214
↓ 16 callersFunctionCleanup
Default CLEANUP test for User
test/cli/Users/user_sub_tests/user_sub_tests.go:11
↓ 16 callersFunctionDelete
Default DELETE test for User
test/cli/Users/user_sub_tests/user_sub_tests.go:21
↓ 16 callersMethodEncode
()
proxmox/client.go:2506
↓ 16 callersFunctionGetConfig
GetConfig get config from file
main.go:1052
↓ 16 callersMethodString
()
proxmox/config__qemu__disk.go:748
↓ 16 callersMethodValidate
()
proxmox/vmref.go:405
↓ 16 callersMethodVersion
Returns the Client's cached version if it exists, otherwise fetches the version from the API.
proxmox/client.go:2484
↓ 16 callersMethodmapToStruct
(param string, LinkedVmId *GuestID)
proxmox/config__qemu__disk__virtio.go:312
↓ 15 callersFunctionGet
Default GET test for Group
test/cli/Group/group_sub_tests/group_sub_tests.go:32
↓ 15 callersMethodGetComment
()
proxmox/config__pool.go:492
↓ 15 callersMethodGetJsonRetryable
(ctx context.Context, url string, data *map[string]any, tries int)
proxmox/client.go:262
↓ 15 callersMethodIter
()
proxmox/config__pool.go:447
↓ 15 callersMethodpanic
(field string)
proxmox/config__qemu__mock.go:22
↓ 14 callersFunctionSet
Default SET test for User
test/cli/Users/user_sub_tests/user_sub_tests.go:30
↓ 14 callersMethodString
()
proxmox/config__qemu.go:1374
↓ 14 callersMethodclearVersion
Clears the cached version information. Used for end-to-end testing.
proxmox/client.go:256
↓ 14 callersMethodmapToAPI
(nameFlag string)
proxmox/vmref.go:424
↓ 14 callersMethodpanic
(field string)
proxmox/client__api__mock.go:26
↓ 14 callersMethodpanic
(field string)
proxmox/config__lxc__new__mock.go:23
↓ 13 callersMethodGetClient
()
test/api/Test.go:42
↓ 13 callersFunctionNewConfig
()
cli/cobra.go:109
↓ 13 callersMethodString
()
proxmox/config__qemu__pcie.go:571
↓ 13 callersMethodString
()
proxmox/config__guest.go:383
↓ 13 callersMethodString
()
proxmox/config__ha__rules.go:861
↓ 13 callersMethodString
()
proxmox/client.go:2556
↓ 13 callersMethodValidate
(version Version)
proxmox/config__qemu__cloudinit.go:124
next →1–100 of 3,081, ranked by callers