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

Method Close

pkg/api/cluster_client.go:299–309  ·  view source on GitHub ↗

Close stops health checks and cleans up resources.

()

Source from the content-addressed store, hash-verified

297
298// Close stops health checks and cleans up resources.
299func (cc *ClusterClient) Close() {
300 cc.StopHealthCheck()
301
302 cc.mu.Lock()
303 defer cc.mu.Unlock()
304
305 cc.activeClient = nil
306 cc.activeProfile = ""
307 cc.activeIndex = -1
308 cc.logger.Info("[CLUSTER] Cluster client closed for group '%s'", cc.groupName)
309}
310
311// GetCandidateNames returns the names of all failover candidates in order.
312func (cc *ClusterClient) GetCandidateNames() []string {

Callers

nothing calls this directly

Calls 2

StopHealthCheckMethod · 0.95
InfoMethod · 0.65

Tested by

no test coverage detected