Interface: Host

Interface: Host

Docker Desktop 확장 SDK의 Host 인터페이스예요. 시스템 기본 브라우저로 외부 URL을 열거나, OS 플랫폼·아키텍처·호스트 이름 같은 호스트 정보를 반환해요.

출처: 문서

본문

Interface: Host

Since

0.2.0

메서드

openExternal

openExternal(url): void

Opens an external URL with the system default browser.

Since

0.2.0

ddClient.host.openExternal("https://docker.com");

파라미터

Name | Type | Description url | string | The URL the browser will open (must have the protocol http or https).

반환값

void

속성

platform

platform: string

Returns a string identifying the operating system platform. See https://nodejs.org/api/os.html#osplatformhttps://nodejs.org/api/os.html#osplatform)

Since

0.2.2

arch

arch: string

Returns the operating system CPU architecture. See https://nodejs.org/api/os.html#osarchhttps://nodejs.org/api/os.html#osarch)

Since

0.2.2

hostname

hostname: string

Returns the host name of the operating system. See https://nodejs.org/api/os.html#oshostnamehttps://nodejs.org/api/os.html#oshostname)

Since

0.2.2

더 알아보기