Class: RuntimeClass

    lib/k8s/runtime .RuntimeClass

    Hierarchy

    • any

      RuntimeClass

    Constructors

    constructor

    new RuntimeClass(json)

    Parameters

    Name Type
    json KubeObject

    Inherited from

    makeKubeObject<KubeObject>(‘runtimeClass’).constructor

    Defined in

    lib/k8s/cluster.ts:106

    Properties

    apiEndpoint

    Static apiEndpoint: Object

    Index signature

    ▪ [other: string]: any

    Type declaration

    Name Type
    scale? { get: (namespace: string, name: string) => Promise<any> ; put: (body: { metadata: KubeMetadata ; spec: { replicas: number } }) => Promise<any> }
    scale.get (namespace: string, name: string) => Promise<any>
    scale.put (body: { metadata: KubeMetadata ; spec: { replicas: number } }) => Promise<any>

    Defined in

    lib/k8s/runtime.ts:9


    className

    Static className: string

    Inherited from

    makeKubeObject<KubeObject>(‘runtimeClass’).className

    Defined in

    lib/k8s/cluster.ts:107

    Accessors

    spec

    get spec(): any

    Returns

    any

    Defined in

    lib/k8s/runtime.ts:11

    Methods

    apiList

    Static apiList(onList): any

    Parameters

    Name Type
    onList (arg: any[]) => void

    Returns

    any

    Inherited from

    makeKubeObject<KubeObject>(‘runtimeClass’).apiList

    Defined in

    lib/k8s/cluster.ts:86


    getAuthorization

    Static Optional getAuthorization(arg, resourceAttrs?): any

    Parameters

    Name Type
    arg string
    resourceAttrs? AuthRequestResourceAttrs

    Returns

    any

    Inherited from

    makeKubeObject<KubeObject>(‘runtimeClass’).getAuthorization

    Defined in

    lib/k8s/cluster.ts:109


    getErrorMessage

    Static getErrorMessage(err?): null | string

    Parameters

    Name Type
    err? null | ApiError

    Returns

    null | string

    Inherited from

    makeKubeObject<KubeObject>(‘runtimeClass’).getErrorMessage

    Defined in

    lib/k8s/cluster.ts:105


    useApiGet

    Static useApiGet(onGet, name, namespace?, onError?): void

    Parameters

    Name Type
    onGet (…args: any) => void
    name string
    namespace? string
    onError? (err: ApiError ) => void

    Returns

    void

    Inherited from

    makeKubeObject<KubeObject>(‘runtimeClass’).useApiGet

    Defined in

    lib/k8s/cluster.ts:92


    useApiList

    Static useApiList(onList, onError?, opts?): any

    Parameters

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

    Returns

    any

    Inherited from

    makeKubeObject<KubeObject>(‘runtimeClass’).useApiList

    Defined in

    lib/k8s/cluster.ts:87


    useGet

    Static useGet(name, namespace?): [any, null | ApiError , (item: any) => void, (err: null | ApiError ) => void]

    Parameters

    Name Type
    name string
    namespace? string

    Returns

    [any, null | ApiError , (item: any) => void, (err: null | ApiError ) => void]

    Inherited from

    makeKubeObject<KubeObject>(‘runtimeClass’).useGet

    Defined in

    lib/k8s/cluster.ts:101


    useList

    Static useList(opts?): [any[], null | ApiError , (items: any[]) => void, (err: null | ApiError ) => void]

    Parameters

    Name Type
    opts? ApiListOptions

    Returns

    [any[], null | ApiError , (items: any[]) => void, (err: null | ApiError ) => void]

    Inherited from

    makeKubeObject<KubeObject>(‘runtimeClass’).useList

    Defined in

    lib/k8s/cluster.ts:98