s3

package
v1.1.12 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: MIT Imports: 10 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     *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

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.

Jump to

Keyboard shortcuts

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