package etcd
import "github.com/sagikazarmark/crypt/backend/etcd"
Index ¶
- Variables
- type Client
- func New(machines []string) (*Client, error)
- func (c *Client) Get(key string) ([]byte, error)
- func (c *Client) GetWithContext(ctx context.Context, key string) ([]byte, error)
- func (c *Client) List(key string) (backend.KVPairs, error)
- func (c *Client) ListWithContext(ctx context.Context, key string) (backend.KVPairs, error)
- func (c *Client) Set(key string, value []byte) error
- func (c *Client) SetWithContext(ctx context.Context, key string, value []byte) error
- func (c *Client) Watch(key string, stop chan bool) <-chan *backend.Response
- func (c *Client) WatchWithContext(ctx context.Context, key string, stop chan bool) <-chan *backend.Response
- type ClientV3
Variables ¶
var CliTimeoutKey = "ETCDV3_CLI_TIMEOUT_SECOND"
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func (*Client) Get ¶
func (*Client) GetWithContext ¶
func (*Client) List ¶
func (*Client) ListWithContext ¶
func (*Client) Set ¶
func (*Client) SetWithContext ¶
func (*Client) Watch ¶
func (*Client) WatchWithContext ¶
func (c *Client) WatchWithContext(ctx context.Context, key string, stop chan bool) <-chan *backend.Response
type ClientV3 ¶
type ClientV3 struct {
// contains filtered or unexported fields
}
func NewV3 ¶
func (*ClientV3) Get ¶
func (*ClientV3) List ¶
func (*ClientV3) Set ¶
func (*ClientV3) Watch ¶
Source Files ¶
- Version
- v0.14.0
- Published
- Sep 8, 2023
- Platform
- darwin/amd64
- Imports
- 14 packages
- Last checked
- 31 minutes ago –
Tools for package owners.