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

main
ts 44 lines 1.16 KB
Raw
1 import type * as container from "@distilled.cloud/gcp/container_v1";
2 import * as Binding from "alchemy/Binding";
3 import type { RuntimeContext } from "alchemy/RuntimeContext";
4 import type * as Effect from "effect/Effect";
5 import type { Cluster } from "./Cluster.ts";
6
7 export interface GetClusterRequest extends Omit<
8 container.GetProjectsLocationsClustersRequest,
9 "name"
10 > {}
11
12 /**
13 * Runtime binding for GKE `clusters.get`.
14 *
15 * Bind this operation to a {@link Cluster} in a Function/Action init
16 * phase. Provide {@link GetClusterHttp}.
17 *
18 * ### Observing Clusters
19 * **Example:** Read the bound cluster
20 * ```typescript
21 * const getCluster = yield* GCP.Container.GetCluster(cluster);
22 * const live = yield* getCluster();
23 * ```
24 *
25 * @binding
26 * @category Container
27 */
28 export interface GetCluster extends Binding.Service<
29 GetCluster,
30 "GCP.Container.GetCluster",
31 (
32 cluster: Cluster,
33 ) => Effect.Effect<
34 (
35 request?: GetClusterRequest,
36 ) => Effect.Effect<
37 container.Cluster,
38 container.GetProjectsLocationsClustersError,
39 RuntimeContext
40 >
41 >
42 > {}
43
44 export const GetCluster = Binding.Service<GetCluster>("GCP.Container.GetCluster");