MCPcopy Create free account
hub / github.com/amrkmn/x / getObject

Function getObject

scripts/cache/client.ts:61–64  ·  view source on GitHub ↗
(client: S3Client, key: string)

Source from the content-addressed store, hash-verified

59}
60
61export async function getObject(client: S3Client, key: string): Promise<Uint8Array> {
62 const data = await client.file(key).arrayBuffer();
63 return new Uint8Array(data);
64}
65
66export async function deleteObject(client: S3Client, key: string): Promise<void> {
67 await client.delete(key);

Callers 5

loadMetadataFunction · 0.90
loadManifestFunction · 0.90
acquireLockFunction · 0.85
renewLockFunction · 0.85
releaseLockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected