forked from oras-project/oras
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow sequential pulling with break in the middle (oras-project#83)
- allow pulling in sequence - allow base handlers on push and pull
- Loading branch information
Showing
6 changed files
with
163 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,24 @@ | ||
package oras | ||
|
||
import "errors" | ||
import ( | ||
"errors" | ||
"fmt" | ||
) | ||
|
||
// Common errors | ||
var ( | ||
ErrResolverUndefined = errors.New("resolver_undefined") | ||
ErrEmptyDescriptors = errors.New("empty_descriptors") | ||
ErrResolverUndefined = errors.New("resolver undefined") | ||
ErrEmptyDescriptors = errors.New("empty descriptors") | ||
) | ||
|
||
// Path validation related errors | ||
var ( | ||
ErrDirtyPath = errors.New("dirty_path") | ||
ErrPathNotSlashSeparated = errors.New("path_not_slash_separated") | ||
ErrAbsolutePathDisallowed = errors.New("absolute_path_disallowed") | ||
ErrPathTraversalDisallowed = errors.New("path_traversal_disallowed") | ||
ErrDirtyPath = errors.New("dirty path") | ||
ErrPathNotSlashSeparated = errors.New("path not slash separated") | ||
ErrAbsolutePathDisallowed = errors.New("absolute path disallowed") | ||
ErrPathTraversalDisallowed = errors.New("path traversal disallowed") | ||
) | ||
|
||
// ErrStopProcessing is used to stop processing an oras operation. | ||
// This error only makes sense in sequential pulling operation. | ||
var ErrStopProcessing = fmt.Errorf("stop processing") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters