encryption

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package encryption provides modules for the partition encryption handling.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler reads encryption config, creates appropriate encryption provider, handles encrypted partition open and close.

func NewHandler

func NewHandler(device *blockdevice.BlockDevice, partition *gpt.Partition, encryptionConfig config.Encryption, getSystemInformation helpers.SystemInformationGetter) (*Handler, error)

NewHandler creates new Handler.

func (*Handler) Close

func (h *Handler) Close() error

Close encrypted partition.

func (*Handler) Open

func (h *Handler) Open(ctx context.Context) (string, error)

Open encrypted partition.

type NodeParams added in v1.5.0

type NodeParams struct {
	UUID string
}

NodeParams contains node information relevant for the encryption handler.

Directories

Path Synopsis
Package helpers defines encryption handlers.
Package helpers defines encryption handlers.
Package keys contains various encryption KeyHandler implementations.
Package keys contains various encryption KeyHandler implementations.

Jump to

Keyboard shortcuts

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