Skip to content

Class: ResourceQuotasStore#

Renderer.K8sApi.ResourceQuotasStore

Hierarchy#

ResourceQuotasStore

Table of contents#

Constructors#

Properties#

Accessors#

Methods#

Constructors#

constructor#

new ResourceQuotasStore(api, opts?)

Parameters#

Name Type
api ResourceQuotaApi
opts? KubeObjectStoreOptions

Inherited from#

KubeObjectStore.constructor

new ResourceQuotasStore()

deprecated Supply API instance through constructor

Inherited from#

KubeObjectStore.constructor

Properties#

api#

Readonly api: ResourceQuotaApi

Inherited from#

KubeObjectStore.api


bufferSize#

Readonly bufferSize: number

Inherited from#

KubeObjectStore.bufferSize


eventsBuffer#

Protected eventsBuffer: IObservableArray<IKubeWatchEvent<KubeJsonApiData<NamespaceScopedMetadata, ResourceQuotaStatus, ResourceQuotaSpec>>>

Inherited from#

KubeObjectStore.eventsBuffer


failedLoading#

failedLoading: boolean = false

Inherited from#

KubeObjectStore.failedLoading


isLoaded#

isLoaded: boolean = false

Inherited from#

KubeObjectStore.isLoaded


isLoading#

isLoading: boolean = false

Inherited from#

KubeObjectStore.isLoading


items#

items: IObservableArray<ResourceQuota>

Inherited from#

KubeObjectStore.items


limit#

Readonly limit: undefined | number

Inherited from#

KubeObjectStore.limit


selectedItemsIds#

selectedItemsIds: ObservableSet<string>

Inherited from#

KubeObjectStore.selectedItemsIds


defaultContext#

Static Readonly defaultContext: IObservableValue<undefined | ClusterContext>

Inherited from#

KubeObjectStore.defaultContext

Accessors#

context#

get context(): undefined | ClusterContext

Returns#

undefined | ClusterContext

Inherited from#

KubeObjectStore.context


contextItems#

get contextItems(): K[]

Returns#

K[]

Inherited from#

KubeObjectStore.contextItems


contextReady#

get contextReady(): Promise<void> & { cancel: () => void }

Returns#

Promise<void> & { cancel: () => void }

Inherited from#

KubeObjectStore.contextReady


namespacesReady#

get namespacesReady(): Promise<void> & { cancel: () => void }

Returns#

Promise<void> & { cancel: () => void }

Inherited from#

KubeObjectStore.namespacesReady


query#

get query(): KubeApiQueryParams

Returns#

KubeApiQueryParams

Inherited from#

KubeObjectStore.query


selectedItems#

get selectedItems(): Item[]

Returns#

Item[]

Inherited from#

KubeObjectStore.selectedItems

Methods#

[iterator]#

[iterator](): Generator<ResourceQuota, void, undefined>

Returns#

Generator<ResourceQuota, void, undefined>

Inherited from#

KubeObjectStore.[iterator]


bindWatchEventsUpdater#

Protected bindWatchEventsUpdater(delay?): void

Parameters#

Name Type Default value
delay number 1000

Returns#

void

Inherited from#

KubeObjectStore.bindWatchEventsUpdater


create#

create(params, data?): Promise<ResourceQuota>

Parameters#

Name Type
params Object
params.name string
params.namespace? string
data? PartialObjectDeep<ResourceQuota>

Returns#

Promise<ResourceQuota>

Inherited from#

KubeObjectStore.create


createItem#

Protected createItem(params, data?): Promise<null | ResourceQuota>

Parameters#

Name Type
params Object
params.name string
params.namespace? string
data? PartialObjectDeep<ResourceQuota>

Returns#

Promise<null | ResourceQuota>

Inherited from#

KubeObjectStore.createItem


defaultSorting#

Protected defaultSorting(item): string

Parameters#

Name Type
item Item

Returns#

string

Inherited from#

KubeObjectStore.defaultSorting


