Documentation ¶
Overview ¶
Package secure is a wrapper package around memguard for managing data which must not be swapped to disk or easily read via a memory scanner.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSecretNotFound = errors.New("Could not find secret to remove it")
ErrSecretNotFound occurs when a secret could not be found
Functions ¶
This section is empty.
Types ¶
type Guard ¶
type Guard struct {
// contains filtered or unexported fields
}
Guard is a controller of guarded memory which contains many different secrets. Only one guard can exist at a time.
func NewGuard ¶
func NewGuard() *Guard
NewGuard returns a Guard instance or errors if a guard already exists.
func (*Guard) Destroy ¶
func (g *Guard) Destroy()
Destroy removes all secrets and cleans up everything up appropriately.
Click to show internal directories.
Click to hide internal directories.