Documentation ¶
Overview ¶
Package commonerr contains common errors between different Praefect components. Ideally this package's contents would be in praefect's root package but this is not possible at the moment due to cyclic imports.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrRepositoryAlreadyExists = errors.New("repository already exists")
ErrRepositoryAlreadyExists is returned when attempting to create a repository that already exists.
var ErrRepositoryNotFound = errors.New("repository not found")
ErrRepositoryNotFound is returned when operating on a repository that doesn't exist.
This somewhat duplicates the above RepositoryNotFoundError but doesn't specify which repository was not found. With repository IDs in use, the virtual storage and relative path won't be available everywhere anymore.
Functions ¶
func NewRepositoryNotFoundError ¶
NewRepositoryNotFoundError returns a new repository not found error for the given repository.
Types ¶
type RepositoryNotFoundError ¶
type RepositoryNotFoundError struct {
// contains filtered or unexported fields
}
RepositoryNotFoundError is returned when attempting to operate on a repository that does not exist in the virtual storage.
func (RepositoryNotFoundError) Error ¶
func (err RepositoryNotFoundError) Error() string
Error returns the error message.