Class: SecretsStore#
Hierarchy#
KubeObjectStore
<Secret
,SecretApi
,SecretData
>
↳ SecretsStore
Table of contents#
Constructors#
Properties#
- api
- bufferSize
- eventsBuffer
- failedLoading
- isLoaded
- isLoading
- items
- limit
- selectedItemsIds
- defaultContext
Accessors#
Methods#
- [iterator]
- bindWatchEventsUpdater
- create
- createItem
- defaultSorting
- filterItemsOnLoad
- getAllByNs
- getById
- getByLabel
- getByName
- getByPath
- getIndexById
- getItems
- getTotalCount
- isSelected
- isSelectedAll
- load
- loadAll
- loadFromPath
- loadItem
- loadItems
- mergeItems
- patch
- pickOnlySelected
- reloadAll
- remove
- removeItem
- removeItems
- removeSelectedItems
- reset
- resetOnError
- resetSelection
- select
- sortItems
- subscribe
- toggleSelection
- toggleSelectionAll
- unselect
- update
- updateFromEventsBuffer
- updateItem
Constructors#
constructor#
• new SecretsStore(api
, opts?
)
Parameters#
Name | Type |
---|---|
api |
SecretApi |
opts? |
KubeObjectStoreOptions |
Inherited from#
• new SecretsStore()
deprecated
Supply API instance through constructor
Inherited from#
Properties#
api#
• Readonly
api: SecretApi
Inherited from#
bufferSize#
• Readonly
bufferSize: number
Inherited from#
eventsBuffer#
• Protected
eventsBuffer: IObservableArray
<IKubeWatchEvent
<SecretData
>>
Inherited from#
failedLoading#
• failedLoading: boolean
= false
Inherited from#
isLoaded#
• isLoaded: boolean
= false
Inherited from#
isLoading#
• isLoading: boolean
= false
Inherited from#
items#
• items: IObservableArray
<Secret
>
Inherited from#
limit#
• Readonly
limit: undefined
| number
Inherited from#
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
<Secret
, void
, undefined
>
Returns#
Generator
<Secret
, void
, undefined
>
Inherited from#
bindWatchEventsUpdater#
▸ Protected
bindWatchEventsUpdater(delay?
): void
Parameters#
Name | Type | Default value |
---|---|---|
delay |
number |
1000 |
Returns#
void
Inherited from#
KubeObjectStore.bindWatchEventsUpdater
create#
▸ create(params
, data?
): Promise
<Secret
>
Parameters#
Name | Type |
---|---|
params |
Object |
params.name |
string |
params.namespace? |
string |
data? |
PartialObjectDeep <Secret > |
Returns#
Promise
<Secret
>
Inherited from#
createItem#
▸ Protected
createItem(params
, data?
): Promise
<null
| Secret
>
Parameters#
Name | Type |
---|---|
params |
Object |
params.name |
string |
params.namespace? |
string |
data? |
PartialObjectDeep <Secret > |
Returns#
Promise
<null
| Secret
>
Inherited from#
defaultSorting#
▸ Protected
defaultSorting(item
): string
Parameters#
Name | Type |
---|---|
item |
Item |
Returns#
string
Inherited from#
KubeObjectStore.defaultSorting
filterItemsOnLoad#
▸ Protected
filterItemsOnLoad(items
): Secret
[]
Parameters#
Name | Type |
---|---|
items |
Secret [] |
Returns#
Secret
[]
Inherited from#
KubeObjectStore.filterItemsOnLoad
getAllByNs#
▸ getAllByNs(namespace
, strict?
): Secret
[]
Parameters#
Name | Type | Default value |
---|---|---|
namespace |
string | string [] |
undefined |
strict |
boolean |
false |
Returns#
Secret
[]
Inherited from#
getById#
▸ getById(id
): undefined
| Secret
Parameters#
Name | Type |
---|---|
id |
string |
Returns#
undefined
| Secret
Inherited from#
getByLabel#
▸ getByLabel(labels
): Secret
[]
Parameters#
Name | Type |
---|---|
labels |
string [] | Partial <Record <string , string >> |
Returns#
Secret
[]
Inherited from#
getByName#
▸ getByName(name
, namespace?
): undefined
| Secret
Parameters#
Name | Type |
---|---|
name |
string |
namespace? |
string |
Returns#
undefined
| Secret
Inherited from#
getByPath#
▸ getByPath(path
): undefined
| Secret
Parameters#
Name | Type |
---|---|
path |
string |
Returns#
undefined
| Secret
Inherited from#
getIndexById#
▸ getIndexById(id
): number
Parameters#
Name | Type |
---|---|
id |
string |
Returns#
number
Inherited from#
getItems#
▸ getItems(): Secret
[]
Returns#
Secret
[]
Inherited from#
getTotalCount#
▸ getTotalCount(): number
Returns#
number
Inherited from#
isSelected#
▸ isSelected(item
): boolean
Parameters#
Name | Type |
---|---|
item |
Secret |
Returns#
boolean
Inherited from#
isSelectedAll#
▸ isSelectedAll(visibleItems?
): boolean
Parameters#
Name | Type |
---|---|
visibleItems |
Secret [] |
Returns#
boolean
Inherited from#
load#
▸ load(params
): Promise
<Secret
>
Parameters#
Name | Type |
---|---|
params |
Object |
params.name |
string |
params.namespace? |
string |
Returns#
Promise
<Secret
>
Inherited from#
loadAll#
▸ loadAll(__namedParameters?
): Promise
<undefined
| Secret
[]>
Parameters#
Name | Type |
---|---|
__namedParameters |
KubeObjectStoreLoadAllParams |
Returns#
Promise
<undefined
| Secret
[]>
Inherited from#
loadFromPath#
▸ loadFromPath(resourcePath
): Promise
<Secret
>
Parameters#
Name | Type |
---|---|
resourcePath |
string |
Returns#
Promise
<Secret
>
Inherited from#
loadItem#
▸ Protected
loadItem(params
): Promise
<null
| Secret
>
Parameters#
Name | Type |
---|---|
params |
Object |
params.name |
string |
params.namespace? |
string |
Returns#
Promise
<null
| Secret
>
Inherited from#
loadItems#
▸ Protected
loadItems(__namedParameters
): Promise
<Secret
[]>
Parameters#
Name | Type |
---|---|
__namedParameters |
KubeObjectStoreLoadingParams |
Returns#
Promise
<Secret
[]>
Inherited from#
mergeItems#
▸ Protected
mergeItems(partialItems
, __namedParameters
): Secret
[]
Parameters#
Name | Type |
---|---|
partialItems |
Secret [] |
__namedParameters |
MergeItemsOptions |
Returns#
Secret
[]
Inherited from#
patch#
▸ patch(item
, patch
): Promise
<Secret
>
Parameters#
Name | Type |
---|---|
item |
Secret |
patch |
Patch |
Returns#
Promise
<Secret
>
Inherited from#
pickOnlySelected#
▸ pickOnlySelected(items
): Secret
[]
Parameters#
Name | Type |
---|---|
items |
Secret [] |
Returns#
Secret
[]
Inherited from#
KubeObjectStore.pickOnlySelected
reloadAll#
▸ reloadAll(opts?
): Promise
<undefined
| Secret
[]>
Parameters#
Name | Type |
---|---|
opts |
Object |
opts.force? |
boolean |
opts.merge? |
boolean |
opts.namespaces? |
string [] |
Returns#
Promise
<undefined
| Secret
[]>
Inherited from#
remove#
▸ remove(item
): Promise
<void
>
Parameters#
Name | Type |
---|---|
item |
Secret |
Returns#
Promise
<void
>
Inherited from#
removeItem#
▸ Protected
removeItem(item
, request
): Promise
<void
>
Parameters#
Name | Type |
---|---|
item |
Secret |
request |
() => Promise <any > |
Returns#
Promise
<void
>
Inherited from#
removeItems#
▸ removeItems(items
): Promise
<void
>
Parameters#
Name | Type |
---|---|
items |
Secret [] |
Returns#
Promise
<void
>
Inherited from#
removeSelectedItems#
▸ removeSelectedItems(): Promise
<void
>
Returns#
Promise
<void
>
Inherited from#
KubeObjectStore.removeSelectedItems
reset#
▸ reset(): void
Returns#
void
Inherited from#
resetOnError#
▸ Protected
resetOnError(error
): void
Parameters#
Name | Type |
---|---|
error |
any |
Returns#
void
Inherited from#
resetSelection#
▸ resetSelection(): void
Returns#
void
Inherited from#
KubeObjectStore.resetSelection
select#
▸ select(item
): void
Parameters#
Name | Type |
---|---|
item |
Secret |
Returns#
void
Inherited from#
sortItems#
▸ Protected
sortItems(items?
, sorting?
, order?
): Secret
[]
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 |
Secret [] |
the items to be sorted (default: the current items in this store) |
sorting |
(item : Secret ) => 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#
Secret
[]
Inherited from#
subscribe#
▸ subscribe(__namedParameters?
): Disposer
Parameters#
Name | Type |
---|---|
__namedParameters |
KubeObjectStoreSubscribeParams |
Returns#
Disposer
Inherited from#
toggleSelection#
▸ toggleSelection(item
): void
Parameters#
Name | Type |
---|---|
item |
Secret |
Returns#
void
Inherited from#
KubeObjectStore.toggleSelection
toggleSelectionAll#
▸ toggleSelectionAll(visibleItems?
): void
Parameters#
Name | Type |
---|---|
visibleItems |
Secret [] |
Returns#
void
Inherited from#
KubeObjectStore.toggleSelectionAll
unselect#
▸ unselect(item
): void
Parameters#
Name | Type |
---|---|
item |
Secret |
Returns#
void
Inherited from#
update#
▸ update(item
, data
): Promise
<Secret
>
Parameters#
Name | Type |
---|---|
item |
Secret |
data |
PartialObjectDeep <Secret > |
Returns#
Promise
<Secret
>
Inherited from#
updateFromEventsBuffer#
▸ Protected
updateFromEventsBuffer(): void
Returns#
void
Inherited from#
KubeObjectStore.updateFromEventsBuffer
updateItem#
▸ Protected
updateItem(item
, request
): Promise
<Secret
>
Parameters#
Name | Type |
---|---|
item |
Secret |
request |
() => Promise <Secret > |
Returns#
Promise
<Secret
>