Skip to content

Commit

Permalink
feat: allow to ssh to podman virtual machine - api.d.ts changes
Browse files Browse the repository at this point in the history
Signed-off-by: Evzen Gasta <[email protected]>
  • Loading branch information
gastoner committed Oct 17, 2024
1 parent f4f58de commit 31014be
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions packages/extension-api/src/extension-api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,29 @@ declare module '@podman-desktop/api' {
connection: ContainerProviderConnection;
}

export interface ProviderConnectionShellAccess {
onData: Event<ProviderConnectionShellAccessData>;
onError: Event<ProviderConnectionShellAccessError>;
onEnd: Event<void>;
write(data: string): void;
startConnection(): void;
stopConnection(): void;
setWindow(dimensions: ShellDimensions): void;
}

export interface ShellDimensions {
rows: number;
cols: number;
}

export interface ProviderConnectionShellAccessError {
error: string;
}

export interface ProviderConnectionShellAccessData {
data: string;
}

/**
* Callback for openning shell session
*/
Expand Down

0 comments on commit 31014be

Please sign in to comment.