forked from TrueCloudLab/frostfs-s3-gw
[#544] layer: Add session token parameter to DeleteBucketParams
Add `DeleteBucketParams.SessionToken` field in order to unify the parameters with `CreateBucketParams` and `PutBucketACLParams`. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
4fe833164e
commit
f596c8be06
3 changed files with 16 additions and 10 deletions
|
@ -180,12 +180,6 @@ func (n *layer) GetContainerEACL(ctx context.Context, idCnr cid.ID) (*eacl.Table
|
|||
return n.neoFS.ContainerEACL(ctx, idCnr)
|
||||
}
|
||||
|
||||
func (n *layer) deleteContainer(ctx context.Context, idCnr cid.ID) error {
|
||||
var sessionToken *session.Container
|
||||
boxData, err := GetBoxData(ctx)
|
||||
if err == nil {
|
||||
sessionToken = boxData.Gate.SessionTokenForDelete()
|
||||
}
|
||||
|
||||
func (n *layer) deleteContainer(ctx context.Context, idCnr cid.ID, sessionToken *session.Container) error {
|
||||
return n.neoFS.DeleteContainer(ctx, idCnr, sessionToken)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue