@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 19 lines 532 Bytes
Raw
1 import * as Layer from "effect/Layer";
2 import { makeStorageBucketBinding } from "./BucketHttp.ts";
3 import { ReadBucket } from "./ReadBucket.ts";
4
5 /**
6 * HTTP implementation of {@link ReadBucket} over the Cloud Storage JSON API.
7 *
8 * @layer
9 * @provides GCP.Storage.ReadBucket
10 * @category Storage
11 */
12 export const ReadBucketHttp = Layer.effect(
13 ReadBucket,
14 makeStorageBucketBinding({
15 tag: "GCP.Storage.ReadBucket",
16 role: "roles/storage.objectViewer",
17 makeClient: (helpers, name) => helpers.makeRead(name),
18 }),
19 );