MCPcopy Index your code
hub / github.com/postgres-ai/database-lab-engine / StateReporter

Interface StateReporter

engine/internal/provision/pool/manager.go:40–44  ·  view source on GitHub ↗

StateReporter describes methods of state reporting.

Source from the content-addressed store, hash-verified

38
39// StateReporter describes methods of state reporting.
40type StateReporter interface {
41 GetSessionState(branch, name string) (*resources.SessionState, error)
42 GetBatchSessionState(requests []resources.SessionStateRequest) (map[string]resources.SessionState, error)
43 GetFilesystemState() (models.FileSystem, error)
44}
45
46// Snapshotter describes methods of snapshot management.
47type Snapshotter interface {

Callers 8

refreshCloneMetadataMethod · 0.65
GetSessionStateMethod · 0.65
GetClonesMethod · 0.65
GetBatchSessionStateMethod · 0.65
buildPoolEntryFunction · 0.65
CollectPoolStatMethod · 0.65
runMethod · 0.65
collectPoolMetricsMethod · 0.65

Implementers 4

mockFSManagerengine/internal/provision/mode_local_t
LVManagerengine/internal/provision/thinclones/l
Managerengine/internal/provision/thinclones/z
mockFSManagerengine/internal/provision/pool/pool_ma

Calls

no outgoing calls

Tested by

no test coverage detected