Documentation
¶
Index ¶
- Variables
- func DecodeKey(encoded string) ([]byte, error)
- func EncodeKey(key []byte) string
- func GenerateKey() ([]byte, error)
- func SecureCompare(a, b string) bool
- type EnvProvider
- type Manager
- func (m *Manager) Delete(name string) error
- func (m *Manager) List() []string
- func (m *Manager) Retrieve(name string) ([]byte, map[string]string, error)
- func (m *Manager) RotateKey(newKey []byte) error
- func (m *Manager) Store(name string, value []byte, metadata map[string]string) error
- func (m *Manager) Update(name string, value []byte, metadata map[string]string) error
- type Secret
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GenerateKey ¶
GenerateKey generates a new random 32-byte key
func SecureCompare ¶
SecureCompare performs constant-time comparison of two strings
Types ¶
type EnvProvider ¶
type EnvProvider struct {
// contains filtered or unexported fields
}
EnvProvider loads secrets from environment variables
func NewEnvProvider ¶
func NewEnvProvider(prefix string) *EnvProvider
NewEnvProvider creates an environment-based secret provider
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles secure storage and retrieval of secrets
func NewManager ¶
NewManager creates a new secrets manager
Click to show internal directories.
Click to hide internal directories.