Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ProtectionLevel ¶
type ProtectionLevel int
ProtectionLevel indicates how well the vault can protect memory
const ( ProtectionNone ProtectionLevel = iota // No memory protection available ProtectionPartial // Some protection measures applied ProtectionFull // Full memory protection (locked memory) )
func Lock ¶
func Lock() (ProtectionLevel, error)
Lock attempts to prevent sensitive data from being swapped to disk Returns the protection level achieved and any error encountered
Click to show internal directories.
Click to hide internal directories.