feat: control systemd Docker daemon target

This commit is contained in:
proxyctl coordinator
2026-07-17 03:24:52 +08:00
parent 3003450dce
commit be3bbbbe04
11 changed files with 919 additions and 25 deletions
+3
View File
@@ -44,5 +44,8 @@ type Target interface {
Description() Description
Availability(context.Context) Availability
Inspect(context.Context, *profile.Profile) Inspection
// Confirmation returns a warning that must be accepted before SetDesired.
// An empty string means the operation needs no confirmation.
Confirmation(enabled bool) string
SetDesired(context.Context, bool, *profile.Profile) OperationResult
}
+1
View File
@@ -20,6 +20,7 @@ func (seamTarget) Availability(context.Context) target.Availability {
func (seamTarget) Inspect(context.Context, *profile.Profile) target.Inspection {
return target.Inspection{State: target.Disabled, Evidence: "absent"}
}
func (seamTarget) Confirmation(bool) string { return "" }
func (seamTarget) SetDesired(context.Context, bool, *profile.Profile) target.OperationResult {
return target.OperationResult{Inspection: target.Inspection{State: target.Enabled}}
}