Interface: NavigationIntents

Interface: NavigationIntents

Docker Desktop 확장 SDK의 NavigationIntents 인터페이스예요. Docker Desktop의 컨테이너·이미지·볼륨 등 특정 화면으로 이동(네비게이션)하는 메서드를 제공해요.

출처: 문서

본문

Interface: NavigationIntents

Since

0.2.0

컨테이너 메서드

viewContainers

viewContainers(): Promise<void>

Navigate to the Containers tab in Docker Desktop.

ddClient.desktopUI.navigate.viewContainers()

반환값

Promise<void>

viewContainer

viewContainer(id): Promise<void>

Navigate to the Container tab in Docker Desktop.

await ddClient.desktopUI.navigate.viewContainer(id)

파라미터

Name | Type | Description id | string | The full container id, e.g. 46b57e400d801762e9e115734bf902a2450d89669d85881058a46136520aca28. You can use the --no-trunc flag as part of the docker ps command to display the full container id.

반환값

Promise<void>

A promise that fails if the container doesn't exist.

viewContainerLogs

viewContainerLogs(id): Promise<void>

Navigate to the Container logs tab in Docker Desktop.

await ddClient.desktopUI.navigate.viewContainerLogs(id)

파라미터

Name | Type | Description id | string | The full container id, e.g. 46b57e400d801762e9e115734bf902a2450d89669d85881058a46136520aca28. You can use the --no-trunc flag as part of the docker ps command to display the full container id.

반환값

Promise<void>

A promise that fails if the container doesn't exist.

viewContainerInspect

viewContainerInspect(id): Promise<void>

Navigate to the Inspect container view in Docker Desktop.

await ddClient.desktopUI.navigate.viewContainerInspect(id)

파라미터

Name | Type | Description id | string | The full container id, e.g. 46b57e400d801762e9e115734bf902a2450d89669d85881058a46136520aca28. You can use the --no-trunc flag as part of the docker ps command to display the full container id.

반환값

Promise<void>

A promise that fails if the container doesn't exist.

viewContainerTerminal

viewContainerTerminal(id): Promise<void>

Navigate to the container terminal window in Docker Desktop.

await ddClient.desktopUI.navigate.viewContainerTerminal(id)

Since

0.3.4

파라미터

Name | Type | Description id | string | The full container id, e.g. 46b57e400d801762e9e115734bf902a2450d89669d85881058a46136520aca28. You can use the --no-trunc flag as part of the docker ps command to display the full container id.

반환값

Promise<void>

A promise that fails if the container doesn't exist.

viewContainerStats

viewContainerStats(id): Promise<void>

Navigate to the container stats to see the CPU, memory, disk read/write and network I/O usage.

await ddClient.desktopUI.navigate.viewContainerStats(id)

파라미터

Name | Type | Description id | string | The full container id, e.g. 46b57e400d801762e9e115734bf902a2450d89669d85881058a46136520aca28. You can use the --no-trunc flag as part of the docker ps command to display the full container id.

반환값

Promise<void>

A promise that fails if the container doesn't exist.

이미지 메서드

viewImages

viewImages(): Promise<void>

Navigate to the Images tab in Docker Desktop.

await ddClient.desktopUI.navigate.viewImages()

반환값

Promise<void>

viewImage

viewImage(id, tag): Promise<void>

Navigate to a specific image referenced by id and tag in Docker Desktop. In this navigation route you can find the image layers, commands, created time and size.

await ddClient.desktopUI.navigate.viewImage(id, tag)

파라미터

Name | Type | Description id | string | The full image id (including sha), e.g. sha256:34ab3ae068572f4e85c448b4035e6be5e19cc41f69606535cd4d768a63432673. tag | string | The tag of the image, e.g. latest, 0.0.1, etc.

반환값

Promise<void>

A promise that fails if the image doesn't exist.

볼륨 메서드

viewVolumes

viewVolumes(): Promise<void>

Navigate to the Volumes tab in Docker Desktop.

ddClient.desktopUI.navigate.viewVolumes()

반환값

Promise<void>

viewVolume

viewVolume(volume): Promise<void>

Navigate to a specific volume in Docker Desktop.

await ddClient.desktopUI.navigate.viewVolume(volume)

파라미터

Name | Type | Description volume | string | The name of the volume, e.g. my-volume.

반환값

Promise<void>

더 알아보기