@k8slens/extensions / Exports / Common / Catalog / GeneralEntity
Class: GeneralEntity#
Hierarchy#
↳ GeneralEntity
Table of contents#
Constructors#
Properties#
Methods#
Constructors#
constructor#
• new GeneralEntity(«destructured»
)
Parameters#
Name | Type |
---|---|
«destructured» |
CatalogEntityData <CatalogEntityMetadata , CatalogEntityStatus , GeneralEntitySpec > |
Inherited from#
Properties#
apiVersion#
• Readonly
apiVersion: "entity.k8slens.dev/v1alpha1"
The group and version of this class.
Overrides#
kind#
• Readonly
kind: "General"
A DNS label name of the entity.
Overrides#
metadata#
• metadata: CatalogEntityMetadata
Inherited from#
spec#
• spec: GeneralEntitySpec
Inherited from#
status#
• status: CatalogEntityStatus
Inherited from#
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#
▸ Optional
onContextMenuOpen(context
): void
| Promise
<void
>
Parameters#
Name | Type |
---|---|
context |
CatalogEntityContextMenuContext |
Returns#
void
| Promise
<void
>
Inherited from#
CatalogEntity.onContextMenuOpen
onRun#
▸ onRun(context
): Promise
<void
>
Parameters#
Name | Type |
---|---|
context |
CatalogEntityActionContext |
Returns#
Promise
<void
>
Overrides#
onSettingsOpen#
▸ Optional
onSettingsOpen(context
): void
| Promise
<void
>
Parameters#
Name | Type |
---|---|
context |
CatalogEntitySettingsContext |
Returns#
void
| Promise
<void
>