aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/chigopher/pathlib/errors.go
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2024-05-08 14:17:02 +0200
committerTaras Madan <tarasmadan@google.com>2024-05-08 12:48:31 +0000
commit0ac372459159c5632ae7ce9778e9be771708a9b3 (patch)
tree9c6a979cada5c22b46dd3c5ad4b0d706f2252272 /vendor/github.com/chigopher/pathlib/errors.go
parent69141a688b25b2d33daf570507dbb13a3c80e5d9 (diff)
vendor: go mod vendor
We don't want to download mockery every time.
Diffstat (limited to 'vendor/github.com/chigopher/pathlib/errors.go')
-rw-r--r--vendor/github.com/chigopher/pathlib/errors.go29
1 files changed, 29 insertions, 0 deletions
diff --git a/vendor/github.com/chigopher/pathlib/errors.go b/vendor/github.com/chigopher/pathlib/errors.go
new file mode 100644
index 000000000..28b6b9a2a
--- /dev/null
+++ b/vendor/github.com/chigopher/pathlib/errors.go
@@ -0,0 +1,29 @@
+package pathlib
+
+import "fmt"
+
+var (
+ // ErrDoesNotImplement indicates that the afero filesystem doesn't
+ // implement the required interface.
+ ErrDoesNotImplement = fmt.Errorf("doesn't implement required interface")
+ // ErrInfoIsNil indicates that a nil os.FileInfo object was provided
+ ErrInfoIsNil = fmt.Errorf("provided os.Info object was nil")
+ // ErrInvalidAlgorithm specifies that an unknown algorithm was given for Walk
+ ErrInvalidAlgorithm = fmt.Errorf("invalid algorithm specified")
+ // ErrLstatNotPossible specifies that the filesystem does not support lstat-ing
+ ErrLstatNotPossible = fmt.Errorf("lstat is not possible")
+ // ErrRelativeTo indicates that we could not make one path relative to another
+ ErrRelativeTo = fmt.Errorf("failed to make path relative to other")
+ errWalkControl = fmt.Errorf("walk control")
+ // ErrSkipSubtree indicates to the walk function that the current subtree of
+ // directories should be skipped. It's recommended to only use this error
+ // with the AlgorithmPreOrderDepthFirst algorithm, as many other walk algorithms
+ // will not respect this error due to the nature of the ordering in which the
+ // algorithms visit each node of the filesystem tree.
+ ErrWalkSkipSubtree = fmt.Errorf("skip subtree: %w", errWalkControl)
+ // ErrStopWalk indicates to the Walk function that the walk should be aborted.
+ // DEPRECATED: Use ErrWalkStop
+ ErrStopWalk = ErrWalkStop
+ // ErrWalkStop indicates to the Walk function that the walk should be aborted.
+ ErrWalkStop = fmt.Errorf("stop filesystem walk: %w", errWalkControl)
+)