etcd

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigurationStorage

type ConfigurationStorage struct {
	Client      *clientv3.Client
	FileStorage *configStorageFile.ConfigurationStorage
	// contains filtered or unexported fields
}

ConfigurationStorage is an etcd-backed storage for server configuration.

func NewConfigurationStorage

func NewConfigurationStorage(settings model.ConfigurationStorageSettings, serverConfigPath string) (*ConfigurationStorage, error)

NewConfigurationStorage creates new etcd-backed server config storage.

func (*ConfigurationStorage) CloseUpdateChan

func (cs *ConfigurationStorage) CloseUpdateChan()

CloseUpdateChan implements ConfigurationStorage interface.

func (*ConfigurationStorage) GetUpdateChan

func (cs *ConfigurationStorage) GetUpdateChan() chan interface{}

GetUpdateChan implements ConfigurationStorage interface.

func (*ConfigurationStorage) InsertConfig

func (cs *ConfigurationStorage) InsertConfig(key string, value interface{}) error

InsertConfig inserts key-value pair to configuration storage.

func (*ConfigurationStorage) InsertKeys

func (cs *ConfigurationStorage) InsertKeys(keys *model.JWTKeys) error

InsertKeys inserts new public and private keys into the key storage.

func (*ConfigurationStorage) LoadKeys

LoadKeys loads public and private keys from the key storage.

func (*ConfigurationStorage) LoadServerSettings

func (cs *ConfigurationStorage) LoadServerSettings(settings *model.ServerSettings) error

LoadServerSettings loads server configuration from configuration storage.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL