Skip to content

Commit

Permalink
fix: adding correct ContainerCreateOptions to api for replicatePodman…
Browse files Browse the repository at this point in the history
…Container

Signed-off-by: lstocchi <lstocchi@redhat.com>
  • Loading branch information
lstocchi authored and benoitf committed Jan 23, 2024
1 parent 6ec8d2a commit 1e4d24b
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion packages/extension-api/src/extension-api.d.ts
Expand Up @@ -2132,6 +2132,26 @@ declare module '@podman-desktop/api' {
errorDetails?: { message?: string };
}

export interface PodmanContainerCreateOptions {
command?: string[];
entrypoint?: string | string[];
env?: { [key: string]: string };
pod?: string;
hostname?: string;
image?: string;
name?: string;
mounts?: Array<{
Name?: string;
Type: string;
Source: string;
Destination: string;
Driver?: string;
Mode: string;
RW: boolean;
Propagation: string;
}>;
}

export interface ContainerCreateOptions {
name?: string;
Hostname?: string;
Expand Down Expand Up @@ -2300,7 +2320,7 @@ declare module '@podman-desktop/api' {
export function replicatePodmanContainer(
source: { engineId: string; id: string },
target: { engineId: string },
overrideParameters: ContainerCreateOptions,
overrideParameters: PodmanContainerCreateOptions,
): Promise<{ Id: string; Warnings: string[] }>;
export function startPod(engineId: string, podId: string): Promise<void>;
}
Expand Down

0 comments on commit 1e4d24b

Please sign in to comment.