Documentation ¶ Index ¶ Variables func Delete(client *client.PortLayer, key string) error func Get(client *client.PortLayer, key string) (string, error) func Put(client *client.PortLayer, key string, val string) error Constants ¶ This section is empty. Variables ¶ View Source var ( ErrKeyNotFound = errors.New("key not found") ) Functions ¶ func Delete ¶ func Delete(client *client.PortLayer, key string) error Delete will remove the key / value from the store func Get ¶ func Get(client *client.PortLayer, key string) (string, error) Get will call to the portlayer for the value of the specified key The key argument is prefixed w/the defaultName space for the docker persona. i.e. docker.{key} If the key doesn't exist an ErrKeyNotFound will be returned func Put ¶ func Put(client *client.PortLayer, key string, val string) error Put will put the key / value in the portlayer k/v store Types ¶ This section is empty. Source Files ¶ View all Source files kv.go Click to show internal directories. Click to hide internal directories.