23 #ifndef STORAGE_LUKS_H 24 #define STORAGE_LUKS_H 27 #include "storage/Devices/Encryption.h" 42 static Luks* create(
Devicegraph* devicegraph,
const std::string& dm_name);
93 const Impl& get_impl()
const;
95 virtual Luks* clone()
const override;
Luks * to_luks(Device *device)
Converts pointer to Device to pointer to Luks.
const std::string & get_uuid() const
Get the LUKS UUID.
const std::string & get_label() const
Get the LUKS label.
An encryption layer on a blk device.
Definition: Encryption.h:45
The master container of the libstorage.
Definition: Devicegraph.h:153
void set_label(const std::string &label)
Set the LUKS label.
An abstract base class of storage devices, and a vertex in the Devicegraph.
Definition: Device.h:75
static std::vector< Luks * > get_all(Devicegraph *devicegraph)
Get all Lukses.
void set_format_options(const std::string &format_options)
Set extra options for luks format call.
An luks encryption layer on a block device.
Definition: Luks.h:38
bool is_luks(const Device *device)
Checks whether device points to a Luks.
const std::string & get_format_options() const
Get extra options for luks format call.
The storage namespace.
Definition: Actiongraph.h:37