Class: Pod
Extends
Constructors
new Pod()
new Pod(jsonData: KubePod, cluster?: string): Pod
Parameters
Parameter | Type |
---|---|
jsonData | KubePod |
cluster ? | string |
Returns
Overrides
Defined in
Properties
Property | Modifier | Type | Default value | Description | Overrides | Inherited from | Defined in |
---|---|---|---|---|---|---|---|
_clusterName | public | string | undefined | - | - | KubeObject ._clusterName | src/lib/k8s/KubeObject.ts:52 |
jsonData | public | KubePod | undefined | - | - | KubeObject .jsonData | src/lib/k8s/KubeObject.ts:49 |
_internalApiEndpoint? | static | ApiClient <KubeObjectInterface > | ApiWithNamespaceClient <KubeObjectInterface > | undefined | - | - | KubeObject ._internalApiEndpoint | src/lib/k8s/KubeObject.ts:66 |
apiName | static | string | 'pods' | Name of the resource, plural, used in API | KubeObject .apiName | - | src/lib/k8s/pod.ts:113 |
apiVersion | static | string | 'v1' | Group and version of the resource formatted as "GROUP/VERSION", e.g. "policy.k8s.io/v1". | KubeObject .apiVersion | - | src/lib/k8s/pod.ts:114 |
isNamespaced | static | boolean | true | Whether the object is namespaced. | KubeObject .isNamespaced | - | src/lib/k8s/pod.ts:115 |
kind | static | string | 'Pod' | The kind of the object. Corresponding to the resource kind in Kubernetes. | KubeObject .kind | - | src/lib/k8s/pod.ts:112 |
readOnlyFields | static | string [] | [] | Readonly field defined as JSONPath paths | - | KubeObject .readOnlyFields | src/lib/k8s/KubeObject.ts:51 |
Accessors
cluster
get cluster(): string
set cluster(cluster: string): void
Parameters
Parameter | Type |
---|---|
cluster | string |
Returns
string
Inherited from
Defined in
detailsRoute
get detailsRoute(): string
Returns
string
Inherited from
Defined in
isNamespaced
get isNamespaced(): boolean
Returns
boolean
Inherited from
Defined in
kind
get kind(): any
Returns
any
Inherited from
Defined in
listRoute
get listRoute(): string
Returns
string
Inherited from
Defined in
metadata
get metadata(): KubeMetadata
Returns
Inherited from
Defined in
pluralName
get pluralName(): string
Returns
string
Inherited from
Defined in
spec
get spec(): KubePodSpec
Returns
Defined in
status
get status(): object
Returns
object
conditions
conditions: KubeCondition[];
containerStatuses
containerStatuses: KubeContainerStatus[];
ephemeralContainerStatuses?
optional ephemeralContainerStatuses: KubeContainerStatus[];
hostIP?
optional hostIP: string;
hostIPs?
optional hostIPs: object[];
initContainerStatuses?
optional initContainerStatuses: KubeContainerStatus[];
message?
optional message: string;
phase
phase: string;
podIPs?
optional podIPs: object[];
qosClass?
optional qosClass: string;
reason?
optional reason: string;
startTime
startTime: Time;
Defined in
apiEndpoint
get static apiEndpoint(): ApiClient<KubeObjectInterface> | ApiWithNamespaceClient<KubeObjectInterface>
set static apiEndpoint(endpoint: ApiClient<KubeObjectInterface> | ApiWithNamespaceClient<KubeObjectInterface>): void
Parameters
Parameter | Type |
---|---|
endpoint | ApiClient <KubeObjectInterface > | ApiWithNamespaceClient <KubeObjectInterface > |
Returns
ApiClient
<KubeObjectInterface
> | ApiWithNamespaceClient
<KubeObjectInterface
>
Inherited from
Defined in
className
get static className(): string
Returns
string
Inherited from
Defined in
detailsRoute
get static detailsRoute(): string
Returns
string
Inherited from
Defined in
listRoute
get static listRoute(): string
Returns
string
Inherited from
Defined in
pluralName
get static pluralName(): string
Returns
string
Inherited from
Defined in
Methods
_class()
_class(): typeof KubeObject
Returns
typeof KubeObject
Inherited from
Defined in
attach()
attach(
container: string,
onAttach: StreamResultsCb,
options: StreamArgs): object
Parameters
Parameter | Type |
---|---|
container | string |
onAttach | StreamResultsCb |
options | StreamArgs |
Returns
object
cancel()
cancel: () => void;
Returns
void
getSocket()
getSocket: () => null | WebSocket;
Returns
null
| WebSocket
Defined in
delete()
delete(force?: boolean): Promise<any>
Parameters
Parameter | Type |
---|---|
force ? | boolean |
Returns
Promise
<any
>
Inherited from
Defined in
evict()
evict(): Promise<any>
Returns
Promise
<any
>
Defined in
exec()
exec(
container: string,
onExec: StreamResultsCb,
options: ExecOptions): object
Parameters
Parameter | Type |
---|---|
container | string |
onExec | StreamResultsCb |
options | ExecOptions |
Returns
object
cancel()
cancel: () => void;
Returns
void
getSocket()
getSocket: () => null | WebSocket;
Returns
null
| WebSocket
Defined in
getAge()
getAge(): string
Returns
string
Inherited from
Defined in
getAuthorization()
getAuthorization(verb: string, reqResourseAttrs?: AuthRequestResourceAttrs): Promise<any>
Parameters
Parameter | Type |
---|---|
verb | string |
reqResourseAttrs ? | AuthRequestResourceAttrs |
Returns
Promise
<any
>
Inherited from
Defined in
getCreationTs()
getCreationTs(): string
Returns
string
Inherited from
Defined in
getDetailedStatus()
getDetailedStatus(): PodDetailedStatus
Returns
PodDetailedStatus
Defined in
getDetailsLink()
getDetailsLink(): string
Returns
string
Inherited from
Defined in
getEditableObject()
getEditableObject(): object
Returns
object
Inherited from
Defined in
getListLink()
getListLink(): string
Returns
string
Inherited from
Defined in
getLogs()
getLogs(...args: [string, number, boolean, StreamResultsCb] | [string, LogStreamResultsCb, LogOptions]): () => void
Parameters
Parameter | Type |
---|---|
...args | [string , number , boolean , StreamResultsCb ] | [string , LogStreamResultsCb , LogOptions ] |
Returns
Function
Returns
void
Defined in
getName()
getName(): string
Returns
string
Inherited from
Defined in
getNamespace()
getNamespace(): undefined | string
Returns
undefined
| string
Inherited from
Defined in
getValue()
getValue(prop: string): any
Parameters
Parameter | Type |
---|---|
prop | string |
Returns
any
Inherited from
Defined in
patch()
patch(body: RecursivePartial<KubePod>): Promise<any>
Parameters
Parameter | Type |
---|---|
body | RecursivePartial <KubePod > |
Returns
Promise
<any
>
Inherited from
Defined in
scale()
scale(numReplicas: number): Promise<any>
Parameters
Parameter | Type |
---|---|
numReplicas | number |
Returns
Promise
<any
>
Inherited from
Defined in
update()
update(data: KubeObjectInterface): Promise<KubeObjectInterface>
Parameters
Parameter | Type |
---|---|
data | KubeObjectInterface |
Returns
Promise
<KubeObjectInterface
>
Inherited from
Defined in
apiGet()
static apiGet<K>(
this: (...args: any) => K & typeof KubeObject,
onGet: (...args: any) => void,
name: string,
namespace?: string,
onError?: (err: null | ApiError, cluster?: string) => void,
opts?: object): (...args: any[]) => Promise<CancelFunction>