Files
docker-docs/content/reference/api/extensions-sdk/Host.md
Allie Sadler bcc0a9c9a4 move extensions-sdk api content to reference (#20694)
* move extensions-sdk api content to reference

* review suggestion

* rename file
2024-08-23 14:41:17 +01:00

1.2 KiB

description, keywords, aliases
description keywords aliases
Docker extension API reference Docker, extensions, sdk, API, reference
/desktop/extensions-sdk/dev/api/reference/interfaces/Host/
/extensions/extensions-sdk/dev/api/reference/interfaces/Host/

Interface: Host

Since

0.2.0

Methods

openExternal

openExternal(url): void

Opens an external URL with the system default browser.

Since

0.2.0

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

Parameters

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

Returns

void

Properties

platform

platform: string

Returns a string identifying the operating system platform. See https://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#osarch

Since

0.2.2


hostname

hostname: string

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

Since

0.2.2