| 1 | import type * as artifactregistry from "@distilled.cloud/gcp/artifactregistry_v1"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | import type { RuntimeContext } from "../../RuntimeContext.ts"; |
| 5 | import type { Repository } from "./Repository.ts"; |
| 6 | |
| 7 | export interface ListDockerImagesRequest extends Omit< |
| 8 | artifactregistry.ListProjectsLocationsRepositoriesDockerImagesRequest, |
| 9 | "parent" |
| 10 | > {} |
| 11 | |
| 12 | /** |
| 13 | * Runtime binding for Artifact Registry `dockerImages.list`. |
| 14 | * |
| 15 | * Bind this operation to a {@link Repository} in a Function/Action init |
| 16 | * phase. Provide {@link ListDockerImagesHttp}. |
| 17 | * |
| 18 | * ### Listing Docker Images |
| 19 | * **Example:** List images in a repository |
| 20 | * ```typescript |
| 21 | * const listImages = yield* GCP.ArtifactRegistry.ListDockerImages(images); |
| 22 | * const page = yield* listImages({ pageSize: 50 }); |
| 23 | * ``` |
| 24 | * |
| 25 | * @binding |
| 26 | * @category ArtifactRegistry |
| 27 | */ |
| 28 | export interface ListDockerImages extends Binding.Service< |
| 29 | ListDockerImages, |
| 30 | "GCP.ArtifactRegistry.ListDockerImages", |
| 31 | ( |
| 32 | repository: Repository, |
| 33 | ) => Effect.Effect< |
| 34 | ( |
| 35 | request?: ListDockerImagesRequest, |
| 36 | ) => Effect.Effect< |
| 37 | artifactregistry.ListDockerImagesResponse, |
| 38 | artifactregistry.ListProjectsLocationsRepositoriesDockerImagesError, |
| 39 | RuntimeContext |
| 40 | > |
| 41 | > |
| 42 | > {} |
| 43 | |
| 44 | export const ListDockerImages = Binding.Service<ListDockerImages>( |
| 45 | "GCP.ArtifactRegistry.ListDockerImages", |
| 46 | ); |