Documentation ¶
Index ¶
- type Config
- type DB
- func (db *DB) Close() error
- func (db *DB) Delete(namespace, key []byte) error
- func (db *DB) Get(namespace, key []byte) ([]byte, error)
- func (db *DB) ListKeys(namespace []byte, cb dbp.ListCallback) error
- func (db *DB) Set(namespace, key, metadata []byte) error
- func (db *DB) Update(namespace, key []byte, cb dbp.UpdateCallback) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Endpoints []string `yaml:"endpoints" json:"endpoints"` // required
}
Config is used to configure/create an ETCD-cluster client, and use it as the database backend for the metastor client.
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB defines a metastor database, in the form of a ETCD (cluster) client, as to store and load processed metadata to/from an ETCD cluster.
Click to show internal directories.
Click to hide internal directories.