Skip to content

internal/engine/protection_units.go has no production implementation #59

Description

@vishr

The file is 274 lines. ProtectionUnitTarget (:61), ReconcileProtectionUnits (:124), and InspectProtectionUnits (:203) are referenced only from protection_units_test.go, which supplies an in-memory memoryProtectionSystemd double. There is no implementation of the interface outside tests and no caller in cmd/ or internal/.

Live scheduling goes through internal/engine/schedule.go instead, which writes units directly and has its own ownership convention.

Worth resolving one way or the other, since the two files encode different rules for the same host resource: protection_units.go embeds X-Onebox-* ownership metadata and refuses to overwrite foreign units, while schedule.go matches on filename prefix alone.


Removed in #51 (f9ef6bc). Split out of #50 as item 7.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions