kv

package
v1.4.1-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL