Add ErrNotFound for container

This commit is contained in:
Evgeniy Kulikov 2019-11-20 12:49:05 +03:00
parent 5c344bfceb
commit 4efb4dafe8
No known key found for this signature in database
GPG key ID: BF6AEE0A2A699BF2

View file

@ -4,6 +4,7 @@ import (
"bytes" "bytes"
"encoding/binary" "encoding/binary"
"github.com/nspcc-dev/neofs-proto/internal"
"github.com/nspcc-dev/neofs-proto/refs" "github.com/nspcc-dev/neofs-proto/refs"
"github.com/pkg/errors" "github.com/pkg/errors"
) )
@ -19,6 +20,11 @@ type (
MessageID = refs.MessageID 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. // SetSignature sets signature to PutRequest to satisfy SignedRequest interface.
func (m *PutRequest) SetSignature(v []byte) { m.Signature = v } func (m *PutRequest) SetSignature(v []byte) { m.Signature = v }