Skip to main content

Class: ClusterRole

Extends

  • any

Constructors

new ClusterRole()

new ClusterRole(json: KubeRole): ClusterRole

Parameters

ParameterType
jsonKubeRole

Returns

ClusterRole

Inherited from

makeKubeObject<KubeRole>('role').constructor

Defined in

src/lib/k8s/cluster.ts:337

Properties

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

Accessors

detailsRoute

get detailsRoute(): string

Returns

string

Defined in

src/lib/k8s/clusterRole.ts:12


rules

get rules(): any

Returns

any

Defined in

src/lib/k8s/clusterRole.ts:16


className

get static className(): string

Returns

string

Overrides

makeKubeObject<KubeRole>('role').className

Defined in

src/lib/k8s/clusterRole.ts:8

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<KubeRole>('role').useList

Defined in

src/lib/k8s/cluster.ts:327