refactor(grpc-proxy): use Metadata.Err() method to get upstream error for a broadcasted request

This commit is contained in:
Pasha Sviderski
2026-10-28 20:24:16 +10:00
parent 7e8736fa99
commit bd695f65a3
9 changed files with 28 additions and 28 deletions
-9
View File
@@ -1,7 +1,6 @@
package api
import (
"errors"
"slices"
"github.com/distribution/reference"
@@ -25,14 +24,6 @@ type MachineImages struct {
ContainerdStore bool
}
// Error returns a non-nil error if listing images on this machine failed.
func (mi MachineImages) Error() error {
if mi.Metadata != nil && mi.Metadata.Error != "" {
return errors.New(mi.Metadata.Error)
}
return nil
}
// ImageFilter defines criteria to filter images in ListImages.
type ImageFilter struct {
// Machines filters images to those present on the specified machines (names or IDs).