Class: Node
lib/k8s/node .Node
Hierarchy
-
any
↳
Node
Constructors
constructor
• new Node(json
)
Parameters
Name | Type |
---|---|
json |
KubeNode
|
Inherited from
makeKubeObject<KubeNode>(‘node’).constructor
Defined in
Properties
apiEndpoint
▪ Static
apiEndpoint: Object
Type declaration
Name | Type |
---|---|
delete |
(name : string , queryParams? :
QueryParameters
) => Promise <any > |
get |
(name : string , cb :
StreamResultsCb
, errCb :
StreamErrCb
, queryParams? :
QueryParameters
) => Promise <() => void > |
isNamespaced |
boolean |
list |
(cb :
StreamResultsCb
, errCb :
StreamErrCb
, queryParams? :
QueryParameters
) => Promise <() => void > |
patch |
(body : OpPatch [], name : string , queryParams? :
QueryParameters
) => Promise <any > |
post |
(body :
KubeObjectInterface
, queryParams? :
QueryParameters
) => Promise <any > |
put |
(body :
KubeObjectInterface
, queryParams? :
QueryParameters
) => Promise <any > |
Defined in
className
▪ Static
className: string
Inherited from
makeKubeObject<KubeNode>(‘node’).className
Defined in
Accessors
spec
• get
spec(): Object
Returns
Object
Name | Type |
---|---|
podCIDR |
string |
Defined in
status
• get
status(): Object
Returns
Object
Name | Type |
---|---|
addresses |
{ address : string ; type : string }[] |
capacity |
{ cpu : any ; memory : any } |
capacity.cpu |
any |
capacity.memory |
any |
conditions |
Omit <
KubeCondition
, "lastProbeTime" | "lastUpdateTime" > & { lastHeartbeatTime : string }[] |
nodeInfo |
{ architecture : string ; bootID : string ; containerRuntimeVersion : string ; kernelVersion : string ; kubeProxyVersion : string ; kubeletVersion : string ; machineID : string ; operatingSystem : string ; osImage : string ; systemUUID : string } |
nodeInfo.architecture |
string |
nodeInfo.bootID |
string |
nodeInfo.containerRuntimeVersion |
string |
nodeInfo.kernelVersion |
string |
nodeInfo.kubeProxyVersion |
string |
nodeInfo.kubeletVersion |
string |
nodeInfo.machineID |
string |
nodeInfo.operatingSystem |
string |
nodeInfo.osImage |
string |
nodeInfo.systemUUID |
string |
Defined in
Methods
apiList
▸ Static
apiList(onList
): any
Parameters
Name | Type |
---|---|
onList |
(arg : any []) => void |
Returns
any
Inherited from
makeKubeObject<KubeNode>(‘node’).apiList
Defined in
getAuthorization
▸ Static
Optional
getAuthorization(arg
, resourceAttrs?
): any
Parameters
Name | Type |
---|---|
arg |
string |
resourceAttrs? |
AuthRequestResourceAttrs
|
Returns
any
Inherited from
makeKubeObject<KubeNode>(‘node’).getAuthorization
Defined in
getErrorMessage
▸ Static
getErrorMessage(err?
): null
| string
Parameters
Name | Type |
---|---|
err? |
null |
ApiError
|
Returns
null
| string
Inherited from
makeKubeObject<KubeNode>(‘node’).getErrorMessage
Defined in
useApiGet
▸ Static
useApiGet(onGet
, name
, namespace?
, onError?
): void
Parameters
Name | Type |
---|---|
onGet |
(…args : any ) => void |
name |
string |
namespace? |
string |
onError? |
(err :
ApiError
) => void |
Returns
void
Inherited from
makeKubeObject<KubeNode>(‘node’).useApiGet
Defined in
useApiList
▸ Static
useApiList(onList
, onError?
, opts?
): any
Parameters
Name | Type |
---|---|
onList |
(arg : any []) => void |
onError? |
(err :
ApiError
) => void |
opts? |
ApiListOptions
|
Returns
any
Inherited from
makeKubeObject<KubeNode>(‘node’).useApiList
Defined in
useGet
▸ Static
useGet(name
, namespace?
): [any
, null
|
ApiError
, (item
: any
) => void
, (err
: null
|
ApiError
) => void
]
Parameters
Name | Type |
---|---|
name |
string |
namespace? |
string |
Returns
[any
, null
|
ApiError
, (item
: any
) => void
, (err
: null
|
ApiError
) => void
]
Inherited from
makeKubeObject<KubeNode>(‘node’).useGet
Defined in
useList
▸ Static
useList(opts?
): [any
[], null
|
ApiError
, (items
: any
[]) => void
, (err
: null
|
ApiError
) => void
]
Parameters
Name | Type |
---|---|
opts? |
ApiListOptions
|
Returns
[any
[], null
|
ApiError
, (items
: any
[]) => void
, (err
: null
|
ApiError
) => void
]
Inherited from
makeKubeObject<KubeNode>(‘node’).useList
Defined in
useMetrics
▸ Static
useMetrics(): [null
|
KubeMetrics
[], null
|
ApiError
]
Returns
[null
|
KubeMetrics
[], null
|
ApiError
]