feat: control systemd Docker daemon target
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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}}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user