feat: Closes #206, Added an admin api endpoint and a CLI action to change buckets owner

This commit is contained in:
jonaustin09
2023-09-06 17:41:47 -04:00
parent d7148105be
commit 4c7584c99f
8 changed files with 326 additions and 12 deletions

View File

@@ -67,6 +67,9 @@ type Backend interface {
GetTags(_ context.Context, bucket, object string) (map[string]string, error)
SetTags(_ context.Context, bucket, object string, tags map[string]string) error
RemoveTags(_ context.Context, bucket, object string) error
// non AWS actions
ChangeBucketOwner(_ context.Context, bucket, newOwner string) error
}
type BackendUnsupported struct{}
@@ -171,3 +174,7 @@ func (BackendUnsupported) SetTags(_ context.Context, bucket, object string, tags
func (BackendUnsupported) RemoveTags(_ context.Context, bucket, object string) error {
return s3err.GetAPIError(s3err.ErrNotImplemented)
}
func (BackendUnsupported) ChangeBucketOwner(_ context.Context, bucket, newOwner string) error {
return s3err.GetAPIError(s3err.ErrNotImplemented)
}