MCPcopy Index your code
hub / github.com/PatchMon/PatchMon / ListHosts

Method ListHosts

server-source-code/internal/context/pool_cache.go:143–148  ·  view source on GitHub ↗

ListHosts returns all hosts from the registry. Returns nil if single-host.

()

Source from the content-addressed store, hash-verified

141
142// ListHosts returns all hosts from the registry. Returns nil if single-host.
143func (c *PoolCache) ListHosts() []string {
144 if c == nil || c.registry == nil {
145 return nil
146 }
147 return c.registry.ListHosts()
148}
149
150// Evict removes the host's pool from the cache and closes it.
151func (c *PoolCache) Evict(host string) {

Callers

nothing calls this directly

Calls 1

ListHostsMethod · 0.65

Tested by

no test coverage detected