Class: GeneralEntity#
Copyright (c) OpenLens Authors. All rights reserved. Licensed under MIT License. See LICENSE in root directory for more information.
Hierarchy#
CatalogEntity<CatalogEntityMetadata,CatalogEntityStatus,GeneralEntitySpec>
↳ GeneralEntity
Table of contents#
Constructors#
Properties#
Methods#
Constructors#
constructor#
• new GeneralEntity(__namedParameters)
Parameters#
| Name | Type |
|---|---|
__namedParameters |
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#
▸ onContextMenuOpen(): void
Returns#
void
Overrides#
CatalogEntity.onContextMenuOpen
onDetailsOpen#
▸ onDetailsOpen(): void
Returns#
void
onRun#
▸ onRun(): Promise<void>
Returns#
Promise<void>
Overrides#
onSettingsOpen#
▸ onSettingsOpen(): void
Returns#
void