keymanager

package
v0.0.0-...-6a764d1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKey

func GetKey() []byte

func LoadKey

func LoadKey(loader KeyLoader) ([]byte, error)

Types

type EnvKeyLoader

type EnvKeyLoader struct {
	EnvVar string
}

func (*EnvKeyLoader) LoadKey

func (l *EnvKeyLoader) LoadKey() ([]byte, error)

type FileKeyLoader

type FileKeyLoader struct {
	Path string
}

func (*FileKeyLoader) LoadKey

func (l *FileKeyLoader) LoadKey() ([]byte, error)

type KMSKeyLoader

type KMSKeyLoader struct {
	KeyID string
}

func (*KMSKeyLoader) LoadKey

func (l *KMSKeyLoader) LoadKey() ([]byte, error)

type KeyLoader

type KeyLoader interface {
	LoadKey() ([]byte, error)
}

Jump to

Keyboard shortcuts

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