Exemple #1
0
        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));
        }
Exemple #2
0
 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);