Documentation ¶
Index ¶
- type ConfigurationStorage
- func (cs *ConfigurationStorage) CloseUpdateChan()
- func (cs *ConfigurationStorage) GetUpdateChan() chan interface{}
- func (cs *ConfigurationStorage) InsertConfig(key string, value interface{}) error
- func (cs *ConfigurationStorage) InsertKeys(keys *model.JWTKeys) error
- func (cs *ConfigurationStorage) LoadKeys(alg ijwt.TokenSignatureAlgorithm) (*model.JWTKeys, error)
- func (cs *ConfigurationStorage) LoadServerSettings(settings *model.ServerSettings) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigurationStorage ¶
type ConfigurationStorage struct { Client *s3.S3 Bucket string ObjectName string UpdateChan chan interface{} // contains filtered or unexported fields }
ConfigurationStorage is a server configuration storage in S3.
func NewConfigurationStorage ¶
func NewConfigurationStorage(settings model.ConfigurationStorageSettings) (*ConfigurationStorage, error)
NewConfigurationStorage creates new server config storage in S3.
func (*ConfigurationStorage) CloseUpdateChan ¶
func (cs *ConfigurationStorage) CloseUpdateChan()
CloseUpdateChan closes update channel.
func (*ConfigurationStorage) GetUpdateChan ¶
func (cs *ConfigurationStorage) GetUpdateChan() chan interface{}
GetUpdateChan returns update channel.
func (*ConfigurationStorage) InsertConfig ¶
func (cs *ConfigurationStorage) InsertConfig(key string, value interface{}) error
InsertConfig puts new configuration into the storage.
func (*ConfigurationStorage) InsertKeys ¶
func (cs *ConfigurationStorage) InsertKeys(keys *model.JWTKeys) error
InsertKeys inserts new public and private keys to the S3 bucket.
func (*ConfigurationStorage) LoadKeys ¶
func (cs *ConfigurationStorage) LoadKeys(alg ijwt.TokenSignatureAlgorithm) (*model.JWTKeys, error)
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 S3.
Click to show internal directories.
Click to hide internal directories.