filterItemsOnLoad#

Protected filterItemsOnLoad(items): ResourceQuota[]

Parameters#

Name Type
items ResourceQuota[]

Returns#

ResourceQuota[]

Inherited from#

KubeObjectStore.filterItemsOnLoad


getAllByNs#

getAllByNs(namespace, strict?): ResourceQuota[]

Parameters#

Name Type Default value
namespace string | string[] undefined
strict boolean false

Returns#

ResourceQuota[]

Inherited from#

KubeObjectStore.getAllByNs


getById#

getById(id): undefined | ResourceQuota

Parameters#

Name Type
id string

Returns#

undefined | ResourceQuota

Inherited from#

KubeObjectStore.getById


getByLabel#

getByLabel(labels): ResourceQuota[]

Parameters#

Name Type
labels string[] | Partial<Record<string, string>>

Returns#

ResourceQuota[]

Inherited from#

KubeObjectStore.getByLabel


getByName#

getByName(name, namespace?): undefined | ResourceQuota

Parameters#

Name Type
name string
namespace? string

Returns#

undefined | ResourceQuota

Inherited from#

KubeObjectStore.getByName


getByPath#

getByPath(path): undefined | ResourceQuota

Parameters#

Name Type
path string

Returns#

undefined | ResourceQuota

Inherited from#

KubeObjectStore.getByPath


getIndexById#

getIndexById(id): number

Parameters#

Name Type
id string

Returns#

number

Inherited from#

KubeObjectStore.getIndexById


getItems#

getItems(): ResourceQuota[]

Returns#

ResourceQuota[]

Inherited from#

KubeObjectStore.getItems


getTotalCount#

getTotalCount(): number

Returns#

number

Inherited from#

KubeObjectStore.getTotalCount


isSelected#

isSelected(item): boolean

Parameters#

Name Type
item ResourceQuota

Returns#

boolean

Inherited from#

KubeObjectStore.isSelected


isSelectedAll#

isSelectedAll(visibleItems?): boolean

Parameters#

Name Type
visibleItems ResourceQuota[]

Returns#

boolean

Inherited from#

KubeObjectStore.isSelectedAll


load#

load(params): Promise<ResourceQuota>

Parameters#

Name Type
params Object
params.name string
params.namespace? string

Returns#

Promise<ResourceQuota>

Inherited from#

KubeObjectStore.load


loadAll#

loadAll(__namedParameters?): Promise<undefined | ResourceQuota[]>

Parameters#

Name Type
__namedParameters KubeObjectStoreLoadAllParams

Returns#

Promise<undefined | ResourceQuota[]>

Inherited from#

KubeObjectStore.loadAll


loadFromPath#

loadFromPath(resourcePath): Promise<ResourceQuota>

Parameters#

Name Type
resourcePath string

Returns#

Promise<ResourceQuota>

Inherited from#

KubeObjectStore.loadFromPath


loadItem#

Protected loadItem(params): Promise<null | ResourceQuota>

Parameters#

Name Type
params Object
params.name string
params.namespace? string

Returns#

Promise<null | ResourceQuota>

Inherited from#

KubeObjectStore.loadItem


loadItems#

Protected loadItems(__namedParameters): Promise<ResourceQuota[]>

Parameters#

Name Type
__namedParameters KubeObjectStoreLoadingParams

Returns#

Promise<ResourceQuota[]>

Inherited from#

KubeObjectStore.loadItems


mergeItems#

Protected mergeItems(partialItems, __namedParameters): ResourceQuota[]

Parameters#

Name Type
partialItems ResourceQuota[]
__namedParameters MergeItemsOptions

Returns#

ResourceQuota[]

Inherited from#

KubeObjectStore.mergeItems


patch#

patch(item, patch): Promise<ResourceQuota>

Parameters#

Name Type
item ResourceQuota
patch Patch

Returns#

Promise<ResourceQuota>

Inherited from#

KubeObjectStore.patch


