Given a path, delete the file located at the path within the configured S3 bucket.
Given a path, delete the file located at the path within the configured S3 bucket.
the path of the file inside the bucket
unused parameter in this context
true, if bytes were deleted
Given a path, retrieve the bytes located at that path inside the configured S3 bucket.
Given a path, retrieve the bytes located at that path inside the configured S3 bucket.
the full path of the file to load
unused parameter in this context
a stream of bytes read from the file
Given a fullPath (e.
Given a fullPath (e.g. serviceEndpoint, bucketName, fileName), parse the path and return the separate segments.
the full path to parse into segments
the different segments within the path
Grabs config parameters from Clowder to return a AmazonS3 pointing at the given service endpoint.
Grabs config parameters from Clowder to return a AmazonS3 pointing at the given service endpoint. By default, the configured bucket will be used.
the endpoint to connect to
an AmazonS3 client
Convenience method for calling s3Bucket with a String instead of an Option[String].
Convenience method for calling s3Bucket with a String instead of an Option[String].
the endpoint to connect to
an AmazonS3 client
Store bytes to the specified path within the configured S3 bucket.
Store bytes to the specified path within the configured S3 bucket.
stream of bytes to save to the bucket
unused parameter in this context
(path to file aka loader_id, length of file)
A ByteStorageService for Clowder that enables use of S3-compatible object stores to serve as the file backing for Clowder. This allows you to use an S3 bucket on AWS or Minio to store your files.
Available Configuration Options: clowder.s3.serviceEndpoint - Host/port of the service to use for storage clowder.s3.bucketName - the name of the bucket that should be used to store files clowder.s3.accessKey - access key with which to access the bucket clowder.s3.secretKey - secret key associated with the access key above clowder.s3.region - the region where your S3 bucket lives (currently unused)