Documentation
¶
Index ¶
- func GetStrMap(ctx context.Context, client interfaces.Client, hostnameFilter []string, ...) (map[string]string, error)
- func SetStrMap(ctx context.Context, client interfaces.Client, hostname, key string, ...) error
- func WatchStrMap(ctx context.Context, client interfaces.Client, key string) (chan error, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStrMap ¶
func GetStrMap(ctx context.Context, client interfaces.Client, hostnameFilter []string, key string) (map[string]string, error)
GetStrMap collects all of the strings which match a namespace in etcd.
func SetStrMap ¶
func SetStrMap(ctx context.Context, client interfaces.Client, hostname, key string, data *string) error
SetStrMap sets a key and hostname pair to a certain value. If the value is nil, then it deletes the key. Otherwise the value should point to a string. TODO: TTL or delete disconnect?
func WatchStrMap ¶
WatchStrMap returns a channel which spits out events on key activity. FIXME: It should close the channel when it's done, and spit out errors when something goes wrong.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.