forked from TrueCloudLab/frostfs-s3-gw
[#47] handler, layer: Add DeleteBucket
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
This commit is contained in:
parent
c12abf6243
commit
3aa9aceda5
4 changed files with 41 additions and 8 deletions
|
@ -151,3 +151,7 @@ func (n *layer) createContainer(ctx context.Context, p *CreateBucketParams) (*ci
|
|||
|
||||
return cid, nil
|
||||
}
|
||||
|
||||
func (n *layer) deleteContainer(ctx context.Context, cid *cid.ID) error {
|
||||
return n.pool.DeleteContainer(ctx, cid, n.SessionOpt(ctx))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue