secrets

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Resolve

func Resolve(value string) (string, error)

Resolve resolves a value that may be a secret reference Supports: $ENV_VAR, keychain:name

func ResolveEnv

func ResolveEnv(env map[string]string) (map[string]string, error)

ResolveEnv resolves all values in an env map

Types

type Store

type Store struct {
	Service string // Service name for keychain entries
}

Store provides secret storage using the system keychain

func NewStore

func NewStore() *Store

NewStore creates a new secret store

func (*Store) Delete

func (s *Store) Delete(name string) error

Delete removes a secret from the system keychain

func (*Store) Get

func (s *Store) Get(name string) (string, error)

Get retrieves a secret from the system keychain

func (*Store) List

func (s *Store) List() ([]string, error)

List returns all secret names stored for this service

func (*Store) Set

func (s *Store) Set(name, value string) error

Set stores a secret in the system keychain

Jump to

Keyboard shortcuts

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