s3

package
v0.1.1-0...-f9b01a3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyStorage

type KeyStorage struct {
	Client         *s3.S3
	Bucket         string
	PublicKeyPath  string
	PrivateKeyPath string
}

KeyStorage is a wrapper over public and private key files.

func NewKeyStorage

func NewKeyStorage(settings model.KeyStorageSettings) (*KeyStorage, error)

NewKeyStorage creates and returns new S3-backed key files storage.

func (*KeyStorage) InsertKeys

func (ks *KeyStorage) InsertKeys(keys *model.JWTKeys) error

InsertKeys inserts private and public keys into S3 key storage.

func (*KeyStorage) LoadKeys

func (ks *KeyStorage) LoadKeys(alg ijwt.TokenSignatureAlgorithm) (*model.JWTKeys, error)

LoadKeys loads keys from the key storage.

Jump to

Keyboard shortcuts

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