public NotFoundBucket(ICakeLog logger, IBucketOperations minio, string bucketName, string region) { this.logger = logger; this.minio = minio; this.bucketName = bucketName; this.region = region; }
public BucketOperator( ICakeLog logger, IBucketOperations minio, MinioBucketSettings settings) : this(logger, minio, settings.BucketName, settings.Region) { if (settings == null) { throw new ArgumentNullException(nameof(settings)); } }
public MinioS3Client(IBucketOperations bucketOperationsClient, IObjectOperations objectOperationsClient, string endpoint, string bucketName, ILogger <IS3Client> logger, int retryCount, int retryInSeconds) { if (retryCount < 0 || retryInSeconds < 0) { throw new S3BaseException("Retry count and retry in seconds parameters should be > 0"); } _endpoint = endpoint; _objectOperationsClient = objectOperationsClient; _bucketOperationsClient = bucketOperationsClient; _bucketName = bucketName.ToLower(); _logger = logger; _retryCount = retryCount; _retryInSeconds = retryInSeconds; _requestRetryPolicy = Policy.Handle <ConnectionException>().Or <InternalServerException>().Or <InternalClientException>() .WaitAndRetryAsync(_retryCount, retryAttempt => TimeSpan.FromSeconds(_retryInSeconds), (ex, time, retryAttempt, ctx) => { var message = $"Problem connecting to S3 endpoint. Retrying {retryAttempt}/{_retryCount}. Endpoint={_endpoint}"; _logger?.LogWarning(ex, message); Debug.WriteLine(message); }); }
public S3BucketClient(IBucketOperations bucketOperations) { BucketOperations = bucketOperations; }
public S3BucketClient(IBucketOperations bucketOperations, IS3ObjectClient objectClient) { _bucketOperations = bucketOperations; _objectClient = objectClient; }
public BucketClient(IBucketOperations bucketOperations) { _bucketOperations = bucketOperations; }
public BucketOperator( ICakeLog logger, IBucketOperations minio) : this(logger, minio, new MinioBucketSettings()) { }
public FoundBucket(ICakeLog logger, IBucketOperations minio, string bucketName) { this.logger = logger; this.minio = minio; this.bucketName = bucketName; }
public PooledBucketClient(IBucketOperations bucketOperations) { BucketOperations = bucketOperations; }