Registry / utility / hashicorp-go-secure-stdlib-mlock

hashicorp-go-secure-stdlib-mlock

JSON →
library0.1.3gogounverified

Provides memory locking utilities to prevent sensitive data from being swapped to disk.

go get github.com/hashicorp/go-secure-stdlib/mlock
INSTALL
IMPORT
SIG · HASHICORP-GO-SECUR
H
hashicorp-go-secure-stdlib-mlock
utilitygov0.1.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

mlock
github.com/hashicorp/go-secure-stdlib/mlock

Lock all current and future memory pages to prevent swapping.

package main import ( "fmt" "github.com/hashicorp/go-secure-stdlib/mlock" ) func main() { err := mlock.LockMemory() fmt.Println(err) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.3latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
hashicorp-go-secure-stdlib-mlock — go get hashicorp-go-secure-stdlib-mlock · libregistry