Documentation ¶
Index ¶
- func CreateDatabase(nameOfDatabase string) error
- func DeleteDatabase(nameOfDatabase string) error
- func DeleteKeyFromDatabase(nameOfDatabase string, key string) error
- func GetKeyFromDatabase(nameOfDatabase string, key string) (interface{}, error)
- func GetLocationOfCluster() string
- func GetNameOfCluster() string
- func LoadCluster() error
- func ReloadDatabase(nameOfDatabase string) error
- func RenameDatabase(nameOfDatabase string, newNameOfDatabase string) error
- func RenameKeyInDatabase(nameOfDatabase string, keyOld string, keyNew string) error
- func SetDatabase(nameOfDatabase string, database Database) error
- func SetKeyInDatabase(nameOfDatabase string, key string, value interface{}) error
- func SetLocationOfCluster(location string) error
- func SetNameOfCluster(name string) error
- type Cluster
- type Database
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDatabase ¶
CreateDatabase creates a database or returns nil if it already exists
func DeleteDatabase ¶
DeleteDatabase deletes a database
func DeleteKeyFromDatabase ¶
DeleteKeyFromDatabase deletes a key in a database and write it to file
func GetKeyFromDatabase ¶
GetKeyFromDatabase returns a key from a database if both exist
func GetLocationOfCluster ¶
func GetLocationOfCluster() string
GetLocationOfCluster returns locationOfCluster
func LoadCluster ¶
func LoadCluster() error
LoadCluster loads all databases from the current cluster
func ReloadDatabase ¶
ReloadDatabase reloads a database from file
func RenameDatabase ¶
RenameDatabase renames a database
func RenameKeyInDatabase ¶
RenameKeyInDatabase renames a key in a database and write it to file
func SetDatabase ¶
SetDatabase sets a database and writes it to file
func SetKeyInDatabase ¶
SetKeyInDatabase sets a key from in a database and write it to file
func SetLocationOfCluster ¶
SetLocationOfCluster sets locationOfCluster if p is a valid folder
func SetNameOfCluster ¶
SetNameOfCluster sets nameOfCluster if s is a valid cluster name