Tenants implements backend.Reader
(ctx context.Context)
| 218 | |
| 219 | // Tenants implements backend.Reader |
| 220 | func (r *reader) Tenants(ctx context.Context) ([]string, error) { |
| 221 | list, err := r.r.List(ctx, nil) |
| 222 | |
| 223 | // this filter is added to fix a GCS usage stats issue that would result in "" |
| 224 | var filteredList []string |
| 225 | for _, tenant := range list { |
| 226 | if tenant != "" && tenant != ClusterSeedFileName && tenant != WorkFileName { |
| 227 | filteredList = append(filteredList, tenant) |
| 228 | } |
| 229 | } |
| 230 | |
| 231 | return filteredList, err |
| 232 | } |
| 233 | |
| 234 | // Blocks implements backend.Reader |
| 235 | func (r *reader) Blocks(ctx context.Context, tenantID string) ([]uuid.UUID, []uuid.UUID, error) { |