forked from TrueCloudLab/frostfs-api-go
Implement signature interface for container put request
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
0ae952fcc6
commit
4a6ea486f7
1 changed files with 17 additions and 0 deletions
17
container/v2/signature.go
Normal file
17
container/v2/signature.go
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
package v2
|
||||||
|
|
||||||
|
func (m *Container) ReadSignedData(buf []byte) ([]byte, error) {
|
||||||
|
return m.StableMarshal(buf)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *Container) SignedDataSize() int {
|
||||||
|
return m.StableSize()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *PutRequest_Body) ReadSignedData(buf []byte) ([]byte, error) {
|
||||||
|
return m.StableMarshal(buf)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *PutRequest_Body) SignedDataSize() int {
|
||||||
|
return m.StableSize()
|
||||||
|
}
|
Loading…
Reference in a new issue