@k8slens/extensions / Exports / Common / Catalog / WebLink
Class: WebLink#
Hierarchy#
↳ WebLink
Table of contents#
Constructors#
Properties#
Methods#
Constructors#
constructor#
• new WebLink(«destructured»
)
Parameters#
Name | Type |
---|---|
«destructured» |
CatalogEntityData <CatalogEntityMetadata , WebLinkStatus , WebLinkSpec > |
Inherited from#
Properties#
apiVersion#
• Readonly
apiVersion: "entity.k8slens.dev/v1alpha1"
The group and version of this class.
Overrides#
kind#
• Readonly
kind: "WebLink"
A DNS label name of the entity.
Overrides#
metadata#
• metadata: CatalogEntityMetadata
Inherited from#
spec#
• spec: WebLinkSpec
Inherited from#
status#
• status: WebLinkStatus
Inherited from#
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#
getName#
▸ getName(): string
Get the name of this entity
Returns#
string
Inherited from#
getSource#
▸ getSource(): string
Get the specified source of this entity, defaulting to "unknown"
if not
provided
Returns#
string
Inherited from#
isEnabled#
▸ isEnabled(): boolean
Get if this entity is enabled.
Returns#
boolean
Inherited from#
onContextMenuOpen#
▸ onContextMenuOpen(context
): void
Parameters#
Name | Type |
---|---|
context |
CatalogEntityContextMenuContext |
Returns#
void
Overrides#
CatalogEntity.onContextMenuOpen
onRun#
▸ onRun(): Promise
<void
>
Returns#
Promise
<void
>
Overrides#
onSettingsOpen#
▸ Optional
onSettingsOpen(context
): void
| Promise
<void
>
Parameters#
Name | Type |
---|---|
context |
CatalogEntitySettingsContext |
Returns#
void
| Promise
<void
>