[#371] Support recent changes in NeoFS API protocol
Support: * new status codes (object, container, session); * object `Lock` message; * different signature schemes. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
a4349f6692
commit
99370889d1
41 changed files with 1139 additions and 129 deletions
|
@ -42,6 +42,11 @@ func (x *Detail) SetValue(val []byte) {
|
|||
// Code represents NeoFS API V2-compatible status code.
|
||||
type Code uint32
|
||||
|
||||
// EqualNumber checks if the numerical Code equals num.
|
||||
func (x Code) EqualNumber(num uint32) bool {
|
||||
return uint32(x) == num
|
||||
}
|
||||
|
||||
// Status represents structure of NeoFS API V2-compatible status return message.
|
||||
type Status struct {
|
||||
code Code
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue