public static async Task <BatchDeleteImageResponse> BatchDeleteUntaggedImages(this ECRHelper ecr, string registryId, string repositoryName, CancellationToken cancellationToken = default(CancellationToken)) { var iIDs = await ecr.ListImagesAsync(TagStatus.UNTAGGED, registryId : registryId, repositoryName : repositoryName, cancellationToken : cancellationToken); if (iIDs.Length <= 0) { return new BatchDeleteImageResponse() { HttpStatusCode = System.Net.HttpStatusCode.OK } } ; return(await ecr.BatchDeleteImageAsync(iIDs, registryId, repositoryName, cancellationToken)); }
public static Task <ImageIdentifier[]> ListUntaggedImages(this ECRHelper ecr, string registryId, string repositoryName, CancellationToken cancellationToken = default(CancellationToken)) => ecr.ListImagesAsync(TagStatus.UNTAGGED, registryId: registryId, repositoryName: repositoryName, cancellationToken: cancellationToken);