[#208] pkg/container: Define standard error for mismatch identifiers

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-12-17 12:50:36 +03:00 committed by Alex Vanin
parent 7d1a795d76
commit 84839b09c2

View file

@ -12,6 +12,10 @@ import (
// ID represents v2-compatible container identifier.
type ID refs.ContainerID
// ErrIDMismatch is returned when container structure does not match
// a specific identifier.
var ErrIDMismatch = errors.New("container structure does not match the identifier")
var errInvalidIDString = errors.New("incorrect format of the string container ID")
// NewIDFromV2 wraps v2 ContainerID message to ID.