forked from TrueCloudLab/frostfs-node
[#525] v2/container: Return session token and signature in Get
In recent API changes `GetResponseBody` carries session token and signature. In recent API Go lib changes `Container` structure carries its session token and signature. Write session token and signature of container from sidechain to Get response body in node's `ContainerService` server. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
e09529879a
commit
a7f71bf167
1 changed files with 2 additions and 0 deletions
|
@ -65,6 +65,8 @@ func (s *morphExecutor) Get(ctx context.Context, body *container.GetRequestBody)
|
|||
|
||||
res := new(container.GetResponseBody)
|
||||
res.SetContainer(cnr.ToV2())
|
||||
res.SetSignature(cnr.Signature().ToV2())
|
||||
res.SetSessionToken(cnr.SessionToken().ToV2())
|
||||
|
||||
return res, nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue