mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-06-10 07:32:50 -04:00
disk-mapper: systemd cryptsetup unit for state disk
This commit is contained in:
parent
0892525915
commit
da41cb6962
6 changed files with 311 additions and 87 deletions
|
@ -18,6 +18,7 @@ type DeviceMapper interface {
|
|||
DiskUUID() string
|
||||
FormatDisk(passphrase string) error
|
||||
MapDisk(target string, passphrase string) error
|
||||
UnmapDisk(target string) error
|
||||
}
|
||||
|
||||
// KeyWaiter is an interface to request and wait for disk decryption keys.
|
||||
|
@ -26,6 +27,11 @@ type KeyWaiter interface {
|
|||
ResetKey()
|
||||
}
|
||||
|
||||
// ConfigurationGenerator is an interface for generating systemd-cryptsetup@.service unit files.
|
||||
type ConfigurationGenerator interface {
|
||||
Generate(volumeName, encryptedDevice, keyFile, options string) error
|
||||
}
|
||||
|
||||
// DiskMounter uses the syscall package to mount disks.
|
||||
type DiskMounter struct{}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue