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

Method ListAllInstances

database/sql/instances.go:545–551  ·  view source on GitHub ↗
(_ context.Context)

Source from the content-addressed store, hash-verified

543}
544
545func (s *sqlDatabase) ListAllInstances(_ context.Context) ([]params.Instance, error) {
546 ret, err := s.listInstancesBatched(nil)
547 if err != nil {
548 return nil, fmt.Errorf("failed to list all instances: %w", err)
549 }
550 return ret, nil
551}
552
553func (s *sqlDatabase) PoolInstanceCount(_ context.Context, poolID string) (int64, error) {
554 pool, err := s.getPoolByID(s.conn, poolID)

Callers

nothing calls this directly

Calls 1

listInstancesBatchedMethod · 0.95

Tested by

no test coverage detected