Interface MinioAccess


  • public interface MinioAccess
    Provides access to Minio via a preconfigured S3 client and providing the by default randomized bucket and access/secret keys.

    Annotate JUnit test instance or static fields or method parameters of this type with Minio.

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      java.lang.String accessKey()  
      java.lang.String bucket()  
      org.apache.hadoop.conf.Configuration hadoopConfiguration()
      Properties needed by Apache Hadoop to access this instance.
      java.lang.String hostPort()
      Host and port, separated by ':'.
      java.util.Map<java.lang.String,​java.lang.String> icebergProperties()
      Properties needed by Apache Iceberg to access this instance.
      java.net.URI s3BucketUri​(java.lang.String path)
      S3 scheme URI including the bucket to access the given path.
      software.amazon.awssdk.services.s3.S3Client s3Client()  
      java.lang.String s3endpoint()
      HTTP protocol endpoint.
      default void s3put​(java.lang.String key, software.amazon.awssdk.core.sync.RequestBody body)
      Convenience method to put an object into S3.
      java.lang.String secretKey()  
    • Method Detail

      • hostPort

        java.lang.String hostPort()
        Host and port, separated by ':'.
      • accessKey

        java.lang.String accessKey()
      • secretKey

        java.lang.String secretKey()
      • bucket

        java.lang.String bucket()
      • s3endpoint

        java.lang.String s3endpoint()
        HTTP protocol endpoint.
      • s3Client

        software.amazon.awssdk.services.s3.S3Client s3Client()
      • icebergProperties

        java.util.Map<java.lang.String,​java.lang.String> icebergProperties()
        Properties needed by Apache Iceberg to access this instance.
      • hadoopConfiguration

        org.apache.hadoop.conf.Configuration hadoopConfiguration()
        Properties needed by Apache Hadoop to access this instance.
      • s3BucketUri

        java.net.URI s3BucketUri​(java.lang.String path)
        S3 scheme URI including the bucket to access the given path.
      • s3put

        default void s3put​(java.lang.String key,
                           software.amazon.awssdk.core.sync.RequestBody body)
        Convenience method to put an object into S3.