etcd, resources, world: Add World API for shared keys
It's up to the end user to decide who is writing and/or overwriting them. It could also be useful to reimplement (refactor) some of the existing World API's to be implemented in terms of these primitives.
This commit is contained in:
@@ -81,9 +81,15 @@ type World interface { // TODO: is there a better name for this interface?
|
||||
ResCollect(hostnameFilter, kindFilter []string) ([]Res, error)
|
||||
|
||||
StrWatch(namespace string) chan error
|
||||
StrGet(namespace string) (map[string]string, error)
|
||||
StrIsNotExist(error) bool
|
||||
StrGet(namespace string) (string, error)
|
||||
StrSet(namespace, value string) error
|
||||
StrDel(namespace string) error
|
||||
|
||||
StrMapWatch(namespace string) chan error
|
||||
StrMapGet(namespace string) (map[string]string, error)
|
||||
StrMapSet(namespace, value string) error
|
||||
StrMapDel(namespace string) error
|
||||
}
|
||||
|
||||
// Data is the set of input values passed into the pgraph for the resources.
|
||||
|
||||
Reference in New Issue
Block a user