secrets
import "github.com/Bugs5382/go-saga-orchestration/secrets"
Package secrets resolves a secret_ref string (e.g. "vault://path/to/key") into a value at runtime. It ships an in-memory map-backed stub; real Vault/SealedSecrets integration is a platform-services concern.
type Memoryโ
Memory is a test-time / dev-time resolver. Production wires a real impl.
type Memory struct {
M map[string]string
}
func NewMemoryโ
func NewMemory(m map[string]string) *Memory
NewMemory returns a Memory resolver backed by the given ref-to-value map.
func (*Memory) Getโ
func (r *Memory) Get(ref string) (string, error)
Get returns the value for ref, or an error if the ref is not in the map.
type Resolverโ
Resolver looks up a secret by reference.
type Resolver interface {
Get(ref string) (string, error)
}
Generated by gomarkdoc