mirror of
https://github.com/element-hq/ess-helm.git
synced 2026-12-04 07:42:28 -08:00
27 lines
643 B
Python
27 lines
643 B
Python
# Copyright 2026 Element Creations Ltd
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
"""
|
|
Data models for the migration script using Python dataclasses.
|
|
"""
|
|
|
|
from dataclasses import dataclass, field
|
|
from typing import Any
|
|
|
|
|
|
@dataclass
|
|
class MigrationInput:
|
|
"""Represents all input data for the migration process."""
|
|
|
|
name: str = field(default="") # Name of the configuration
|
|
config_path: str = field(default="") # Path to the configuration file
|
|
config: dict[str, Any] = field(default_factory=dict) # Source configuration data
|
|
|
|
|
|
class MigrationError(Exception):
|
|
"""Base exception for migration-related errors."""
|
|
|
|
pass
|