secrets

package
v1.7.1-0...-5e59e24 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Secret key for the application
	APPVAR_SECRET_KEY = "APPVAR_SECRET_KEY" // string

	// Secret key fallbacks for the application
	APPVAR_SECRET_KEY_FALLBACKS = "APPVAR_SECRET_KEY_FALLBACKS" // []string

	// Signer backend for the application
	APPVAR_SIGNER_BACKEND = "APPVAR_SIGNER_BACKEND" // internals/signing.Signer
)

Variables

This section is empty.

Functions

func SIGNER_BACKEND

func SIGNER_BACKEND() signing.Signer

Types

type SecretKey

type SecretKey []byte

func SECRET_KEY

func SECRET_KEY() SecretKey

func SECRET_KEY_FALLBACKS

func SECRET_KEY_FALLBACKS() []SecretKey

func (SecretKey) Bytes

func (s SecretKey) Bytes() []byte

func (SecretKey) IsZero

func (s SecretKey) IsZero() bool

func (SecretKey) Sign

func (s SecretKey) Sign(ctx context.Context, data []byte) (string, error)

func (SecretKey) SignObject

func (s SecretKey) SignObject(ctx context.Context, obj interface{}) (string, error)

func (SecretKey) String

func (s SecretKey) String() string

func (SecretKey) Unsign

func (s SecretKey) Unsign(ctx context.Context, signed string) ([]byte, error)

func (SecretKey) UnsignObject

func (s SecretKey) UnsignObject(ctx context.Context, signed string, obj interface{}) error

type Settings

type Settings interface {
	Get(key string) (any, bool)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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