Project: Headlamp (Observability and Analysis / Observability)
File: lib_k8s_pod.Pod.md

title: "Class: Pod" linkTitle: "Pod" slug: "libk8spod.Pod" .Pod `any` `Pod` new Pod(`jsonData`) | Name | Type | | : | : | | `jsonData` | | makeKubeObject&lt;KubePod\&gt;(&#x27;Pod&#x27;).constructor `Static` apiEndpoint: `Object` | Name | Type | | : | : | | `scale?` | { `get`: (`namespace`: `string`, `name`: `string`, `clusterName?`: `string`) => `Promise`<`any`\> ; `put`: (`body`: { `metadata`: ; `spec`: { `replicas`: `number` } }, `clusterName?`: `string`) => `Promise`<`any`\> } | | `scale.get` | (`namespace`: `string`, `name`: `string`, `clusterName?`: `string`) => `Promise`<`any`\> | | `scale.put` | (`body`: { `metadata`: ; `spec`: { `replicas`: `number` } }, `clusterName?`: `string`) => `Promise`<`any`\> | _ `Static` className: `string` makeKubeObject<KubePod\>('Pod').className `get` spec(): _ `get` status(): `Object` `Object` | Name | Type | | : | : | | `conditions` | [] | | `containerStatuses` | [] | | `ephemeralContainerStatuses?` | [] | | `hostIP` | `string` | | `initContainerStatuses?` | [] | | `message?` | `string` | | `phase` | `string` | | `qosClass?` | `string` | | `reason?` | `string` | | `startTime` | | attach(`container`, `onAttach`, `options?`): `Object` | Name | Type | | : | : | | `container` | `string` | | `onAttach` | | | `options` | | `Object` | Name | Type | | : | : | | `cancel` | () => `void` | | `getSocket` | () => ``null`` \| `WebSocket` | _ exec(`container`, `onExec`, `options?`): `Object` | Name | Type | | : | : | | `container` | `string` | | `onExec` | | | `options` | | `Object` | Name | Type | | : | : | | `cancel` | () => `void` | | `getSocket` | () => ``null`` \| `WebSocket` | _ getDetailedStatus(): `PodDetailedStatus` `PodDetailedStatus` _ getLogs(...`args`): () => `void` | Name | Type | | : | : | | `...args` | [container: string, tailLines: number, showPrevious: boolean, onLogs: StreamResultsCb] \| [container: string, onLogs: StreamResultsCb, logsOptions: LogOptions] | `fn` (): `void` `void` _ `Static` apiList(`onList`, `onError?`, `opts?`): `any` | Name | Type | | : | : | | `onList` | (`arg`: `any`[]) => `void` | | `onError?` | (`err`: ) => `void` | | `opts?` | | `any` makeKubeObject<KubePod\>('Pod').apiList _ `Static` `Optional` getAuthorization(`arg`, `resourceAttrs?`): `any` | Name | Type | | : | : | | `arg` | `string` | | `resourceAttrs?` | | `any` makeKubeObject<KubePod\>('Pod').getAuthorization _ `Static` getErrorMessage(`err?`): ``null`` \| `string` | Name | Type | | : | : | | `err?` | ``null`` \| | ``null`` \| `string` makeKubeObject<KubePod\>('Pod').getErrorMessage _ `Static` useApiGet(`onGet`, `name`, `namespace?`, `onError?`): `void` | Name | Type | | : | : | | `onGet` | (...`args`: `any`) => `void` | | `name` | `string` | | `namespace?` | `string` | | `onError?` | (`err`: ) => `void` | `void` makeKubeObject<KubePod\>('Pod').useApiGet _ `Static` useApiList(`onList`, `onError?`, `opts?`): `any` | Name | Type | | : | : | | `onList` | (`arg`: `any`[]) => `void` | | `onError?` | (`err`: ) => `void` | | `opts?` | | `any` makeKubeObject<KubePod\>('Pod').useApiList _ `Static` useGet(`name`, `namespace?`): , (`item`: `any`) => `void`, (`err`: ``null`` \| ) => `void`] | Name | Type | | : | : | | `name` | `string` | | `namespace?` | `string` | , (`item`: `any`) => `void`, (`err`: ``null`` \| ) => `void`] makeKubeObject<KubePod\>('Pod').useGet _ `Static` useList(`opts?`): , (`items`: `any`) => `void`] | Name | Type | | : | : | | `opts?` | | , (`items`: `any`) => `void`] makeKubeObject<KubePod\>('Pod').useList