diskencryption

package
v2.16.3 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskEncryption added in v2.10.0

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

DiskEncryption manages the encrypted state mapper device.

func New

func New() *DiskEncryption

New creates a new Cryptsetup.

func (*DiskEncryption) Open added in v2.10.0

func (c *DiskEncryption) Open() (free func(), err error)

Open opens the cryptdevice.

func (*DiskEncryption) UUID added in v2.10.0

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

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

func (*DiskEncryption) UpdatePassphrase added in v2.10.0

func (c *DiskEncryption) 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