craft_parts.state_manager.states module¶
Helpers and definitions for lifecycle states.
- craft_parts.state_manager.states.get_overlay_migration_state_path(state_dir, step)[source]¶
Return the path to the overlay migration state file for the given step.
- Parameters:
state_dir (
Path
)step (
Step
)
- Return type:
Path
- craft_parts.state_manager.states.get_step_state_path(part, step)[source]¶
Return the path to the state file for the given part and step.
- craft_parts.state_manager.states.load_overlay_migration_state(state_dir, step)[source]¶
Retrieve the overlay migration state for the given step.
- Parameters:
state_dir (
Path
) – The path to the directory containing migration state files.step (
Step
) – The step corresponding to the migration state to load.
- Return type:
MigrationState
|None