Android-cuttlefish cvd tool
Public Member Functions | Private Member Functions | Private Attributes | List of all members
cuttlefish::DiskBuilder Class Reference

#include <disk_builder.h>

Public Member Functions

DiskBuilder & EntireDisk (std::string path) &
 
DiskBuilder EntireDisk (std::string path) &&
 
DiskBuilder & Partitions (std::vector< ImagePartition > partitions) &
 
DiskBuilder Partitions (std::vector< ImagePartition > partitions) &&
 
DiskBuilder & HeaderPath (std::string header_path) &
 
DiskBuilder HeaderPath (std::string header_path) &&
 
DiskBuilder & FooterPath (std::string footer_path) &
 
DiskBuilder FooterPath (std::string footer_path) &&
 
DiskBuilder & CrosvmPath (std::string crosvm_path) &
 
DiskBuilder CrosvmPath (std::string crosvm_path) &&
 
DiskBuilder & VmmSupportsCompositeDisks (bool vmm_supports_composite_disks) &
 
DiskBuilder VmmSupportsCompositeDisks (bool vmm_supports_composite_disks) &&
 
DiskBuilder & ConfigPath (std::string config_path) &
 
DiskBuilder ConfigPath (std::string config_path) &&
 
DiskBuilder & CompositeDiskPath (std::string composite_disk_path) &
 
DiskBuilder CompositeDiskPath (std::string composite_disk_path) &&
 
DiskBuilder & OverlayPath (std::string overlay_path) &
 
DiskBuilder OverlayPath (std::string overlay_path) &&
 
DiskBuilder & ResumeIfPossible (bool resume_if_possible) &
 
DiskBuilder ResumeIfPossible (bool resume_if_possible) &&
 
DiskBuilder & ReadOnly (bool read_only) &
 
DiskBuilder ReadOnly (bool read_only) &&
 
Result< bool > WillRebuildCompositeDisk ()
 
Result< bool > BuildCompositeDiskIfNecessary ()
 
Result< bool > BuildOverlayIfNecessary ()
 

Private Member Functions

Result< std::string > TextConfig ()
 

Private Attributes

std::vector< ImagePartition > partitions_
 
std::string entire_disk_
 
std::string header_path_
 
std::string footer_path_
 
std::optional< bool > vmm_supports_composite_disks_
 
std::string crosvm_path_
 
std::string config_path_
 
std::string composite_disk_path_
 
std::string overlay_path_
 
bool resume_if_possible_ = true
 
bool read_only_ = true
 

Member Function Documentation

◆ BuildCompositeDiskIfNecessary()

Result< bool > cuttlefish::DiskBuilder::BuildCompositeDiskIfNecessary ( )

Returns true if the file was actually rebuilt.

◆ BuildOverlayIfNecessary()

Result< bool > cuttlefish::DiskBuilder::BuildOverlayIfNecessary ( )

Returns true if the file was actually rebuilt.

◆ CompositeDiskPath() [1/2]

DiskBuilder & cuttlefish::DiskBuilder::CompositeDiskPath ( std::string  composite_disk_path) &

◆ CompositeDiskPath() [2/2]

DiskBuilder cuttlefish::DiskBuilder::CompositeDiskPath ( std::string  composite_disk_path) &&

◆ ConfigPath() [1/2]

DiskBuilder & cuttlefish::DiskBuilder::ConfigPath ( std::string  config_path) &

◆ ConfigPath() [2/2]

DiskBuilder cuttlefish::DiskBuilder::ConfigPath ( std::string  config_path) &&

◆ CrosvmPath() [1/2]

DiskBuilder & cuttlefish::DiskBuilder::CrosvmPath ( std::string  crosvm_path) &

◆ CrosvmPath() [2/2]

DiskBuilder cuttlefish::DiskBuilder::CrosvmPath ( std::string  crosvm_path) &&

◆ EntireDisk() [1/2]

DiskBuilder & cuttlefish::DiskBuilder::EntireDisk ( std::string  path) &

◆ EntireDisk() [2/2]

DiskBuilder cuttlefish::DiskBuilder::EntireDisk ( std::string  path) &&

◆ FooterPath() [1/2]

DiskBuilder & cuttlefish::DiskBuilder::FooterPath ( std::string  footer_path) &

◆ FooterPath() [2/2]

DiskBuilder cuttlefish::DiskBuilder::FooterPath ( std::string  footer_path) &&

◆ HeaderPath() [1/2]

DiskBuilder & cuttlefish::DiskBuilder::HeaderPath ( std::string  header_path) &

◆ HeaderPath() [2/2]

DiskBuilder cuttlefish::DiskBuilder::HeaderPath ( std::string  header_path) &&

◆ OverlayPath() [1/2]

DiskBuilder & cuttlefish::DiskBuilder::OverlayPath ( std::string  overlay_path) &

◆ OverlayPath() [2/2]

DiskBuilder cuttlefish::DiskBuilder::OverlayPath ( std::string  overlay_path) &&

◆ Partitions() [1/2]

DiskBuilder & cuttlefish::DiskBuilder::Partitions ( std::vector< ImagePartition >  partitions) &

◆ Partitions() [2/2]

DiskBuilder cuttlefish::DiskBuilder::Partitions ( std::vector< ImagePartition >  partitions) &&

◆ ReadOnly() [1/2]

DiskBuilder & cuttlefish::DiskBuilder::ReadOnly ( bool  read_only) &

◆ ReadOnly() [2/2]

DiskBuilder cuttlefish::DiskBuilder::ReadOnly ( bool  read_only) &&

◆ ResumeIfPossible() [1/2]

DiskBuilder & cuttlefish::DiskBuilder::ResumeIfPossible ( bool  resume_if_possible) &

◆ ResumeIfPossible() [2/2]

DiskBuilder cuttlefish::DiskBuilder::ResumeIfPossible ( bool  resume_if_possible) &&

◆ TextConfig()

Result< std::string > cuttlefish::DiskBuilder::TextConfig ( )
private

◆ VmmSupportsCompositeDisks() [1/2]

DiskBuilder & cuttlefish::DiskBuilder::VmmSupportsCompositeDisks ( bool  vmm_supports_composite_disks) &

◆ VmmSupportsCompositeDisks() [2/2]

DiskBuilder cuttlefish::DiskBuilder::VmmSupportsCompositeDisks ( bool  vmm_supports_composite_disks) &&

◆ WillRebuildCompositeDisk()

Result< bool > cuttlefish::DiskBuilder::WillRebuildCompositeDisk ( )

Member Data Documentation

◆ composite_disk_path_

std::string cuttlefish::DiskBuilder::composite_disk_path_
private

◆ config_path_

std::string cuttlefish::DiskBuilder::config_path_
private

◆ crosvm_path_

std::string cuttlefish::DiskBuilder::crosvm_path_
private

◆ entire_disk_

std::string cuttlefish::DiskBuilder::entire_disk_
private

◆ footer_path_

std::string cuttlefish::DiskBuilder::footer_path_
private

◆ header_path_

std::string cuttlefish::DiskBuilder::header_path_
private

◆ overlay_path_

std::string cuttlefish::DiskBuilder::overlay_path_
private

◆ partitions_

std::vector<ImagePartition> cuttlefish::DiskBuilder::partitions_
private

◆ read_only_

bool cuttlefish::DiskBuilder::read_only_ = true
private

◆ resume_if_possible_

bool cuttlefish::DiskBuilder::resume_if_possible_ = true
private

◆ vmm_supports_composite_disks_

std::optional<bool> cuttlefish::DiskBuilder::vmm_supports_composite_disks_
private

The documentation for this class was generated from the following files: