Skip to content

@k8slens/extensions / Exports / Common / Catalog / WebLink

Class: WebLink#

Common.Catalog.WebLink

Hierarchy#

WebLink

Table of contents#

Constructors#

Properties#

Methods#

Constructors#

constructor#

new WebLink(«destructured»)

Parameters#

Name Type
«destructured» CatalogEntityData<CatalogEntityMetadata, WebLinkStatus, WebLinkSpec>

Inherited from#

CatalogEntity.constructor

Properties#

apiVersion#

Readonly apiVersion: "entity.k8slens.dev/v1alpha1"

The group and version of this class.

Overrides#

CatalogEntity.apiVersion


kind#

Readonly kind: "WebLink"

A DNS label name of the entity.

Overrides#

CatalogEntity.kind


metadata#

metadata: CatalogEntityMetadata

Inherited from#

CatalogEntity.metadata


spec#

spec: WebLinkSpec

Inherited from#

CatalogEntity.spec


status#

status: WebLinkStatus

Inherited from#

CatalogEntity.status


apiVersion#

Static Readonly apiVersion: "entity.k8slens.dev/v1alpha1"


kind#

Static Readonly kind: "WebLink"

Methods#

getId#

getId(): string

Get the UID of this entity

Returns#

string

Inherited from#

CatalogEntity.getId


getName#

getName(): string

Get the name of this entity

Returns#

string

Inherited from#

CatalogEntity.getName


getSource#

getSource(): string

Get the specified source of this entity, defaulting to "unknown" if not provided

Returns#

string

Inherited from#

CatalogEntity.getSource


isEnabled#

isEnabled(): boolean

Get if this entity is enabled.

Returns#

boolean

Inherited from#

CatalogEntity.isEnabled


onContextMenuOpen#

onContextMenuOpen(context): void

Parameters#

Name Type
context CatalogEntityContextMenuContext

Returns#

void

Overrides#

CatalogEntity.onContextMenuOpen


onRun#

onRun(): Promise<void>

Returns#

Promise<void>

Overrides#

CatalogEntity.onRun


onSettingsOpen#

Optional onSettingsOpen(context): void | Promise<void>

Parameters#

Name Type
context CatalogEntitySettingsContext

Returns#

void | Promise<void>

Inherited from#

CatalogEntity.onSettingsOpen