class Builder

Defined at line 34 of file ../../src/storage/volume_image/fvm/fvm_descriptor.h

This class provides the mechanism for generating a valid FVM descriptor, so that constraints

can be verified.

Public Methods

void Builder ()

Defined at line 36 of file ../../src/storage/volume_image/fvm/fvm_descriptor.h

void Builder (const Builder & )

Defined at line 38 of file ../../src/storage/volume_image/fvm/fvm_descriptor.h

void Builder (Builder && )

Defined at line 39 of file ../../src/storage/volume_image/fvm/fvm_descriptor.h

Builder & operator= (const Builder & )

Defined at line 40 of file ../../src/storage/volume_image/fvm/fvm_descriptor.h

Builder & operator= (Builder && )

Defined at line 41 of file ../../src/storage/volume_image/fvm/fvm_descriptor.h

void ~Builder ()

Defined at line 42 of file ../../src/storage/volume_image/fvm/fvm_descriptor.h

void Builder (FvmDescriptor descriptor)

Defined at line 58 of file ../../src/storage/volume_image/fvm/fvm_descriptor.cc

Builder & AddPartition (Partition partition)

Adds partition to the image to be constructed.

Defined at line 67 of file ../../src/storage/volume_image/fvm/fvm_descriptor.cc

Builder & SetOptions (const FvmOptions & options)

Sets the options for the image to be constructed.

Defined at line 72 of file ../../src/storage/volume_image/fvm/fvm_descriptor.cc

fpromise::result<FvmDescriptor, std::string> Build ()

Verifies that constraints are met and returns an FvmDescriptor containing the data.

This method will always consume all added partitions. On success the ownership is taken by

the returned descriptor, and on error the partitions are destroyed.

Defined at line 77 of file ../../src/storage/volume_image/fvm/fvm_descriptor.cc