✨ added apis and optimized table structures
This commit is contained in:
@@ -131,9 +131,11 @@ func (a *AliOSS) GetBucketStat(ctx context.Context, bucketName string) (*BucketS
|
||||
return nil, fmt.Errorf("failed to get bucket stat, error: %v", err)
|
||||
}
|
||||
return &BucketStat{
|
||||
Storage: result.Storage,
|
||||
ObjectCount: result.ObjectCount,
|
||||
LastModified: result.LastModifiedTime,
|
||||
Storage: result.Storage,
|
||||
ObjectCount: result.ObjectCount,
|
||||
LastModified: result.LastModifiedTime,
|
||||
StandardStorage: result.StandardStorage,
|
||||
StandardObjectCount: result.StandardObjectCount,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
@@ -19,9 +19,11 @@ type BucketProperties struct {
|
||||
|
||||
// 通用存储桶统计信息
|
||||
type BucketStat struct {
|
||||
Storage int64
|
||||
ObjectCount int64
|
||||
LastModified int64
|
||||
Storage int64
|
||||
ObjectCount int64
|
||||
LastModified int64
|
||||
StandardStorage int64
|
||||
StandardObjectCount int64
|
||||
}
|
||||
|
||||
// 通用存储桶信息
|
||||
|
Reference in New Issue
Block a user