类 MinioBucketService

java.lang.Object
cn.herodotus.oss.dialect.core.service.BaseOssService<MinioAsyncClient>
cn.herodotus.oss.dialect.reactive.minio.definition.service.BaseMinioAsyncService
cn.herodotus.oss.dialect.reactive.minio.service.MinioBucketService

@Service public class MinioBucketService extends BaseMinioAsyncService

Description: Minio Bucket 存储通基础操作服务 Service

作者:
: gengwei.zheng
Date:
: 2022/6/30 13:26
  • 构造器详细资料

  • 方法详细资料

    • listBuckets

      public reactor.core.publisher.Mono<List<cn.herodotus.oss.core.domain.bucket.BucketDomain>> listBuckets(io.minio.ListBucketsArgs listBucketsArgs)
      查询所有存储桶
      参数:
      listBucketsArgs - ListBucketsArgs
      返回:
      Bucket 列表
    • bucketExists

      public reactor.core.publisher.Mono<Boolean> bucketExists(String bucketName)
      存储桶是否存在
      参数:
      bucketName - 存储桶名称
      返回:
      是否存在,true 存在,false 不存在
    • bucketExists

      public reactor.core.publisher.Mono<Boolean> bucketExists(String bucketName, String region)
      存储桶是否存在
      参数:
      bucketName - 存储桶名称
      region - 区域
      返回:
      是否存在,true 存在,false 不存在
    • bucketExists

      public reactor.core.publisher.Mono<Boolean> bucketExists(io.minio.BucketExistsArgs bucketExistsArgs)
      存储桶是否存在
      参数:
      bucketExistsArgs - BucketExistsArgs
      返回:
      true 存在,false 不存在
    • makeBucket

      public reactor.core.publisher.Mono<Void> makeBucket(String bucketName)
      创建存储桶
      参数:
      bucketName - 存储桶名称
    • makeBucket

      public reactor.core.publisher.Mono<Void> makeBucket(String bucketName, String region)
      创建存储桶
      参数:
      bucketName - 存储桶名称
      region - 区域
    • makeBucket

      public reactor.core.publisher.Mono<Void> makeBucket(io.minio.MakeBucketArgs makeBucketArgs)
      创建存储桶

      该方法仅仅是 Minio 原始方法的封装,不包含校验等操作。

      参数:
      makeBucketArgs - MakeBucketArgs
    • removeBucket

      public reactor.core.publisher.Mono<Void> removeBucket(String bucketName)
      删除一个空的存储桶 如果存储桶存在对象不为空时,删除会报错。
      参数:
      bucketName - 存储桶名称
    • removeBucket

      public reactor.core.publisher.Mono<Void> removeBucket(String bucketName, String region)
      删除一个空的存储桶 如果存储桶存在对象不为空时,删除会报错。
      参数:
      bucketName - 存储桶名称
      region - 区域
    • removeBucket

      public reactor.core.publisher.Mono<Void> removeBucket(io.minio.RemoveBucketArgs removeBucketArgs)
      删除一个空的存储桶 如果存储桶存在对象不为空时,删除会报错。
      参数:
      removeBucketArgs - RemoveBucketArgs