Class: PodsApi#
Hierarchy#
↳ PodsApi
Table of contents#
Constructors#
Properties#
- apiBase
- apiGroup
- apiPrefix
- apiResource
- apiVersion
- apiVersionPreferred
- doCheckPreferredVersion
- fallbackApiBases
- fullApiPathname
- isNamespaced
- kind
- objectConstructor
- request
- resourceVersions
- watchDisposer
Accessors#
Methods#
- checkPreferredVersion
- create
- delete
- get
- getLogs
- getResourceVersion
- getUrl
- getWatchUrl
- list
- modifyWatchEvent
- normalizeQuery
- parseResponse
- patch
- refreshResourceVersion
- setResourceVersion
- update
- watch
Constructors#
constructor#
• new PodsApi(opts?
)
Parameters#
Name | Type |
---|---|
opts |
DerivedKubeApiOptions & IgnoredKubeApiOptions |
Overrides#
Properties#
apiBase#
• apiBase: string
Inherited from#
apiGroup#
• apiGroup: string
Inherited from#
apiPrefix#
• apiPrefix: string
Inherited from#
apiResource#
• Readonly
apiResource: string
Inherited from#
apiVersion#
• Readonly
apiVersion: string
Inherited from#
apiVersionPreferred#
• apiVersionPreferred: undefined
| string
Inherited from#
doCheckPreferredVersion#
• Protected
Readonly
doCheckPreferredVersion: boolean
Inherited from#
KubeApi.doCheckPreferredVersion
fallbackApiBases#
• Protected
Readonly
fallbackApiBases: undefined
| string
[]
Inherited from#
fullApiPathname#
• Protected
Readonly
fullApiPathname: string
Inherited from#
isNamespaced#
• Readonly
isNamespaced: boolean
Inherited from#
kind#
• Readonly
kind: string
Inherited from#
objectConstructor#
• Readonly
objectConstructor: KubeObjectConstructor
<Pod
, KubeJsonApiData
<NamespaceScopedMetadata
, PodStatus
, PodSpec
>>
Inherited from#
request#
• Protected
Readonly
request: KubeJsonApi
Inherited from#
resourceVersions#
• Protected
Readonly
resourceVersions: Map
<string
, string
>
Inherited from#
watchDisposer#
• Protected
Readonly
watchDisposer: undefined
| Disposer
Inherited from#
Accessors#
apiVersionWithGroup#
• get
apiVersionWithGroup(): string
Returns#
string
Inherited from#
KubeApi.apiVersionWithGroup
Methods#
checkPreferredVersion#
▸ Protected
checkPreferredVersion(): Promise
<void
>
Returns#
Promise
<void
>
Inherited from#
create#
▸ create(__namedParameters
, partialData?
): Promise
<null
| Pod
>
Parameters#
Name | Type |
---|---|
__namedParameters |
Partial <ResourceDescriptor > |
partialData? |
PartialObjectDeep <Pod > |
Returns#
Promise
<null
| Pod
>
Inherited from#
delete#
▸ delete(__namedParameters
): Promise
<KubeJsonApiData
<KubeJsonApiObjectMetadata
<KubeObjectScope
>, unknown
, unknown
>>
Parameters#
Name | Type |
---|---|
__namedParameters |
DeleteResourceDescriptor |
Returns#
Promise
<KubeJsonApiData
<KubeJsonApiObjectMetadata
<KubeObjectScope
>, unknown
, unknown
>>
Inherited from#
get#
▸ get(desc
, query?
): Promise
<null
| Pod
>
Parameters#
Name | Type |
---|---|
desc |
ResourceDescriptor |
query? |
KubeApiQueryParams |
Returns#
Promise
<null
| Pod
>
Inherited from#
getLogs#
▸ getLogs(params
, query?
): Promise
<string
>
Parameters#
Name | Type |
---|---|
params |
ResourceDescriptor |
query? |
PodLogsQuery |
Returns#
Promise
<string
>
getResourceVersion#
▸ getResourceVersion(namespace?
): undefined
| string
Parameters#
Name | Type | Default value |
---|---|---|
namespace |
string |
"" |
Returns#
undefined
| string
Inherited from#
getUrl#
▸ getUrl(__namedParameters?
, query?
): string
Parameters#
Name | Type |
---|---|
__namedParameters |
Partial <ResourceDescriptor > |
query? |
Partial <KubeApiQueryParams > |
Returns#
string
Inherited from#
getWatchUrl#
▸ getWatchUrl(namespace?
, query?
): string
Parameters#
Name | Type | Default value |
---|---|---|
namespace |
string |
"" |
query |
KubeApiQueryParams |
{} |
Returns#
string
Inherited from#
list#
▸ list(__namedParameters?
, query?
): Promise
<null
| Pod
[]>
Parameters#
Name | Type |
---|---|
__namedParameters |
KubeApiListOptions |
query? |
KubeApiQueryParams |
Returns#
Promise
<null
| Pod
[]>
Inherited from#
modifyWatchEvent#
▸ Protected
modifyWatchEvent(event
): void
Parameters#
Name | Type |
---|---|
event |
IKubeWatchEvent <KubeJsonApiData <KubeObjectMetadata <KubeObjectScope >, unknown , unknown >> |
Returns#
void
Inherited from#
normalizeQuery#
▸ Protected
normalizeQuery(query?
): Partial
<KubeApiQueryParams
>
Parameters#
Name | Type |
---|---|
query |
Partial <KubeApiQueryParams > |
Returns#
Partial
<KubeApiQueryParams
>
Inherited from#
parseResponse#
▸ Protected
parseResponse(data
, namespace?
): null
| Pod
| Pod
[]
Parameters#
Name | Type |
---|---|
data |
unknown |
namespace? |
string |
Returns#
Inherited from#
patch#
▸ patch(desc
, data
, strategy?
): Promise
<null
| Pod
>
Parameters#
Name | Type | Default value |
---|---|---|
desc |
ResourceDescriptor |
undefined |
data |
Patch | PartialObjectDeep <Pod > |
undefined |
strategy |
KubeApiPatchType |
"strategic" |
Returns#
Promise
<null
| Pod
>
Inherited from#
refreshResourceVersion#
▸ refreshResourceVersion(params?
): Promise
<null
| Pod
[]>
Parameters#
Name | Type |
---|---|
params? |
KubeApiListOptions |
Returns#
Promise
<null
| Pod
[]>
Inherited from#
KubeApi.refreshResourceVersion
setResourceVersion#
▸ setResourceVersion(namespace?
, newVersion
): void
Parameters#
Name | Type | Default value |
---|---|---|
namespace |
string |
"" |
newVersion |
string |
undefined |
Returns#
void
Inherited from#
update#
▸ update(__namedParameters
, data
): Promise
<null
| Pod
>
Parameters#
Name | Type |
---|---|
__namedParameters |
ResourceDescriptor |
data |
PartialObjectDeep <Pod > |
Returns#
Promise
<null
| Pod
>
Inherited from#
watch#
▸ watch(opts?
): () => void
Parameters#
Name | Type |
---|---|
opts |
KubeApiWatchOptions <Pod , KubeJsonApiData <NamespaceScopedMetadata , PodStatus , PodSpec >> |
Returns#
fn
▸ (): void
Returns#
void