MCPcopy Create free account

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

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

↓ 6 callersFunctionfailError
(err error)
proxmox/util.go:256
↓ 6 callersFunctionfailPanic
To be used during testing panics if err is not nil
proxmox/util.go:353
↓ 6 callersMethodgetRawGuestStatus_Unsafe
(ctx context.Context, c *Client)
proxmox/vmref.go:184
↓ 6 callersFunctionhaVersionCheck
(ctx context.Context, c *clientNewTest)
proxmox/config__ha__rules.go:918
↓ 6 callersFunctionlistRaw
(ctx context.Context, IDtype string)
cli/command/list/list.go:19
↓ 6 callersMethodmapToStruct
(param string, LinkedVmId *GuestID)
proxmox/config__qemu__disk__sata.go:262
↓ 6 callersMethodupdateGuestStatus
(ctx context.Context, vmr *VmRef, setStatus string, body *[]byte)
proxmox/client__api.go:23
↓ 5 callersFunctionAuthorizedKey_Decoded_Input
()
test/data/test_data_guest/type_authorizedkey.go:27
↓ 5 callersFunctionCSVtoArray
(csv string)
proxmox/util.go:230
↓ 5 callersFunctionCloudInitSnippetPath_Character_Illegal
illegal character
test/data/test_data_qemu/type_CloudInitSnippetPath.go:4
↓ 5 callersFunctionCloudInitSnippetPath_InvalidPath
()
test/data/test_data_qemu/type_CloudInitSnippetPath.go:117
↓ 5 callersFunctionCloudInitSnippetPath_Max_Illegal
257 invalid characters
test/data/test_data_qemu/type_CloudInitSnippetPath.go:46
↓ 5 callersFunctionCloudInitSnippetPath_Relative
()
test/data/test_data_qemu/type_CloudInitSnippetPath.go:121
↓ 5 callersFunctionErrorItemExists
(item, text string)
proxmox/validate.go:89
↓ 5 callersFunctionErrorItemNotExists
(item, text string)
proxmox/validate.go:93
↓ 5 callersMethodGetDigest
()
proxmox/config__ha__rules.go:96
↓ 5 callersMethodGetVersion
Updates the client's cached version information and returns it.
proxmox/client.go:231
↓ 5 callersFunctionMinimumConfig
(id pveSDK.GuestID, node pveSDK.NodeName, storage pveSDK.StorageName, privilidge *bool, name pveSDK.GuestName)
test/api/lxc/config.go:8
↓ 5 callersMethodMonitorCmd
(ctx context.Context, vmr *VmRef, command string)
proxmox/client.go:548
↓ 5 callersMethodParse
(s string)
proxmox/config__apiToken.go:319
↓ 5 callersFunctionPrintItemDeleted
(out io.Writer, id, text string)
cli/print.go:23
↓ 5 callersFunctionPrintItemSet
(out io.Writer, id, text string)
cli/print.go:27
↓ 5 callersFunctionPrintRawJson
(out io.Writer, input interface{})
cli/print.go:31
↓ 5 callersMethodPutWithTask
Makes a PUT 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:2316
↓ 5 callersMethodRemoveMembers
(context.Context, PoolName, []GuestID, []StorageName)
proxmox/config__pool.go:39
↓ 5 callersFunctionResourceMappingUsbID_Start_Legal
legal starting character
test/data/test_data_resourcemapping/type_ResourceMappingUsbID.go:61
↓ 5 callersMethodSetVmType
(vmType GuestType)
proxmox/client.go:94
↓ 5 callersFunctionSnapshotName_Start_Legal
legal starting character
test/data/test_data_snapshot/type_SnapshotName.go:61
↓ 5 callersMethodString
()
internal/mockServer/mockServer.go:31
↓ 5 callersFunctionUint
(input any)
internal/parse/parse.go:41
↓ 5 callersMethodUpdateVMHA
(ctx context.Context, vmr *VmRef, haState string, haGroup string)
proxmox/client.go:1753
↓ 5 callersMethodconvertDataStructure
()
proxmox/config__qemu__disk__scsi.go:29
↓ 5 callersMethodconvertDataStructure
()
proxmox/config__qemu__disk__ide.go:27
↓ 5 callersMethodconvertDataStructure
()
proxmox/config__qemu__disk__sata.go:27
↓ 5 callersMethodconvertDataStructure
()
proxmox/config__qemu__disk__virtio.go:28
↓ 5 callersFunctioncreateQemu
(t *testing.T, ctx context.Context, c pveSDK.ClientNew, config pveSDK.ConfigQemu)
test/api/Snapshot/helper_test.go:11
↓ 5 callersFunctionensurePrefix
ensures a string has a certain ensurePrefix
proxmox/util.go:82
↓ 5 callersFunctionescape
(s string, mode encoding)
internal/body/net_url.go:14
↓ 5 callersFunctionfloatToTrimmedString
converts a float to a string with x number of decimals, and trims trailing zeros and the decimal point
proxmox/util.go:306
↓ 5 callersMethodget
(ctx context.Context, c clientApiInterface)
proxmox/config__ha__rules.go:61
↓ 5 callersMethodgetNodeAffinity
()
proxmox/config__ha__rules.go:120
↓ 5 callersMethodgetResourceAffinity
()
proxmox/config__ha__rules.go:131
↓ 5 callersMethodisPrivileged
()
proxmox/config__lxc__new.go:706
↓ 5 callersMethodlistGuestResources
(ctx context.Context)
proxmox/client__api.go:21
↓ 5 callersMethodmapToApiValues
()
proxmox/config__lxc.go:449
↓ 5 callersMethodmapToArray
(params []any)
proxmox/config__user.go:273
↓ 5 callersMethodmarkChanges
(currentTpm TpmState, delete *strings.Builder)
proxmox/config__qemu__tpm.go:42
↓ 5 callersMethodmove
(ctx context.Context, delete bool, vmr *VmRef, client *Client)
proxmox/config__qemu__disk.go:925
↓ 5 callersMethodpostRawTask
(ctx context.Context, url string, body *[]byte)
proxmox/client__api__reusable.go:179
↓ 5 callersMethodread
errExists is non-nil if the pool does not exist.
proxmox/config__pool.go:913
↓ 5 callersMethodremoveMembers
(ctx context.Context, c *clientAPI, guests *[]GuestID, storages *[]StorageName)
proxmox/config__pool.go:927
↓ 5 callersMethodrequest
Perform a simple get to an endpoint
proxmox/session.go:274
↓ 5 callersFunctionrequestsParseParams
(expected any, r *http.Request, t *testing.T)
internal/mockServer/requests.go:116
↓ 5 callersMethodsha1
String is for fmt.Stringer.
proxmox/type__digest.go:13
↓ 5 callersMethodvalidate
(current QemuUSB)
proxmox/config__qemu__usb.go:306
↓ 4 callersFunctionAuthorizedKey_Encoded_Input
()
test/data/test_data_guest/type_authorizedkey.go:62
↓ 4 callersFunctionAuthorizedKey_Encoded_Output
()
test/data/test_data_guest/type_authorizedkey.go:53
↓ 4 callersFunctionClearDiskID
ClearDIskID removes the disk ID of each created disk. During update the order disks are created in depends on the order on the update body. This order
test/api/qemu/helper.go:32
↓ 4 callersMethodCreateWithValidate
(ctx context.Context, id string, client *Client)
proxmox/config__storage.go:946
↓ 4 callersMethodGet
()
proxmox/config__user.go:576
↓ 4 callersMethodGet
()
proxmox/config__ha__rules.go:430
↓ 4 callersMethodGetNextID
GetNextID - get next free GuestID
proxmox/client.go:1034
↓ 4 callersMethodGetVmRefByName
(ctx context.Context, name GuestName)
proxmox/client.go:370
↓ 4 callersFunctionGet_Test
Custom test as require.JSONEq() wont work here due to *[]UserID being an unordered list
test/cli/Group/group_sub_tests/group_sub_tests.go:40
↓ 4 callersMethodGreater
Greater returns true if the version is greater than the other version.
proxmox/client.go:2511
↓ 4 callersMethodInject
(t *testing.T, testFunc func( t *testing.T, config ConfigQemu, current *ConfigQemu, version Version,
proxmox/config__qemu__helper__validate_test.go:77
↓ 4 callersMethodLogin
(t *testing.T)
test/cli/shared_tests.go:120
↓ 4 callersFunctionMap
(array []T)
internal/array/array.go:61
↓ 4 callersFunctionNewConfigStorageFromJson
(input []byte)
proxmox/config__storage.go:1204
↓ 4 callersFunctionOptionalIDset
Should be used for Optional IDs. returns if the indexed arg if it is set. It returns an empty string when the indexed arg is not set.
cli/validate.go:23
↓ 4 callersFunctionParsePMConf
( kvString string, implicitFirstKey string, )
proxmox/util.go:187
↓ 4 callersFunctionParseSubConf
ParseSubConf - Parse standard sub-conf strings `key=value`.
proxmox/util.go:126
↓ 4 callersFunctionParseUserIDs
Converts an comma separated list of "username@realm" to a array of UserID objects
cli/helpers/parseUserID.go:10
↓ 4 callersMethodRollback
Rollback to the specified snapshot, validates the input If start is true, the VM will be started after the rollback. When the snapshot does not conta
proxmox/snapshot.go:50
↓ 4 callersMethodSetAPIToken
SetAPIToken specifies a pair of user identifier and token UUID to use for authenticating API calls. If this is set, a ticket from calling `login` will
proxmox/client.go:209
↓ 4 callersMethodString
()
proxmox/config__lxc__features.go:62
↓ 4 callersMethodString
()
proxmox/config__qemu__watchdog.go:135
↓ 4 callersFunctionSubtract
Subtract removes the items in array b from array a. Duplicate items are reduced to a single instance. The order of the remaining items is not guarante
internal/array/array.go:93
↓ 4 callersFunctionTag_Max_Legal
()
test/data/test_data_tag/type_Tag.go:47
↓ 4 callersMethodTree
Tree builds a tree structure of snapshots. This operation is quite expensive, prefer using AsArray() or AsMap() when possible. Each call to Tree ret
proxmox/snapshot.go:254
↓ 4 callersMethodType
()
proxmox/config__pool.go:658
↓ 4 callersMethodUpdateWithValidate
(ctx context.Context, id string, client *Client)
proxmox/config__storage.go:974
↓ 4 callersFunctionUser_Empty_testData
(testNumber uint)
test/data/test_data_cli/cli_user.go:10
↓ 4 callersFunctionUser_Full_testData
(testNumber uint)
test/data/test_data_cli/cli_user.go:19
↓ 4 callersMethodValidate
()
proxmox/config__qemu__disk__scsi.go:54
↓ 4 callersMethodValidate
()
proxmox/config__qemu__disk__ide.go:50
↓ 4 callersMethodValidate
(current *Watchdog)
proxmox/config__qemu__watchdog.go:58
↓ 4 callersMethodValidate
()
proxmox/config__qemu__disk__sata.go:50
↓ 4 callersMethodValidate
(current *EfiDisk)
proxmox/config__qemu__efidisk.go:123
↓ 4 callersFunctionValidateIntInRange
(min, max, value int, text string)
proxmox/validate.go:9
↓ 4 callersMethodaddGuestsV7
(ctx context.Context, c *clientAPI, guests *[]GuestID, storages *[]StorageName)
proxmox/config__pool.go:794
↓ 4 callersFunctionboolToIntString
Convert a bool to a string "1" or "0"
proxmox/util.go:263
↓ 4 callersMethodcreate
(ctx context.Context, c *clientAPI, vmr VmRef, description string, vmState bool)
proxmox/snapshot.go:557
↓ 4 callersMethodcreate
(ctx context.Context, c clientApiInterface)
proxmox/config__ha__rules.go:277
↓ 4 callersMethoddelete_Unsafe
(ctx context.Context, c *clientAPI, purge bool)
proxmox/vmref.go:133
↓ 4 callersMethoderror
(text string)
proxmox/content__iso.go:17
↓ 4 callersMethodformat
()
proxmox/config__qemu__helper__validate_test.go:122
↓ 4 callersMethodgetJSON
( ctx context.Context, url string, params *url.Values, headers *http.Header, responseContainer interface{
proxmox/session.go:358
↓ 4 callersFunctionguestCreate
(t *testing.T, ctx context.Context, c pveSDK.ClientNew, guest pveSDK.GuestID, node pveSDK.NodeName, name pveSD
test/api/Pool/helper_test.go:38
↓ 4 callersFunctionguestCreateLoop_Unsafe
Keep trying to create/clone a VM until we get a unique ID
proxmox/config__guest.go:637
← previousnext →201–300 of 3,081, ranked by callers