Esempio n. 1
0
 public BucketOperator(
     ICakeLog logger,
     IBucketOperations minio,
     MinioBucketSettings settings)
     : this(logger, minio, settings.BucketName, settings.Region)
 {
     if (settings == null)
     {
         throw new ArgumentNullException(nameof(settings));
     }
 }
Esempio n. 2
0
        public static void MinioListIncompleteUploads(this ICakeContext context, MinioSettings settings, MinioBucketSettings bucketSettings)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            var minio = ClientBuilder.Client(settings).Build();

            new BucketOperator(context.Log, minio, bucketSettings)
            .CheckBucket()
            .ListIncompleteUploads();
        }