quickstart.storage#

Storage and volume management for quickstart.

Module Contents#

Classes#

StorageManager

Manages quickstart storage directory and permissions.

API#

class quickstart.storage.StorageManager(base_path: pathlib.Path)#

Manages quickstart storage directory and permissions.

The storage layout is:

base_path/ └── data/ # Shared data directory (mounted in container)

Initialization

Initialize storage manager.

Parameters:

base_path – Base storage directory path.

cleanup() None#

Remove all storage data.

property data_path: pathlib.Path#

Get the data directory path.

exists() bool#

Check if storage directory exists.

get_size() int#

Get total storage size in bytes.

Returns:

Total size of all files in the data directory.

get_size_human() str#

Get human-readable storage size.

Returns:

Size formatted as a human-readable string (e.g., “1.5 GB”).

initialize() None#

Create all storage directories with proper permissions.

Creates the directory structure and sets permissions to allow container processes (typically running as uid 1000) to write.