Documentation ¶
Index ¶
- Constants
- type EtcdKV
- func (k *EtcdKV) AddToIndex(prefix, name, id string) error
- func (k *EtcdKV) CreateWithIndex(prefix, id, name string, val string) (*client.Node, error)
- func (k *EtcdKV) Delete(prefix, id string, recursive bool) error
- func (k *EtcdKV) DeleteFromIndex(prefix, name string) error
- func (k *EtcdKV) Get(prefix, ref string) (*client.Node, error)
- func (k *EtcdKV) List(prefix string) ([]*client.Node, error)
- func (k *EtcdKV) Set(prefix, id, val string) (*client.Node, error)
- type KV
- type NameIndex
Constants ¶
View Source
const (
NameIndexAPIPrefix = "nameidx"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EtcdKV ¶
type EtcdKV struct {
// contains filtered or unexported fields
}
func (*EtcdKV) AddToIndex ¶
func (*EtcdKV) CreateWithIndex ¶
func (*EtcdKV) DeleteFromIndex ¶
type KV ¶
type KV interface { List(prefix string) ([]*client.Node, error) CreateWithIndex(prefix, id, name string, val string) (*client.Node, error) DeleteFromIndex(prefix, name string) error AddToIndex(prefix, name, id string) error Set(prefix, id, val string) (*client.Node, error) Get(prefix, ref string) (*client.Node, error) Delete(prefix, id string, recursive bool) error }
Click to show internal directories.
Click to hide internal directories.