Documentation ¶
Index ¶
- func AddPlugin(configurationPath, path string) error
- func Clear(configurationPath, name string) error
- func ListBuckets(configurationPath string) error
- func ListKeyValues(configurationPath, name string) error
- func ListKeys(configurationPath, name string) error
- func ListPlugins(configurationPath string) error
- func ListValues(configurationPath, name string) error
- func RegisterType(name string, t Type) error
- func RegisterTypes(configurationPath string) error
- func Select(configurationPath, path string) error
- func SetKeyType(configurationPath, name, value string) error
- func SetValueType(configurationPath, name, value string) error
- func TypeNames() []string
- type Bucket
- type Configuration
- type Plugin
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListBuckets ¶
ListBuckets lists the buckets in the database.
func ListKeyValues ¶
ListKeyValues lists the keys and values in the provided bucket.
func ListPlugins ¶
ListPlugins prints a list of plugins.
func ListValues ¶
ListValues lists the values in the provided bucket.
func RegisterType ¶
RegisterType adds a new type to the type-list.
func RegisterTypes ¶
RegisterTypes registers all types from all plugins.
func SetKeyType ¶
SetKeyType sets the key type for the provided bucket.
func SetValueType ¶
SetValueType sets the value type for the provided bucket.
Types ¶
type Bucket ¶
type Bucket struct { KeyType string `json:"key_type,omitempty"` ValueType string `json:"value_type,omitempty"` }
Bucket handles the bucket configuration.
type Configuration ¶
type Configuration struct { SelectedPath string `json:"selected_path"` Buckets map[string]*Bucket `json:"buckets"` Plugins []*Plugin `json:"plugins"` }
Configuration handles the badm configuration file.
func (*Configuration) KeyType ¶
func (c *Configuration) KeyType(name string) string
KeyType returns the key type for the provided bucket. The default type is returned, if no key type is specified.
func (*Configuration) ValueType ¶
func (c *Configuration) ValueType(name string) string
ValueType returns the value type for the provided bucket. The default type is returned, if no value type is specified.