Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions cli/config/memorystore/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
package memorystore

import (
"errors"
"fmt"
"maps"
"os"
Expand All @@ -13,12 +12,17 @@ import (
"github.com/docker/cli/cli/config/types"
)

var errValueNotFound = errors.New("value not found")
// notFoundErr is the error returned when a plugin could not be found.
type notFoundErr string

func IsErrValueNotFound(err error) bool {
return errors.Is(err, errValueNotFound)
func (notFoundErr) NotFound() {}

func (e notFoundErr) Error() string {
return string(e)
}

var errValueNotFound notFoundErr = "value not found"

type Config struct {
lock sync.RWMutex
memoryCredentials map[string]types.AuthConfig
Expand Down
Loading