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

Method BaseHostname

pkg/api/client.go:331–337  ·  view source on GitHub ↗

BaseHostname returns the hostname component of the configured API base URL. Falls back to the raw baseURL string if parsing fails.

()

Source from the content-addressed store, hash-verified

329// BaseHostname returns the hostname component of the configured API base URL.
330// Falls back to the raw baseURL string if parsing fails.
331func (c *Client) BaseHostname() string {
332 u, err := url.Parse(c.baseURL)
333 if err != nil {
334 return c.baseURL
335 }
336 return u.Hostname()
337}
338
339// GetFreshClusterStatus retrieves cluster status bypassing cache completely.
340// This includes VM enrichment with guest agent data for full accuracy.

Callers 1

openVMShellMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected