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.
The file is 274 lines.
ProtectionUnitTarget(:61),ReconcileProtectionUnits(:124), andInspectProtectionUnits(:203) are referenced only fromprotection_units_test.go, which supplies an in-memorymemoryProtectionSystemddouble. There is no implementation of the interface outside tests and no caller incmd/orinternal/.Live scheduling goes through
internal/engine/schedule.goinstead, 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.goembedsX-Onebox-*ownership metadata and refuses to overwrite foreign units, whileschedule.gomatches on filename prefix alone.Removed in #51 (
f9ef6bc). Split out of #50 as item 7.