mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-09-25 19:11:18 -04:00
csi: let constructor take care of setting up cryptsetup (#2312)
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
d3c940a6a0
commit
327315d5de
4 changed files with 15 additions and 10 deletions
|
@ -40,9 +40,9 @@ type CryptMapper struct {
|
|||
|
||||
// New initializes a new CryptMapper with the given kms client and key-encryption-key ID.
|
||||
// kms is used to fetch data encryption keys for the dm-crypt volumes.
|
||||
func New(kms keyCreator, mapper deviceMapper) *CryptMapper {
|
||||
func New(kms keyCreator) *CryptMapper {
|
||||
return &CryptMapper{
|
||||
mapper: mapper,
|
||||
mapper: cryptsetup.New(),
|
||||
kms: kms,
|
||||
getDiskFormat: getDiskFormat,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue