MCPcopy Create free account
hub / github.com/cloudbase/garm / ListAllPools

Method ListAllPools

database/common/store.go:74–74  ·  view source on GitHub ↗

Probably a bad idea without some king of filter or at least pagination nolint:golangci-lint,godox TODO: add filter/pagination

(ctx context.Context)

Source from the content-addressed store, hash-verified

72 // nolint:golangci-lint,godox
73 // TODO: add filter/pagination
74 ListAllPools(ctx context.Context) ([]params.Pool, error)
75 GetPoolByID(ctx context.Context, poolID string) (params.Pool, error)
76 DeletePoolByID(ctx context.Context, poolID string) error
77

Callers 9

ListAllPoolsMethod · 0.65
TestListAllPoolsMethod · 0.65
CollectPoolMetricFunction · 0.65
CollectInstanceMetricFunction · 0.65
TestListAllPoolsMethod · 0.65
loadAllEntitiesMethod · 0.65
ListAllPoolsHandlerMethod · 0.65

Implementers 3

sqlDatabasedatabase/sql/sql.go
Storedatabase/common/mocks/Store.go
Store_Expecterdatabase/common/mocks/Store.go

Calls

no outgoing calls

Tested by 4

TestListAllPoolsMethod · 0.52
TestListAllPoolsMethod · 0.52