Skip to content

Commit

Permalink
object/minio: support for MinIO storage class (#5413)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijian-pro authored Dec 23, 2024
1 parent 1a6de59 commit dbe6688
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/object/minio.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ func (m *minio) String() string {
return fmt.Sprintf("minio://%s/%s/", *m.s3client.ses.Config.Endpoint, m.s3client.bucket)
}

func (m *minio) SetStorageClass(_ string) error {
return notSupported
}

func (m *minio) Limits() Limits {
return Limits{
IsSupportMultipartUpload: true,
Expand Down
2 changes: 2 additions & 0 deletions pkg/object/object_storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ func setStorageClass(o ObjectStorage) string {
sc = string(obs.StorageClassStandard)
case *bosclient:
sc = api.STORAGE_CLASS_STANDARD
case *minio:
sc = "REDUCED_REDUNDANCY"
case *scw:
sc = "ONEZONE_IA" // STANDARD, ONEZONE_IA, GLACIER
}
Expand Down

0 comments on commit dbe6688

Please sign in to comment.