etcd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2018 License: AGPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a wrapper around the etcd client

func NewEtcdClient

func NewEtcdClient(endpoint, cert, key, caCert string) (*Client, error)

NewEtcdClient returns an *etcdv3.Client with connection to DO etcd server

func (*Client) GetValue

func (c *Client) GetValue(key string) ([]byte, error)

GetValue returns specified keys from etcd

func (*Client) PutValue

func (c *Client) PutValue(key string, value []byte) error

PutValue inserts a key into etcd

Jump to

Keyboard shortcuts

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