MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / IsUsingTokenAuth

Method IsUsingTokenAuth

pkg/api/interfaces/interfaces.go:106–106  ·  view source on GitHub ↗

IsUsingTokenAuth returns true if configured for API token authentication, false if using password authentication.

()

Source from the content-addressed store, hash-verified

104 // IsUsingTokenAuth returns true if configured for API token authentication,
105 // false if using password authentication.
106 IsUsingTokenAuth() bool
107
108 // GetAPIToken returns the complete API token string in Proxmox format:
109 // "PVEAPIToken=USER@REALM!TOKENID=SECRET"

Implementers 6

MockConfigpkg/api/mock_config_test.go
ExampleConfigpkg/api/example_usage.go
MockConfigpkg/api/testutils/mocks.go
TestConfigpkg/api/testutils/mocks.go
Configinternal/config/config.go
mockConfiginternal/taskmanager/manager_test.go

Calls

no outgoing calls