secrets

package
v0.0.0-...-bc5b573 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirVault

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

func NewDirVault

func NewDirVault(dir string) (*DirVault, error)

func (*DirVault) Get

func (src *DirVault) Get(key string) (Secret, error)

func (*DirVault) Set

func (src *DirVault) Set(key string, val Secret) error

This is here so a private key for JWT can be generated and still exists after a service restart.

type Secret

type Secret string

func (Secret) Bytes

func (s Secret) Bytes() []byte

func (Secret) LogValue

func (s Secret) LogValue() slog.Value

func (Secret) String

func (s Secret) String() string

type SecretVault

type SecretVault interface {
	Get(key string) (Secret, error)
	Set(key string, val Secret) error
}

Jump to

Keyboard shortcuts

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