MCPcopy Create free account
hub / github.com/TanStack/ai / R2Bucket

Interface R2Bucket

examples/sandbox-cloudflare/worker-configuration.d.ts:2456–2496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2454 include?: ('httpMetadata' | 'customMetadata')[]
2455}
2456interface R2Bucket {
2457 head(key: string): Promise<R2Object | null>
2458 get(
2459 key: string,
2460 options: R2GetOptions & {
2461 onlyIf: R2Conditional | Headers
2462 },
2463 ): Promise<R2ObjectBody | R2Object | null>
2464 get(key: string, options?: R2GetOptions): Promise<R2ObjectBody | null>
2465 put(
2466 key: string,
2467 value:
2468 | ReadableStream
2469 | ArrayBuffer
2470 | ArrayBufferView
2471 | string
2472 | null
2473 | Blob,
2474 options?: R2PutOptions & {
2475 onlyIf: R2Conditional | Headers
2476 },
2477 ): Promise<R2Object | null>
2478 put(
2479 key: string,
2480 value:
2481 | ReadableStream
2482 | ArrayBuffer
2483 | ArrayBufferView
2484 | string
2485 | null
2486 | Blob,
2487 options?: R2PutOptions,
2488 ): Promise<R2Object>
2489 createMultipartUpload(
2490 key: string,
2491 options?: R2MultipartOptions,
2492 ): Promise<R2MultipartUpload>
2493 resumeMultipartUpload(key: string, uploadId: string): R2MultipartUpload
2494 delete(keys: string | string[]): Promise<void>
2495 list(options?: R2ListOptions): Promise<R2Objects>
2496}
2497interface R2MultipartUpload {
2498 readonly key: string
2499 readonly uploadId: string

Callers 22

computeMetricsFunction · 0.65
applyStabilityFunction · 0.65
createDiscoveryToolFunction · 0.65
getMethod · 0.65
worker.test.tsFile · 0.65
processStreamChunksFunction · 0.65
processStreamChunksFunction · 0.65
openMethod · 0.65
appendMethod · 0.65
finishMethod · 0.65
deleteMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected