secretsmanager

package
v0.0.0-...-c05230d Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("secret not found")

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func New

func New(addr, database string, encryptionKey, signingKey []byte) (*Manager, error)

func (*Manager) Get

func (m *Manager) Get(name string) ([]byte, error)

func (*Manager) Set

func (m *Manager) Set(name string, secret []byte) error

type Secret

type Secret struct {
	Name            string `bson:"name"`
	EncryptedSecret []byte `bson:"encrypted_secret"`
}

Jump to

Keyboard shortcuts

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