pickOnlySelected#

pickOnlySelected(items): ResourceQuota[]

Parameters#

Name Type
items ResourceQuota[]

Returns#

ResourceQuota[]

Inherited from#

KubeObjectStore.pickOnlySelected


reloadAll#

reloadAll(opts?): Promise<undefined | ResourceQuota[]>

Parameters#

Name Type
opts Object
opts.force? boolean
opts.merge? boolean
opts.namespaces? string[]

Returns#

Promise<undefined | ResourceQuota[]>

Inherited from#

KubeObjectStore.reloadAll


remove#

remove(item): Promise<void>

Parameters#

Name Type
item ResourceQuota

Returns#

Promise<void>

Inherited from#

KubeObjectStore.remove


removeItem#

Protected removeItem(item, request): Promise<void>

Parameters#

Name Type
item ResourceQuota
request () => Promise<any>

Returns#

Promise<void>

Inherited from#

KubeObjectStore.removeItem


removeItems#

removeItems(items): Promise<void>

Parameters#

Name Type
items ResourceQuota[]

Returns#

Promise<void>

Inherited from#

KubeObjectStore.removeItems


removeSelectedItems#

removeSelectedItems(): Promise<void>

Returns#

Promise<void>

Inherited from#

KubeObjectStore.removeSelectedItems


reset#

reset(): void

Returns#

void

Inherited from#

KubeObjectStore.reset


resetOnError#

Protected resetOnError(error): void

Parameters#

Name Type
error any

Returns#

void

Inherited from#

KubeObjectStore.resetOnError


resetSelection#

resetSelection(): void

Returns#

void

Inherited from#

KubeObjectStore.resetSelection


select#

select(item): void

Parameters#

Name Type
item ResourceQuota

Returns#

void

Inherited from#

KubeObjectStore.select


sortItems#

Protected sortItems(items?, sorting?, order?): ResourceQuota[]

Return items sorted by the given ordering functions. If two elements of items are sorted to the same "index" then the next sorting function is used to determine where to place them relative to each other. Once the sorting functions have been all exhausted then the order is unchanged (ie a stable sort).

Parameters#

Name Type Description
items ResourceQuota[] the items to be sorted (default: the current items in this store)
sorting (item: ResourceQuota) => any[] list of functions to determine sort order (default: sorting by name)
order? "asc" | "desc" whether to sort from least to greatest ("asc" (default)) or vice-versa ("desc")

Returns#

ResourceQuota[]

Inherited from#

KubeObjectStore.sortItems


subscribe#

subscribe(__namedParameters?): Disposer

Parameters#

Name Type
__namedParameters KubeObjectStoreSubscribeParams

Returns#

Disposer

Inherited from#

KubeObjectStore.subscribe


toggleSelection#

toggleSelection(item): void

Parameters#

Name Type
item ResourceQuota

Returns#

void

Inherited from#

KubeObjectStore.toggleSelection


toggleSelectionAll#

toggleSelectionAll(visibleItems?): void

Parameters#

Name Type
visibleItems ResourceQuota[]

Returns#

void

Inherited from#

KubeObjectStore.toggleSelectionAll


unselect#

unselect(item): void

Parameters#

Name Type
item ResourceQuota

Returns#

void

Inherited from#

KubeObjectStore.unselect


update#

update(item, data): Promise<ResourceQuota>

Parameters#

Name Type
item ResourceQuota
data PartialObjectDeep<ResourceQuota>

Returns#

Promise<ResourceQuota>

Inherited from#

KubeObjectStore.update


updateFromEventsBuffer#

Protected updateFromEventsBuffer(): void

Returns#

void

Inherited from#

KubeObjectStore.updateFromEventsBuffer


updateItem#

Protected updateItem(item, request): Promise<ResourceQuota>

Parameters#

Name Type
item ResourceQuota
request () => Promise<ResourceQuota>

Returns#

Promise<ResourceQuota>

Inherited from#

KubeObjectStore.updateItem