implemented delete share

This commit is contained in:
2022-05-09 15:36:43 +02:00
parent 65410d3210
commit d8726a7e6e
2 changed files with 21 additions and 1 deletions

View File

@@ -86,3 +86,7 @@ func (c *Client) CreateShare(ctx context.Context, key string) (*types.Share, err
func (c *Client) GetObjectFromShare(ctx context.Context, share *types.Share) (s3.ObjectReader, error) {
return c.s3.GetObject(ctx, share.Key)
}
func (c *Client) DeleteShare(ctx context.Context, slug string) error {
return c.db.DeleteShare(ctx, slug)
}