@k8slens/extensions / Exports / Common / Catalog / KubernetesCluster
Class: KubernetesCluster<Metadata, Status, Spec>#
Common.Catalog.KubernetesCluster
Type parameters#
Name | Type |
---|---|
Metadata |
extends KubernetesClusterMetadata = KubernetesClusterMetadata |
Status |
extends KubernetesClusterStatus = KubernetesClusterStatus |
Spec |
extends KubernetesClusterSpec = KubernetesClusterSpec |
Hierarchy#
CatalogEntity
<Metadata
,Status
,Spec
>
↳ KubernetesCluster
Table of contents#
Constructors#
Properties#
Methods#
- connect
- disconnect
- getId
- getName
- getSource
- isEnabled
- onContextMenuOpen
- onDetailsOpen
- onRun
- onSettingsOpen
Constructors#
constructor#
• new KubernetesCluster<Metadata
, Status
, Spec
>(«destructured»
)
Type parameters#
Name | Type |
---|---|
Metadata |
extends KubernetesClusterMetadata <Metadata > = KubernetesClusterMetadata |
Status |
extends KubernetesClusterStatus = KubernetesClusterStatus |
Spec |
extends KubernetesClusterSpec <Spec > = KubernetesClusterSpec |
Parameters#
Name | Type |
---|---|
«destructured» |
CatalogEntityData <Metadata , Status , Spec > |
Inherited from#
Properties#
apiVersion#
• Readonly
apiVersion: string
The group and version of this class.
Overrides#
kind#
• Readonly
kind: string
A DNS label name of the entity.
Overrides#
metadata#
• metadata: Metadata
Inherited from#
spec#
• spec: Spec
Inherited from#
status#
• status: Status
Inherited from#
apiVersion#
▪ Static
Readonly
apiVersion: string
kind#
▪ Static
Readonly
kind: string
Methods#
connect#
▸ connect(): Promise
<void
>
Returns#
Promise
<void
>
disconnect#
▸ disconnect(): Promise
<void
>
Returns#
Promise
<void
>
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
onDetailsOpen#
▸ onDetailsOpen(): void
Returns#
void
onRun#
▸ onRun(context
): Promise
<void
>
Parameters#
Name | Type |
---|---|
context |
CatalogEntityActionContext |
Returns#
Promise
<void
>
Overrides#
onSettingsOpen#
▸ onSettingsOpen(): void
Returns#
void