Interface: KubeObjectIface<T>

    lib/k8s/cluster .KubeObjectIface

    Type parameters

    Name Type
    T extends KubeObjectInterface | KubeEvent

    Indexable

    ▪ [prop: string]: any

    Constructors

    constructor

    new KubeObjectIface(json)

    Parameters

    Name Type
    json T

    Defined in

    lib/k8s/cluster.ts:317

    Properties

    className

    className: string

    Defined in

    lib/k8s/cluster.ts:318

    Methods

    apiList

    apiList(onList, onError?, opts?): any

    Parameters

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

    Returns

    any

    Defined in

    lib/k8s/cluster.ts:293


    getAuthorization

    Optional getAuthorization(arg, resourceAttrs?): any

    Parameters

    Name Type
    arg string
    resourceAttrs? AuthRequestResourceAttrs

    Returns

    any

    Defined in

    lib/k8s/cluster.ts:320


    getErrorMessage

    getErrorMessage(err?): null | string

    Parameters

    Name Type
    err? null | ApiError

    Returns

    null | string

    Defined in

    lib/k8s/cluster.ts:316


    useApiGet

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

    Parameters

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

    Returns

    void

    Defined in

    lib/k8s/cluster.ts:303


    useApiList

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

    Parameters

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

    Returns

    any

    Defined in

    lib/k8s/cluster.ts:298


    useGet

    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]

    Defined in

    lib/k8s/cluster.ts:312


    useList

    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]

    Defined in

    lib/k8s/cluster.ts:309