public static ClientBuilder Client(MinioSettings settings) { if (settings == null) { throw new ArgumentNullException(nameof(settings)); } return(Client(settings.Endpoint, settings.AccessKey, settings.SecretKey, settings.Region, settings.SSL)); }
public static void MinioListBuckets(this ICakeContext context, MinioSettings settings) { if (context == null) { throw new ArgumentNullException(nameof(context)); } var minio = ClientBuilder.Client(settings).Build(); new BucketOperator(context.Log, minio) .ListBuckets(); }
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(); }