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

Method GetClient

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

GetClient returns the client for a specific profile by name.

(profileName string)

Source from the content-addressed store, hash-verified

191
192// GetClient returns the client for a specific profile by name.
193func (m *GroupClientManager) GetClient(profileName string) (*ProfileClient, bool) {
194 m.mu.RLock()
195 defer m.mu.RUnlock()
196 client, exists := m.clients[profileName]
197 return client, exists
198}
199
200// GetConnectedClients returns all currently connected profile clients.
201func (m *GroupClientManager) GetConnectedClients() []*ProfileClient {

Callers 6

ExecuteOnProfileMethod · 0.95
clientForNodeMethod · 0.80
clientForVMMethod · 0.80
getClientForVMMethod · 0.80
getClientForNodeMethod · 0.80

Calls

no outgoing calls