Skip to content

Migrate Automation Logic to Core #14

@baync180705

Description

@baync180705

Move the detection and backup logic for automation to internal/core/automation.

  • Create directory internal/core/automation.
  • Move automation/detect.gointernal/core/automation/scanner.go.
    -- Update to use domain.AutomationData.
  • Move automation/backup.gointernal/core/automation/backup.go.
    -- Keep the BackupAutomation(data, *tar.Writer) signature for now. It works well as a "Strategy".
  • Refactor: Extract GenerateRestorationCommands into internal/core/automation/restore.go.
    --This keeps "Backup logic" separate from "Restore logic".

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    SYSTEM_READY >> ...MS