Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrBreak = pacherr.ErrBreak
Functions ¶
func IsAlreadyExistError ¶
IsAlreadyExistError returns true if err is due to trying to create a resource that already exists. It uses simple string matching, it's not terribly smart.
func IsDatabaseDisconnect ¶ added in v2.6.6
IsDatabseDisconnect returns true if the error represents a database disconnect
func IsInvalidPathError ¶
IsInvalidPathError returns true if the err is due to an invalid path
func IsNetRetryable ¶
IsNetRetryable returns true if the error is a temporary network error.
func IsNotADirectoryError ¶
IsNotADirectoryError returns true if the err is due to an attempt to put a file on path that has a non-directory parent. These errors come from the hashtree package; while it provides an error code, we can't check against that because we'd then have to import hashtree, and hashtree imports errutil, leading to circular imports.
func IsNotFoundError ¶
IsNotFoundError returns true if err is due to a resource not being found. It uses simple string matching, it's not terribly smart.
func IsWriteToOutputBranchError ¶
IsWriteToOutputBranchError returns true if the err is due to an attempt to write to an output repo/branch
Types ¶
This section is empty.