Documentation ¶
Index ¶
- Constants
- func PodObjectIndexFuncFactory(fieldCategory, fieldName string) cache.IndexFunc
- type KStore
- func (ks *KStore) GetCacheAsJson() (string, error)
- func (ks *KStore) GetCacheByIndex(indexName, indexKey string) (string, error)
- func (ks *KStore) GetCacheByMultipleIndex(indexKV map[string][]string) (string, error)
- func (ks *KStore) GetIndiceByName(indexName string) ([]string, error)
- func (ks *KStore) Join(nodeID, addr string) error
- func (ks *KStore) Reset(data *map[string]*cache.ObjectDef) error
- func (ks *KStore) ServeHttp()
- func (ks *KStore) Start(enableSingleNode bool, localID string)
- func (ks *KStore) Stop()
- func (ks *KStore) Stopped() bool
- func (ks *KStore) WaitUtilStop()
Constants ¶
View Source
const ( DeleteCategory = "delete" Deleted = "true" NonDeleted = "false" )
View Source
const (
ObjectTypePods = "pods"
)
Variables ¶
This section is empty.
Functions ¶
func PodObjectIndexFuncFactory ¶
make a factory to produce indexFunc for those regular field category, such as meta, spec, status etc. fieldName is a helper while we can NOT determine the key via fieldCategory.
Types ¶
type KStore ¶
type KStore struct {
// raft and consensus mechanism
RaftDir, RaftBind, JoinAddr string // TODO: ensure dir exists.
// http server configurations
HttpBind string
// contains filtered or unexported fields
}
func (*KStore) GetCacheAsJson ¶
func (*KStore) GetCacheByIndex ¶
func (*KStore) GetCacheByMultipleIndex ¶
func (*KStore) GetIndiceByName ¶
func (*KStore) WaitUtilStop ¶
func (ks *KStore) WaitUtilStop()
Click to show internal directories.
Click to hide internal directories.