mirror of
https://github.com/siderolabs/talos.git
synced 2025-08-06 14:47:05 +02:00
22 lines
853 B
Go
22 lines
853 B
Go
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
// Package helpers defines encryption handlers.
|
|
package helpers
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/siderolabs/talos/pkg/machinery/resources/hardware"
|
|
)
|
|
|
|
// SystemInformationGetter defines the closure which can be used in key handlers to get the node UUID.
|
|
type SystemInformationGetter func(context.Context) (*hardware.SystemInformation, error)
|
|
|
|
// TPMLockFunc is a function that ensures that the TPM is locked and PCR state is as expected.
|
|
type TPMLockFunc func(context.Context, func() error) error
|
|
|
|
// SaltGetter defines the closure which can be used in key handlers to get the encryption salt.
|
|
type SaltGetter func(context.Context) ([]byte, error)
|