diskencryption

package
v2.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package diskencryption handles interaction with a node's state disk.

This package is not thread safe, since libcryptsetup is not thread safe. There should only be one instance using this package per process.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cryptsetup

type Cryptsetup struct {
	// contains filtered or unexported fields
}

Cryptsetup manages the encrypted state mapper device.

func New

func New() *Cryptsetup

New creates a new Cryptsetup.

func (*Cryptsetup) Close

func (c *Cryptsetup) Close() error

Close closes the cryptdevice.

func (*Cryptsetup) Open

func (c *Cryptsetup) Open() error

Open opens the cryptdevice.

func (*Cryptsetup) UUID

func (c *Cryptsetup) UUID() (string, error)

UUID gets the device's UUID. Only works after calling Open().

func (*Cryptsetup) UpdatePassphrase

func (c *Cryptsetup) UpdatePassphrase(passphrase string) error

UpdatePassphrase switches the initial random passphrase of the mapped crypt device to a permanent passphrase. Only works after calling Open().

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL