Skip to main content

Interface: KubeObjectIface<T>

Type Parameters

Type Parameter
T extends KubeObjectInterface | KubeEvent

Indexable

[prop: string]: any

Constructors

new KubeObjectIface()

new KubeObjectIface(json: T): any

Parameters

ParameterType
jsonT

Returns

any

Defined in

src/lib/k8s/cluster.ts:337

Properties

apiList()

apiList: (onList: (arg: any[]) => void, onError?: (err: ApiError) => void, opts?: ApiListSingleNamespaceOptions) => any;

Parameters

ParameterType
onList(arg: any[]) => void
onError?(err: ApiError) => void
opts?ApiListSingleNamespaceOptions

Returns

any

Defined in

src/lib/k8s/cluster.ts:311


className

className: string;

Defined in

src/lib/k8s/cluster.ts:338


getAuthorization()?

optional getAuthorization: (arg: string, resourceAttrs?: AuthRequestResourceAttrs) => any;

Parameters

ParameterType
argstring
resourceAttrs?AuthRequestResourceAttrs

Returns

any

Defined in

src/lib/k8s/cluster.ts:340


getErrorMessage()

getErrorMessage: (err?: null | ApiError) => null | string;

Parameters

ParameterType
err?null | ApiError

Returns

null | string

Defined in

src/lib/k8s/cluster.ts:336


useApiGet()

useApiGet: (onGet: (...args: any) => void, name: string, namespace?: string, onError?: (err: ApiError) => void) => void;

Parameters

ParameterType
onGet(...args: any) => void
namestring
namespace?string
onError?(err: ApiError) => void

Returns

void

Defined in

src/lib/k8s/cluster.ts:321


useApiList()

useApiList: (onList: (arg: any[]) => void, onError?: (err: ApiError) => void, opts?: ApiListOptions) => any;

Parameters

ParameterType
onList(arg: any[]) => void
onError?(err: ApiError) => void
opts?ApiListOptions

Returns

any

Defined in

src/lib/k8s/cluster.ts:316


useGet()

useGet: (name: string, namespace?: string, opts?: object) => [any, null | ApiError] & QueryResponse<any, ApiError>;

Parameters

ParameterType
namestring
namespace?string
opts?object
opts.cluster?string
opts.queryParams?QueryParameters

Returns

[any, null | ApiError] & QueryResponse<any, ApiError>

Defined in

src/lib/k8s/cluster.ts:328

Methods

useList()

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>

Defined in

src/lib/k8s/cluster.ts:327