From 4efb4dafe87d417677004fcf4fce9f3216a46780 Mon Sep 17 00:00:00 2001 From: Evgeniy Kulikov Date: Wed, 20 Nov 2019 12:49:05 +0300 Subject: [PATCH] Add ErrNotFound for container --- container/service.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/container/service.go b/container/service.go index 5f446da..4d3747e 100644 --- a/container/service.go +++ b/container/service.go @@ -4,6 +4,7 @@ import ( "bytes" "encoding/binary" + "github.com/nspcc-dev/neofs-proto/internal" "github.com/nspcc-dev/neofs-proto/refs" "github.com/pkg/errors" ) @@ -19,6 +20,11 @@ type ( MessageID = refs.MessageID ) +const ( + // ErrNotFound is raised when container could not be found. + ErrNotFound = internal.Error("could not find container") +) + // SetSignature sets signature to PutRequest to satisfy SignedRequest interface. func (m *PutRequest) SetSignature(v []byte) { m.Signature = v }