We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 645c23b + a3ffb8a commit 5e42f82Copy full SHA for 5e42f82
cli/config/memorystore/store.go
@@ -3,7 +3,6 @@
3
package memorystore
4
5
import (
6
- "errors"
7
"fmt"
8
"maps"
9
"os"
@@ -13,12 +12,17 @@ import (
13
12
"github.com/docker/cli/cli/config/types"
14
)
15
16
-var errValueNotFound = errors.New("value not found")
+// notFoundErr is the error returned when a plugin could not be found.
+type notFoundErr string
17
18
-func IsErrValueNotFound(err error) bool {
19
- return errors.Is(err, errValueNotFound)
+func (notFoundErr) NotFound() {}
+
20
+func (e notFoundErr) Error() string {
21
+ return string(e)
22
}
23
24
+var errValueNotFound notFoundErr = "value not found"
25
26
type Config struct {
27
lock sync.RWMutex
28
memoryCredentials map[string]types.AuthConfig
0 commit comments