Package akka.javasdk.testkit
Interface ObjectStorageBucketConfig
public interface ObjectStorageBucketConfig
Configuration for a named object-storage bucket used in integration tests / dev mode.
Use the static factory methods to create configurations for the different backend types:
filesystem(String)/filesystem(String, String)— local filesystem, always available without any cloud credentials.s3(String, String, String, S3Credentials)— Amazon S3 or an S3-compatible service (e.g. MinIO started via Testcontainers).gcs(String, String, GcsCredentials)— Google Cloud Storage.
Pass instances to TestKit.Settings.withObjectStorageBucket(ObjectStorageBucketConfig).
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceCredentials for a GCS-backed bucket.static final classGCS service-account key file credentials.static enumGCP Application Default Credentials (workload identity / ADC).static final classNot part of the public API.static interfaceCredentials for an S3-backed bucket.static final classAWS named-profile credentials (reads from~/.aws/credentials).static final classStatic AWS credentials (access key + secret).static enumAWS workload-identity / instance-profile credentials. -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectStorageBucketConfigfilesystem(String name) Filesystem-backed bucket.static ObjectStorageBucketConfigfilesystem(String name, String directory) Filesystem-backed bucket with an explicit storage directory.static ObjectStorageBucketConfiggcs(String name, String bucket, ObjectStorageBucketConfig.GcsCredentials credentials) GCS-backed bucket (Google Cloud Storage).name()The logical bucket name as used in SDK calls.static ObjectStorageBucketConfigs3(String name, String bucket, String region, ObjectStorageBucketConfig.S3Credentials credentials) S3-backed bucket (Amazon S3 or S3-compatible, e.g.
-
Method Details
-
name
String name()The logical bucket name as used in SDK calls. -
filesystem
Filesystem-backed bucket. Objects are stored under<dev-base-directory>/<name>.- Parameters:
name- logical bucket name
-
filesystem
Filesystem-backed bucket with an explicit storage directory.- Parameters:
name- logical bucket namedirectory- absolute path to the directory where objects are stored
-
s3
static ObjectStorageBucketConfig s3(String name, String bucket, String region, ObjectStorageBucketConfig.S3Credentials credentials) S3-backed bucket (Amazon S3 or S3-compatible, e.g. MinIO).- Parameters:
name- logical bucket namebucket- actual S3 bucket name in the cloud / local serviceregion- AWS region, e.g."us-east-1"credentials- credentials to authenticate with S3
-
gcs
static ObjectStorageBucketConfig gcs(String name, String bucket, ObjectStorageBucketConfig.GcsCredentials credentials) GCS-backed bucket (Google Cloud Storage).- Parameters:
name- logical bucket namebucket- actual GCS bucket namecredentials- credentials to authenticate with GCS
-