mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-11 14:00:29 +00:00
15dbabfe9a
Contract-Neutral: Docker URL migration touches shared monitor ingest files without changing the host deletion or re-enrollment contract.
31 lines
851 B
Go
31 lines
851 B
Go
package monitoring
|
|
|
|
import "github.com/rcourtman/pulse-go-rewrite/internal/config"
|
|
|
|
// GuestMetadataStore returns the live guest metadata store used by resource
|
|
// projection, migration, and monitoring decisions.
|
|
func (m *Monitor) GuestMetadataStore() *config.GuestMetadataStore {
|
|
if m == nil {
|
|
return nil
|
|
}
|
|
return m.guestMetadataStore
|
|
}
|
|
|
|
// DockerMetadataStore returns the live Docker metadata store used by resource
|
|
// projection, migration, and monitoring decisions.
|
|
func (m *Monitor) DockerMetadataStore() *config.DockerMetadataStore {
|
|
if m == nil {
|
|
return nil
|
|
}
|
|
return m.dockerMetadataStore
|
|
}
|
|
|
|
// HostMetadataStore returns the live host metadata store used by resource
|
|
// projection and monitoring decisions.
|
|
func (m *Monitor) HostMetadataStore() *config.HostMetadataStore {
|
|
if m == nil {
|
|
return nil
|
|
}
|
|
return m.hostMetadataStore
|
|
}
|