Class: Job
Extends
any
Constructors
new Job()
new Job(json: KubeJob): Job
Parameters
Parameter | Type |
---|---|
json | KubeJob |
Returns
Inherited from
makeKubeObject<KubeJob>('Job').constructor
Defined in
Properties
Property | Modifier | Type | Inherited from | Defined in |
---|---|---|---|---|
apiEndpoint | static | ApiWithNamespaceClient <KubeObjectInterface > | - | src/lib/k8s/job.ts:26 |
apiList | static | (onList : (arg : any []) => void , onError ?: (err : ApiError ) => void , opts ?: ApiListSingleNamespaceOptions ) => any | makeKubeObject<KubeJob>('Job').apiList | src/lib/k8s/cluster.ts:311 |
className | static | string | makeKubeObject<KubeJob>('Job').className | src/lib/k8s/cluster.ts:338 |
getAuthorization? | static | (arg : string , resourceAttrs ?: AuthRequestResourceAttrs ) => any | makeKubeObject<KubeJob>('Job').getAuthorization | src/lib/k8s/cluster.ts:340 |
getErrorMessage | static | (err ?: null | ApiError ) => null | string | makeKubeObject<KubeJob>('Job').getErrorMessage | src/lib/k8s/cluster.ts:336 |
useApiGet | static | (onGet : (...args : any ) => void , name : string , namespace ?: string , onError ?: (err : ApiError ) => void ) => void | makeKubeObject<KubeJob>('Job').useApiGet | src/lib/k8s/cluster.ts:321 |
useApiList | static | (onList : (arg : any []) => void , onError ?: (err : ApiError ) => void , opts ?: ApiListOptions ) => any | makeKubeObject<KubeJob>('Job').useApiList | src/lib/k8s/cluster.ts:316 |
useGet | static | (name : string , namespace ?: string , opts ?: object ) => [any , null | ApiError ] & QueryResponse <any , ApiError > | makeKubeObject<KubeJob>('Job').useGet | src/lib/k8s/cluster.ts:328 |
Accessors
spec
get spec(): any
Returns
any
Defined in
status
get status(): any
Returns
any
Defined in
Methods
getContainers()
getContainers(): KubeContainer[]
Returns
Defined in
getDuration()
getDuration(): number
Returns the duration of the job in milliseconds.
Returns
number
Defined in
useList()
static useList(options?: ApiListOptions): [null | any[], null | ApiError] & QueryListResponse<KubeList<any>, any, ApiError>
Parameters
Parameter | Type |
---|---|
options ? | ApiListOptions |
Returns
[null
| any
[], null
| ApiError
] & QueryListResponse
<KubeList
<any
>, any
, ApiError
>
Inherited from
makeKubeObject<KubeJob>('Job').useList