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

Method String

pkg/api/group-client-manager.go:37–48  ·  view source on GitHub ↗

String returns the string representation of the connection status.

()

Source from the content-addressed store, hash-verified

35
36// String returns the string representation of the connection status.
37func (s ProfileConnectionStatus) String() string {
38 switch s {
39 case ProfileStatusConnected:
40 return "connected"
41 case ProfileStatusDisconnected:
42 return "disconnected"
43 case ProfileStatusError:
44 return "error"
45 default:
46 return "unknown"
47 }
48}
49
50// SetStatus safely updates the profile's connection status.
51func (pc *ProfileClient) SetStatus(status ProfileConnectionStatus, err error) {

Callers 10

GetConnectionSummaryMethod · 0.45
ExecuteOnProfileMethod · 0.45
ErrorMethod · 0.45
GetAddrMethod · 0.45
GetUserMethod · 0.45
GetPasswordMethod · 0.45
GetRealmMethod · 0.45
GetTokenIDMethod · 0.45
GetTokenSecretMethod · 0.45
GetAPITokenMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected