forked from TrueCloudLab/frostfs-api-go
[#208] pkg/container: Define standard error for mismatch identifiers
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
7d1a795d76
commit
84839b09c2
1 changed files with 4 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue