Skip to content

Commit b397268

Browse files
committed
Documentation for public methods
1 parent b8b1833 commit b397268

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

app/lib/package/api_export/exported_api.dart

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,18 @@ final class ExportedPackage {
270270
Duration(hours: 2),
271271
);
272272

273+
/// Synchronize tarballs from [versions].
274+
///
275+
/// [versions] is a map from version number to [SourceObjectInfo], where
276+
/// the [SourceObjectInfo] is the GCS object from which the tarball can be
277+
/// copied.
278+
///
279+
/// This method will copy GCS objects, when necessary, relying on
280+
/// [SourceObjectInfo.md5Hash] to avoid copying objects that haven't changed.
281+
///
282+
/// [versions] **must** have an entry for each version that exists.
283+
/// This will **delete** tarballs for versions that do not exist in
284+
/// [versions].
273285
Future<void> synchronizeTarballs(
274286
Map<String, SourceObjectInfo> versions,
275287
) async {

0 commit comments

Comments
 (0)