示例#1
0
        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));
        }
示例#2
0
        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();
        }
示例#3
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();
        }