etcd

package
v0.12.0-dev20190520H16 Latest Latest
Warning

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

Go to latest
Published: May 17, 2019 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() backend.Backend

Types

type Backend

type Backend struct {
	*schema.Backend
	// contains filtered or unexported fields
}

func (*Backend) DeleteWorkspace added in v0.12.0

func (b *Backend) DeleteWorkspace(name string) error

func (*Backend) StateMgr added in v0.12.0

func (b *Backend) StateMgr(name string) (state.State, error)

func (*Backend) Workspaces added in v0.12.0

func (b *Backend) Workspaces() ([]string, error)

type RemoteClient

type RemoteClient struct {
	Client *etcdv3.Client
	DoLock bool
	Key    string
	// contains filtered or unexported fields
}

RemoteClient is a remote client that will store data in etcd.

func (*RemoteClient) Delete

func (c *RemoteClient) Delete() error

func (*RemoteClient) Get

func (c *RemoteClient) Get() (*remote.Payload, error)

func (*RemoteClient) Lock

func (c *RemoteClient) Lock(info *state.LockInfo) (string, error)

func (*RemoteClient) Put

func (c *RemoteClient) Put(data []byte) error

func (*RemoteClient) Unlock

func (c *RemoteClient) Unlock(id string) error

Jump to

Keyboard shortcuts

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