R2Bucket

open external class R2Bucket

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun createMultipartUpload(key: String, options: R2MultipartOptions = definedExternally): Promise<R2MultipartUpload>
Link copied to clipboard
open fun delete(keys: Array<String>): Promise<Unit>
open fun delete(keys: String): Promise<Unit>
Link copied to clipboard
open fun get(key: String): Promise<R2ObjectBody?>
open fun get(key: String, options: R2GetOptions): Promise<Any?>
Link copied to clipboard
open fun head(key: String): Promise<R2Object?>
Link copied to clipboard
open fun list(options: R2ListOptions = definedExternally): Promise<T$12>
Link copied to clipboard
open fun put(key: String, value: Blob?): Promise<Any?>
open fun put(key: String, value: ReadableStream<Uint8Array>?): Promise<Any?>
open fun put(key: String, value: ArrayBuffer?): Promise<Any?>
open fun put(key: String, value: ArrayBufferView?): Promise<Any?>
open fun put(key: String, value: String?): Promise<Any?>
open fun put(key: String, value: Blob?, options: R2PutOptions = definedExternally): Promise<Any?>
open fun put(key: String, value: ReadableStream<Uint8Array>?, options: R2PutOptions = definedExternally): Promise<Any?>
open fun put(key: String, value: ArrayBuffer?, options: R2PutOptions = definedExternally): Promise<Any?>
open fun put(key: String, value: ArrayBufferView?, options: R2PutOptions = definedExternally): Promise<Any?>
open fun put(key: String, value: String?, options: R2PutOptions = definedExternally): Promise<Any?>
Link copied to clipboard