Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Telmate/proxmox-api-go
/ functions
Functions
3,081 in github.com/Telmate/proxmox-api-go
⨍
Functions
3,081
◇
Types & classes
413
↓ 3,501 callers
Function
Pointer
Gets inlined by the compiler, so it's not a performance hit
internal/util/util.go:4
↓ 1,383 callers
Method
New
()
proxmox/client.go:168
↓ 175 callers
Method
Validate
()
proxmox/node.go:27
↓ 173 callers
Method
Delete
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 callers
Function
RequestsGetJson
(urlPath Path, v any)
internal/mockServer/requests.go:41
↓ 143 callers
Method
StandardTest
(t *testing.T)
test/cli/shared_tests.go:49
↓ 140 callers
Function
failError
(err error)
main.go:1068
↓ 124 callers
Function
Append
(r ...[]Request)
internal/mockServer/request.go:27
↓ 111 callers
Method
Error
()
proxmox/error.go:84
↓ 99 callers
Method
Create
(context.Context, ConfigPool)
proxmox/config__pool.go:21
↓ 91 callers
Method
Get
()
proxmox/helper_test.go:69
↓ 89 callers
Method
String
()
proxmox/node.go:58
↓ 82 callers
Function
Context
()
cli/cobra.go:31
↓ 80 callers
Function
testQemuBaseConfig_Validate
(config ConfigQemu)
proxmox/config__qemu_test.go:124
↓ 72 callers
Function
RequestsPut
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 callers
Function
RequestsError
(url Path, method Method, Code HTTPcode, amount uint)
internal/mockServer/requests.go:139
↓ 69 callers
Method
Set
(context.Context, ConfigPool)
proxmox/config__pool.go:42
↓ 57 callers
Method
Login
(ctx context.Context, username string, password string, otp string)
proxmox/client.go:223
↓ 55 callers
Function
NewClient
()
cli/cobra.go:56
↓ 55 callers
Method
Update
(context.Context, ConfigPool)
proxmox/config__pool.go:45
↓ 53 callers
Function
RequestsErrorHandled
(url Path, method Method, err HTTPerror)
internal/mockServer/requests.go:130
↓ 50 callers
Function
Left
(input string, length int, padChar rune)
internal/pad/left.go:3
↓ 49 callers
Method
Clear
Clear removes all configured requests and responses. Panics if there are unhandled requests remaining.
internal/mockServer/server.go:21
↓ 49 callers
Function
testMockServerInit
Creates a test server and returns a authenticated client connected to it.
proxmox/helper_test.go:16
↓ 48 callers
Method
CheckVmRef
(ctx context.Context, vmr *VmRef)
proxmox/client.go:307
↓ 48 callers
Function
RequestsGetJsonData
(urlPath Path, v any)
internal/mockServer/requests.go:51
↓ 44 callers
Method
Len
()
proxmox/config__pool.go:448
↓ 41 callers
Function
responseJSON
(resp *http.Response)
proxmox/session.go:141
↓ 38 callers
Method
new
()
proxmox/client.go:180
↓ 38 callers
Function
paramsToBody
(params map[string]interface{})
proxmox/session.go:71
↓ 37 callers
Function
RequestsVersion
(version string)
internal/mockServer/requests.go:55
↓ 37 callers
Method
extract
(i interface{})
proxmox/permission.go:211
↓ 34 callers
Function
NewVmRef
(vmId GuestID)
proxmox/client.go:129
↓ 33 callers
Function
testQemuBaseConfig_get
(config ConfigQemu)
proxmox/config__qemu_test.go:87
↓ 32 callers
Method
List
(ctx context.Context)
proxmox/config__pool.go:32
↓ 31 callers
Function
RequestsPostResponse
(urlPath Path, expected any, response []byte)
internal/mockServer/requests.go:76
↓ 31 callers
Method
WaitForCompletion
WaitForCompletion - poll the API for task completion
proxmox/client.go:577
↓ 31 callers
Method
mapToStruct
(param string, LinkedVmId *GuestID)
proxmox/config__qemu__disk__scsi.go:420
↓ 30 callers
Function
JsonError
(code HTTPcode, data map[string]any)
internal/mockServer/error.go:14
↓ 29 callers
Function
ErrorKeyEmpty
(text string)
proxmox/validate.go:81
↓ 29 callers
Function
RequestsPost
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 callers
Method
max
return the maximum version, used during testing
proxmox/client.go:2535
↓ 27 callers
Function
Escape
(s string)
internal/body/escape.go:6
↓ 27 callers
Method
Read
When we read the pool config, we also receive a lot of member info.
proxmox/config__pool.go:36
↓ 27 callers
Function
RequiredIDset
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 callers
Method
post
( ctx context.Context, url string, params *url.Values, headers *http.Header, body *[]byte, )
proxmox/session.go:368
↓ 24 callers
Method
String
Converts the userID to "username@realm" Returns an empty string when either the Name or Realm is empty
proxmox/config__user.go:544
↓ 24 callers
Method
VmId
()
proxmox/client.go:102
↓ 24 callers
Method
panic
(field string)
proxmox/client__newtest__mock.go:40
↓ 23 callers
Method
AsMap
()
proxmox/config__pool.go:446
↓ 23 callers
Method
GetName
()
proxmox/vmref.go:564
↓ 23 callers
Method
String
()
proxmox/config__lxc__networks.go:344
↓ 23 callers
Method
String
()
proxmox/snapshot.go:630
↓ 23 callers
Function
ValidateStringNotEmpty
(value, text string)
proxmox/validate.go:41
↓ 22 callers
Function
Itob
(i int)
proxmox/util.go:89
↓ 22 callers
Function
splitStringOfSettings
(settings string)
proxmox/util.go:331
↓ 21 callers
Method
Validate
(version Version)
proxmox/config__qemu__cpu.go:499
↓ 21 callers
Method
Validate
()
proxmox/config__qemu__disk.go:27
↓ 21 callers
Function
ValidateStringsEqual
check if a key is allowed to be changed after creation.
proxmox/validate.go:49
↓ 20 callers
Function
CloneJson
(jsonStruct proxmox.ConfigStorage)
test/cli/Storage/storage-sub-tests/json.go:10
↓ 20 callers
Function
Get
(s *proxmox.ConfigStorage, name string, t *testing.T)
test/cli/Storage/storage-sub-tests/standard.go:28
↓ 20 callers
Method
Parse
Parses "username@realm" to a UserID object
proxmox/config__user.go:490
↓ 20 callers
Method
String
()
proxmox/config__qemu__cpu.go:201
↓ 19 callers
Method
GetID
()
proxmox/config__ha__rules.go:98
↓ 19 callers
Method
String
()
proxmox/config__qemu__usb.go:124
↓ 19 callers
Function
ValidateGuestIDset
(args []string, text string)
cli/validate.go:30
↓ 19 callers
Method
mapToAPI
(current *CloudInit, params map[string]any, version Version)
proxmox/config__qemu__cloudinit.go:24
↓ 18 callers
Method
AsArray
()
proxmox/config__pool.go:445
↓ 18 callers
Method
Exists
(context.Context, PoolName)
proxmox/config__pool.go:29
↓ 18 callers
Method
GetMembers
()
proxmox/config__pool.go:493
↓ 18 callers
Method
String
()
proxmox/config__lxc__mount.go:679
↓ 17 callers
Method
String
returns the model with proper dashes, underscores and capitalization
proxmox/config__qemu__network.go:482
↓ 17 callers
Method
Validate
String is for fmt.Stringer.
proxmox/config__qemu__pcie.go:573
↓ 17 callers
Method
mapToApiValues
Maps all the disk related settings to api values proxmox understands.
proxmox/config__qemu__disk.go:214
↓ 16 callers
Function
Cleanup
Default CLEANUP test for User
test/cli/Users/user_sub_tests/user_sub_tests.go:11
↓ 16 callers
Function
Delete
Default DELETE test for User
test/cli/Users/user_sub_tests/user_sub_tests.go:21
↓ 16 callers
Method
Encode
()
proxmox/client.go:2506
↓ 16 callers
Function
GetConfig
GetConfig get config from file
main.go:1052
↓ 16 callers
Method
String
()
proxmox/config__qemu__disk.go:748
↓ 16 callers
Method
Validate
()
proxmox/vmref.go:405
↓ 16 callers
Method
Version
Returns the Client's cached version if it exists, otherwise fetches the version from the API.
proxmox/client.go:2484
↓ 16 callers
Method
mapToStruct
(param string, LinkedVmId *GuestID)
proxmox/config__qemu__disk__virtio.go:312
↓ 15 callers
Function
Get
Default GET test for Group
test/cli/Group/group_sub_tests/group_sub_tests.go:32
↓ 15 callers
Method
GetComment
()
proxmox/config__pool.go:492
↓ 15 callers
Method
GetJsonRetryable
(ctx context.Context, url string, data *map[string]any, tries int)
proxmox/client.go:262
↓ 15 callers
Method
Iter
()
proxmox/config__pool.go:447
↓ 15 callers
Method
panic
(field string)
proxmox/config__qemu__mock.go:22
↓ 14 callers
Function
Set
Default SET test for User
test/cli/Users/user_sub_tests/user_sub_tests.go:30
↓ 14 callers
Method
String
()
proxmox/config__qemu.go:1374
↓ 14 callers
Method
clearVersion
Clears the cached version information. Used for end-to-end testing.
proxmox/client.go:256
↓ 14 callers
Method
mapToAPI
(nameFlag string)
proxmox/vmref.go:424
↓ 14 callers
Method
panic
(field string)
proxmox/client__api__mock.go:26
↓ 14 callers
Method
panic
(field string)
proxmox/config__lxc__new__mock.go:23
↓ 13 callers
Method
GetClient
()
test/api/Test.go:42
↓ 13 callers
Function
NewConfig
()
cli/cobra.go:109
↓ 13 callers
Method
String
()
proxmox/config__qemu__pcie.go:571
↓ 13 callers
Method
String
()
proxmox/config__guest.go:383
↓ 13 callers
Method
String
()
proxmox/config__ha__rules.go:861
↓ 13 callers
Method
String
()
proxmox/client.go:2556
↓ 13 callers
Method
Validate
(version Version)
proxmox/config__qemu__cloudinit.go:124
next →
1–100 of 3,081, ranked by callers