forked from TrueCloudLab/distribution
Avoid returning nil, nil when fetching a manifest by tag by introducing a new
error ErrManifestNotModified which can be checked by clients. Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
This commit is contained in:
parent
ece8e132bf
commit
924913b4c3
4 changed files with 11 additions and 9 deletions
|
@ -1,15 +1,20 @@
|
|||
package distribution
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/docker/distribution/digest"
|
||||
)
|
||||
|
||||
// ErrManifestNotModified is returned when a conditional manifest GetByTag
|
||||
// returns nil due to the client indicating it has the latest version
|
||||
var ErrManifestNotModified = errors.New("manifest not modified")
|
||||
|
||||
// ErrUnsupported is returned when an unimplemented or unsupported action is
|
||||
// performed
|
||||
var ErrUnsupported = fmt.Errorf("operation unsupported")
|
||||
var ErrUnsupported = errors.New("operation unsupported")
|
||||
|
||||
// ErrRepositoryUnknown is returned if the named repository is not known by
|
||||
// the registry.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue