Documentation
¶
Index ¶
Constants ¶
View Source
const ( // KeyClusterUUID is the key for the cluster UUID in the configuration database. KeyClusterUUID = "cluster_uuid" // KeySecretKey is the key for the secret key in the configuration database. KeySecretKey = "secret_key" )
Variables ¶
View Source
var ErrConfigNotFound = errors.New("no config was found for this key")
ErrConfigNotFound is returned if no config with this key was found.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config provides access to the persistent configuration stored in the database. It uses an RWLocker to ensure thread-safe access to configuration keys.
func (*Config) GetClusterUUID ¶
GetClusterUUID returns the cluster UUID from the configuration.
func (*Config) GetSecretKey ¶ added in v0.7.0
GetSecretKey returns the secret key from the configuration.
func (*Config) SetClusterUUID ¶
SetClusterUUID stores the cluster UUID in the configuration.
Click to show internal directories.
Click to hide internal directories.