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
>(__namedParameters
)
Type parameters#
Name | Type |
---|---|
Metadata |
extends KubernetesClusterMetadata <Metadata > = KubernetesClusterMetadata |
Status |
extends KubernetesClusterStatus = KubernetesClusterStatus |
Spec |
extends KubernetesClusterSpec <Spec > = KubernetesClusterSpec |
Parameters#
Name | Type |
---|---|
__namedParameters |
CatalogEntityData <Metadata , Status , Spec > |
Inherited from#
Properties#
apiVersion#
• Readonly
apiVersion: string
= KubernetesCluster.apiVersion
The group and version of this class.
Overrides#
kind#
• Readonly
kind: string
= KubernetesCluster.kind
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
= "entity.k8slens.dev/v1alpha1"
kind#
▪ Static
Readonly
kind: string
= "KubernetesCluster"
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