Class: Deployment
lib/k8s/deployment .Deployment
Hierarchy
-
any
↳
Deployment
Constructors
constructor
• new Deployment(json
)
Parameters
Name | Type |
---|---|
json |
KubeDeployment
|
Inherited from
makeKubeObject<KubeDeployment>(‘Deployment’).constructor
Defined in
Properties
apiEndpoint
▪ Static
apiEndpoint: Object
Index signature
▪ [other: string
]: any
Type declaration
Name | Type |
---|---|
scale? |
{ get : (namespace : string , name : string ) => Promise <any > ; put : (body : { metadata :
KubeMetadata
; spec : { replicas : number } }) => Promise <any > } |
scale.get |
(namespace : string , name : string ) => Promise <any > |
scale.put |
(body : { metadata :
KubeMetadata
; spec : { replicas : number } }) => Promise <any > |
Defined in
className
▪ Static
className: string
Inherited from
makeKubeObject<KubeDeployment>(‘Deployment’).className
Defined in
Accessors
spec
• get
spec(): any
Returns
any
Defined in
status
• get
status(): any
Returns
any
Defined in
Methods
getContainers
▸ getContainers():
KubeContainer
[]
Returns
Defined in
getMatchLabelsList
▸ getMatchLabelsList(): string
[]
Returns
string
[]
Defined in
apiList
▸ Static
apiList(onList
): any
Parameters
Name | Type |
---|---|
onList |
(arg : any []) => void |
Returns
any
Inherited from
makeKubeObject<KubeDeployment>(‘Deployment’).apiList
Defined in
getAuthorization
▸ Static
Optional
getAuthorization(arg
, resourceAttrs?
): any
Parameters
Name | Type |
---|---|
arg |
string |
resourceAttrs? |
AuthRequestResourceAttrs
|
Returns
any
Inherited from
makeKubeObject<KubeDeployment>(‘Deployment’).getAuthorization
Defined in
getErrorMessage
▸ Static
getErrorMessage(err?
): null
| string
Parameters
Name | Type |
---|---|
err? |
null |
ApiError
|
Returns
null
| string
Inherited from
makeKubeObject<KubeDeployment>(‘Deployment’).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<KubeDeployment>(‘Deployment’).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<KubeDeployment>(‘Deployment’).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<KubeDeployment>(‘Deployment’).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<KubeDeployment>(‘Deployment’).useList