Skip to main content

Class: Lease

Extends

  • any

Constructors

new Lease()

new Lease(json: KubeLease): Lease

Parameters

ParameterType
jsonKubeLease

Returns

Lease

Inherited from

makeKubeObject<KubeLease>('Lease').constructor

Defined in

src/lib/k8s/cluster.ts:337

Properties

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

Accessors

spec

get spec(): any

Returns

any

Defined in

src/lib/k8s/lease.ts:18

Methods

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<KubeLease>('Lease').useList

Defined in

src/lib/k8s/cluster.ts:327