fix: satisfy Target confirmation contract
This commit is contained in:
@@ -114,6 +114,8 @@ func (a *Adapter) Description() target.Description {
|
||||
}
|
||||
}
|
||||
|
||||
func (a *Adapter) Confirmation(bool) string { return "" }
|
||||
|
||||
func (a *Adapter) Availability(ctx context.Context) target.Availability {
|
||||
marker, err := os.Stat(a.configuration.DebianVersionFile)
|
||||
if err != nil || !marker.Mode().IsRegular() {
|
||||
|
||||
@@ -172,6 +172,8 @@ func (a *Adapter) Description() target.Description {
|
||||
Details: "Affects new containers and builds through the owning user's Docker client configuration; it does not affect existing containers and is not Docker daemon registry access. It requires write access to the user's Docker configuration and does not contact the daemon.",
|
||||
}
|
||||
}
|
||||
func (a *Adapter) Confirmation(bool) string { return "" }
|
||||
|
||||
func (a *Adapter) Availability(context.Context) target.Availability {
|
||||
if !a.usablePath(a.configuration.ConfigFile) || !a.usablePath(a.configuration.RecoveryFile) {
|
||||
return target.Availability{Evidence: "standard Docker client configuration paths are not usable for the owning user"}
|
||||
|
||||
@@ -269,6 +269,8 @@ func (a *Adapter) Description() target.Description {
|
||||
}
|
||||
}
|
||||
|
||||
func (a *Adapter) Confirmation(bool) string { return "" }
|
||||
|
||||
func (a *Adapter) Availability(ctx context.Context) target.Availability {
|
||||
output, err := a.run(ctx, "list-schemas")
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user