Files
cloudpods/pkg/multicloud/bucket_base.go
2020-04-01 15:17:06 +08:00

76 lines
1.6 KiB
Go

// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package multicloud
import (
"yunion.io/x/jsonutils"
api "yunion.io/x/onecloud/pkg/apis/compute"
"yunion.io/x/onecloud/pkg/cloudprovider"
)
type SBaseBucket struct{}
func (b *SBaseBucket) MaxPartCount() int {
return 10000
}
func (b *SBaseBucket) MaxPartSizeBytes() int64 {
return 5 * 1000 * 1000 * 1000
}
func (b *SBaseBucket) GetId() string {
return ""
}
func (b *SBaseBucket) GetName() string {
return ""
}
func (b *SBaseBucket) GetGlobalId() string {
return ""
}
func (b *SBaseBucket) GetStatus() string {
return api.BUCKET_STATUS_READY
}
func (b *SBaseBucket) Refresh() error {
return nil
}
func (b *SBaseBucket) IsEmulated() bool {
return false
}
func (b *SBaseBucket) GetMetadata() *jsonutils.JSONDict {
return nil
}
func (b *SBaseBucket) LimitSupport() cloudprovider.SBucketStats {
return cloudprovider.SBucketStats{
SizeBytes: -1,
ObjectCount: -1,
}
}
func (b *SBaseBucket) GetLimit() cloudprovider.SBucketStats {
return cloudprovider.SBucketStats{}
}
func (b *SBaseBucket) SetLimit(limit cloudprovider.SBucketStats) error {
return nil
}