Skip to main content

Class: Job

Extends

  • any

Constructors

new Job()

new Job(json: KubeJob): Job

Parameters

ParameterType
jsonKubeJob

Returns

Job

Inherited from

makeKubeObject<KubeJob>('Job').constructor

Defined in

src/lib/k8s/cluster.ts:337

Properties

PropertyModifierTypeInherited fromDefined in
apiEndpointstaticApiWithNamespaceClient<KubeObjectInterface>-src/lib/k8s/job.ts:26
apiListstatic(onList: (arg: any[]) => void, onError?: (err: ApiError) => void, opts?: ApiListSingleNamespaceOptions) => anymakeKubeObject<KubeJob>('Job').apiListsrc/lib/k8s/cluster.ts:311
classNamestaticstringmakeKubeObject<KubeJob>('Job').classNamesrc/lib/k8s/cluster.ts:338
getAuthorization?static(arg: string, resourceAttrs?: AuthRequestResourceAttrs) => anymakeKubeObject<KubeJob>('Job').getAuthorizationsrc/lib/k8s/cluster.ts:340
getErrorMessagestatic(err?: null | ApiError) => null | stringmakeKubeObject<KubeJob>('Job').getErrorMessagesrc/lib/k8s/cluster.ts:336
useApiGetstatic(onGet: (...args: any) => void, name: string, namespace?: string, onError?: (err: ApiError) => void) => voidmakeKubeObject<KubeJob>('Job').useApiGetsrc/lib/k8s/cluster.ts:321
useApiListstatic(onList: (arg: any[]) => void, onError?: (err: ApiError) => void, opts?: ApiListOptions) => anymakeKubeObject<KubeJob>('Job').useApiListsrc/lib/k8s/cluster.ts:316
useGetstatic(name: string, namespace?: string, opts?: object) => [any, null | ApiError] & QueryResponse<any, ApiError>makeKubeObject<KubeJob>('Job').useGetsrc/lib/k8s/cluster.ts:328

Accessors

spec

get spec(): any

Returns

any

Defined in

src/lib/k8s/job.ts:28


status

get status(): any

Returns

any

Defined in

src/lib/k8s/job.ts:32

Methods

getContainers()

getContainers(): KubeContainer[]

Returns

KubeContainer[]

Defined in

src/lib/k8s/job.ts:36


getDuration()

getDuration(): number

Returns the duration of the job in milliseconds.

Returns

number

Defined in

src/lib/k8s/job.ts:41


useList()

static useList(options?: ApiListOptions): [null | any[], null | ApiError] & QueryListResponse<KubeList<any>, any, ApiError>

Parameters

ParameterType
options?ApiListOptions

Returns

[null | any[], null | ApiError] & QueryListResponse<KubeList<any>, any, ApiError>

Inherited from

makeKubeObject<KubeJob>('Job').useList

Defined in

src/lib/k8s/cluster.ts:327