23 lines
378 B
Go
23 lines
378 B
Go
package blob
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/pkg/errors"
|
|
)
|
|
|
|
type DeleteBucketArgs struct {
|
|
BucketName string
|
|
}
|
|
|
|
type DeleteBucketReply struct {
|
|
}
|
|
|
|
func (s *Service) DeleteBucket(ctx context.Context, args *DeleteBucketArgs, reply *DeleteBucketReply) error {
|
|
if err := s.store.DeleteBucket(ctx, args.BucketName); err != nil {
|
|
return errors.WithStack(err)
|
|
}
|
|
|
|
return nil
|
|
}
|