Class: StorageClass

    lib/k8s/storageClass .StorageClass

    Hierarchy

    • any

      StorageClass

    Constructors

    constructor

    new StorageClass(json)

    Parameters

    Name Type
    json KubeStorageClass

    Inherited from

    makeKubeObject<KubeStorageClass>(‘storageClass’).constructor

    Defined in

    lib/k8s/cluster.ts:317

    Properties

    apiEndpoint

    Static apiEndpoint: Object

    Type declaration

    Name Type
    apiInfo { group: string ; resource: string ; version: string }[]
    delete (name: string, queryParams?: QueryParameters , cluster?: string) => Promise<any>
    get (name: string, cb: StreamResultsCb , errCb: StreamErrCb , queryParams?: QueryParameters , cluster?: string) => Promise<() => void>
    isNamespaced boolean
    list (cb: StreamResultsCb , errCb: StreamErrCb , queryParams?: QueryParameters , cluster?: string) => Promise<() => void>
    patch (body: OpPatch[], name: string, queryParams?: QueryParameters , cluster?: string) => Promise<any>
    post (body: KubeObjectInterface , queryParams?: QueryParameters , cluster?: string) => Promise<any>
    put (body: KubeObjectInterface , queryParams?: QueryParameters , cluster?: string) => Promise<any>

    Defined in

    lib/k8s/storageClass.ts:11


    className

    Static className: string

    Inherited from

    makeKubeObject<KubeStorageClass>(‘storageClass’).className

    Defined in

    lib/k8s/cluster.ts:318

    Accessors

    provisioner

    get provisioner(): any

    Returns

    any

    Defined in

    lib/k8s/storageClass.ts:13


    reclaimPolicy

    get reclaimPolicy(): any

    Returns

    any

    Defined in

    lib/k8s/storageClass.ts:17


    volumeBindingMode

    get volumeBindingMode(): any

    Returns

    any

    Defined in

    lib/k8s/storageClass.ts:21


    listRoute

    Static get listRoute(): string

    Returns

    string

    Defined in

    lib/k8s/storageClass.ts:25


    pluralName

    Static get pluralName(): string

    Returns

    string

    Defined in

    lib/k8s/storageClass.ts:29

    Methods

    apiList

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

    Parameters

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

    Returns

    any

    Inherited from

    makeKubeObject<KubeStorageClass>(‘storageClass’).apiList

    Defined in

    lib/k8s/cluster.ts:293


    getAuthorization

    Static Optional getAuthorization(arg, resourceAttrs?): any

    Parameters

    Name Type
    arg string
    resourceAttrs? AuthRequestResourceAttrs

    Returns

    any

    Inherited from

    makeKubeObject<KubeStorageClass>(‘storageClass’).getAuthorization

    Defined in

    lib/k8s/cluster.ts:320


    getErrorMessage

    Static getErrorMessage(err?): null | string

    Parameters

    Name Type
    err? null | ApiError

    Returns

    null | string

    Inherited from

    makeKubeObject<KubeStorageClass>(‘storageClass’).getErrorMessage

    Defined in

    lib/k8s/cluster.ts:316


    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<KubeStorageClass>(‘storageClass’).useApiGet

    Defined in

    lib/k8s/cluster.ts:303


    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<KubeStorageClass>(‘storageClass’).useApiList

    Defined in

    lib/k8s/cluster.ts:298


    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<KubeStorageClass>(‘storageClass’).useGet

    Defined in

    lib/k8s/cluster.ts:312


    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<KubeStorageClass>(‘storageClass’).useList

    Defined in

    lib/k8s/cluster.ts:309