Globals / "src/main/cluster-detectors/distribution-detector" / DistributionDetector
Class: DistributionDetector#
Hierarchy#
↳ DistributionDetector
Index#
Constructors#
Properties#
Methods#
- detect
- getKubernetesVersion
- isAKS
- isCustom
- isDigitalOcean
- isEKS
- isGKE
- isIKS
- isMinikube
- isRancher
- k8sRequest
Constructors#
constructor#
+ new DistributionDetector(cluster: Cluster): DistributionDetector
Inherited from BaseClusterDetector.constructor
Defined in src/main/cluster-detectors/base-cluster-detector.ts:11
Parameters:
| Name | Type |
|---|---|
cluster |
Cluster |
Returns: DistributionDetector
Properties#
cluster#
• cluster: Cluster
Inherited from BaseClusterDetector.cluster
Defined in src/main/cluster-detectors/base-cluster-detector.ts:10
key#
• key: ClusterMetadataKey = ClusterMetadataKey.DISTRIBUTION
Overrides BaseClusterDetector.key
Defined in src/main/cluster-detectors/distribution-detector.ts:5
version#
• version: string
Defined in src/main/cluster-detectors/distribution-detector.ts:6
Methods#
detect#
▸ detect(): Promise\<{ accuracy: number = 80; value: string = "rancher" }>
Overrides BaseClusterDetector.detect
Defined in src/main/cluster-detectors/distribution-detector.ts:8
Returns: Promise\<{ accuracy: number = 80; value: string = "rancher" }>
getKubernetesVersion#
▸ getKubernetesVersion(): Promise\
Defined in src/main/cluster-detectors/distribution-detector.ts:37
Returns: Promise\
isAKS#
▸ ProtectedisAKS(): boolean
Defined in src/main/cluster-detectors/distribution-detector.ts:56
Returns: boolean
isCustom#
▸ ProtectedisCustom(): boolean
Defined in src/main/cluster-detectors/distribution-detector.ts:68
Returns: boolean
isDigitalOcean#
▸ ProtectedisDigitalOcean(): boolean
Defined in src/main/cluster-detectors/distribution-detector.ts:60
Returns: boolean
isEKS#
▸ ProtectedisEKS(): boolean
Defined in src/main/cluster-detectors/distribution-detector.ts:48
Returns: boolean
isGKE#
▸ ProtectedisGKE(): boolean
Defined in src/main/cluster-detectors/distribution-detector.ts:44
Returns: boolean
isIKS#
▸ ProtectedisIKS(): boolean
Defined in src/main/cluster-detectors/distribution-detector.ts:52
Returns: boolean
isMinikube#
▸ ProtectedisMinikube(): boolean
Defined in src/main/cluster-detectors/distribution-detector.ts:64
Returns: boolean
isRancher#
▸ ProtectedisRancher(): Promise\
Defined in src/main/cluster-detectors/distribution-detector.ts:72
Returns: Promise\
k8sRequest#
▸ Protectedk8sRequest\path: string, options?: RequestPromiseOptions): Promise\
Inherited from BaseClusterDetector.k8sRequest
Defined in src/main/cluster-detectors/base-cluster-detector.ts:21
Type parameters:
| Name | Default |
|---|---|
T |
any |
Parameters:
| Name | Type | Default value |
|---|---|---|
path |
string | - |
options |
RequestPromiseOptions | {} |
Returns: Promise\