|
|
|
@@ -41,7 +41,6 @@ type StorageType interface { |
|
|
|
} |
|
|
|
|
|
|
|
var _ = serder.UseTypeUnionInternallyTagged(types.Ref(types.NewTypeUnion[StorageType]( |
|
|
|
// (*MashupStorageType)(nil), |
|
|
|
(*LocalType)(nil), |
|
|
|
(*OBSType)(nil), |
|
|
|
(*OSSType)(nil), |
|
|
|
@@ -50,22 +49,6 @@ var _ = serder.UseTypeUnionInternallyTagged(types.Ref(types.NewTypeUnion[Storage |
|
|
|
(*S3Type)(nil), |
|
|
|
)), "type") |
|
|
|
|
|
|
|
// // 多种存储服务的混合存储服务。需谨慎选择存储服务的组合,避免出Bug |
|
|
|
// type MashupStorageType struct { |
|
|
|
// serder.Metadata `union:"Mashup"` |
|
|
|
// Type string `json:"type"` |
|
|
|
// Store StorageType `json:"store"` // 创建ShardStore或BaseStore时,使用的存储服务类型 |
|
|
|
// Feature StorageType `json:"feature"` // 根据Feature创建组件时使用的存储服务类型 |
|
|
|
// } |
|
|
|
|
|
|
|
// func (a *MashupStorageType) GetStorageType() string { |
|
|
|
// return "Mashup" |
|
|
|
// } |
|
|
|
|
|
|
|
// func (a *MashupStorageType) String() string { |
|
|
|
// return "Mashup" |
|
|
|
// } |
|
|
|
|
|
|
|
type LocalType struct { |
|
|
|
serder.Metadata `union:"Local"` |
|
|
|
Type string `json:"type"` |
|
|
|
|