A request to delete the bucket.
A GET request.
The name of parent bucket.
Prepares a request to delete the referenced object
Prepares a request to delete the referenced object
import akka.stream.Materializer import com.zengularity.benji.VersionedObjectRef def foo(myObject: VersionedObjectRef)(implicit m: Materializer) = myObject.delete()
Checks whether or not this object exists.
Checks whether or not this object exists.
May also return false
in cases you don't have permission
to view a certain object.
import scala.concurrent.ExecutionContext import com.zengularity.benji.VersionedObjectRef def foo(myObject: VersionedObjectRef)(implicit ec: ExecutionContext) = myObject.exists
Prepares the request to get the contents of this specific version.
Prepares the request to get the contents of this specific version.
import akka.stream.Materializer import com.zengularity.benji.VersionedObjectRef def foo(myObject: VersionedObjectRef)(implicit m: Materializer) = myObject.get()
Returns the headers of the referenced version.
Returns the headers of the referenced version.
import scala.concurrent.ExecutionContext import com.zengularity.benji.VersionedObjectRef def foo(myObject: VersionedObjectRef)(implicit ec: ExecutionContext) = myObject.headers()
Returns the metadata of the referenced version.
Returns the metadata of the referenced version.
(normalized from the headers
).
import scala.concurrent.ExecutionContext import com.zengularity.benji.VersionedObjectRef def foo(myObject: VersionedObjectRef)(implicit ec: ExecutionContext) = myObject.metadata()
The name of the object itself.
The versionId of this reference.
A live reference to a versioned object. The operations are scoped on a specific object version.
Such reference must only be used with the storage which resolved it first.
ObjectRef