describing static method
Wraps store, deriving the descriptor from the store's own configuration
and its object-storage capabilities.
Implementation
static Future<LocalStoreProvider> describing(
OmnyStore store, {
ProviderKind kind = ProviderKind.hub,
String? baseUrl,
Map<String, String> labels = const {},
int priority = 0,
int? capacityBytes,
}) async => LocalStoreProvider(
store,
descriptor: await store.describeProvider(
kind: kind,
baseUrl: baseUrl,
labels: labels,
priority: priority,
capacityBytes: capacityBytes,
),
);