forked from TrueCloudLab/frostfs-api-go
Add ErrNotFound for container
This commit is contained in:
parent
5c344bfceb
commit
4efb4dafe8
1 changed files with 6 additions and 0 deletions
|
@ -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 }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue