Skip to main content

Class: Namespace

Extends

  • any

Constructors

new Namespace()

new Namespace(json: KubeNamespace): Namespace

Parameters

ParameterType
jsonKubeNamespace

Returns

Namespace

Inherited from

makeKubeObject<KubeNamespace>('namespace').constructor

Defined in

src/lib/k8s/cluster.ts:337

Properties

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

Accessors

status

get status(): any

Returns

any

Defined in

src/lib/k8s/namespace.ts:13

Methods

isValidNamespaceFormat()

static isValidNamespaceFormat(namespace: string): boolean

This function validates the custom namespace input matches the crieria for DNS-1123 label names.

Parameters

ParameterType
namespacestring

Returns

boolean

true if the namespace is valid, false otherwise.

Params

namespace: string

See

https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-label-names

Defined in

src/lib/k8s/namespace.ts:23


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<KubeNamespace>('namespace').useList

Defined in

src/lib/k8s/cluster.ts:327