Prepares a request to list the bucket objects.
Checks whether the versioning is currently enabled or not on this bucket.
Checks whether the versioning is currently enabled or not on this bucket.
A future with true if versioning is currently enabled, otherwise a future with false.
import scala.concurrent.ExecutionContext import com.zengularity.benji.BucketVersioning def foo(versioning: BucketVersioning)(implicit ec: ExecutionContext) = versioning.isVersioned
Gets a reference to a specific version of an object, allowing you to perform operations on an object version.
Gets a reference to a specific version of an object, allowing you to perform operations on an object version.
import com.zengularity.benji.BucketVersioning def foo(versioning: BucketVersioning) = versioning.obj("objInBucket", "1.0")
Enables or disables the versioning of objects on this bucket, existing versions history will not be erased when versioning is disabled.
Enables or disables the versioning of objects on this bucket, existing versions history will not be erased when versioning is disabled.
import scala.concurrent.ExecutionContext import com.zengularity.benji.BucketVersioning def foo(versioning: BucketVersioning)(implicit ec: ExecutionContext) = versioning.setVersioning(true)
Prepares a request to list the bucket versioned objects.
Prepares a request to list the bucket versioned objects.
import akka.stream.Materializer import com.zengularity.benji.BucketVersioning def foo(versioning: BucketVersioning)(implicit m: Materializer) = versioning.versionedObjects()
Represents a reference to a bucket that supports versioning.