Interface Store<ApiType>
- Type Parameters:
ApiType- kubernetes api type
- All Known Subinterfaces:
Indexer<ApiType>
- All Known Implementing Classes:
Cache
public interface Store<ApiType>
Interface for implementations which stores objects.
The code has been copied from the official client and modified: Store
-
Method Summary
Modifier and TypeMethodDescriptionvoidInserts an item into the store.voidRemoves an item from the store.@Nullable ApiTypeReturns the request item with specific key.Returns a function which creates an object key.list()Returns a list of all the items.listKeys()Returns a list of keys of all objects that are currently in the store.voidReplace the content in the cache completely.voidSets an item in the store to its updated state.
-
Method Details
-
getKeyFunction
-
add
-
update
Sets an item in the store to its updated state.- Parameters:
obj- specific obj
-
delete
-
replace
-
listKeys
-
getByKey
-
list
-