MCPcopy Index your code
hub / github.com/TruthHun/DocHub / NewCloudStore

Function NewCloudStore

models/CloudStoreModel.go:28–33  ·  view source on GitHub ↗

创建云存储

(private bool)

Source from the content-addressed store, hash-verified

26
27// 创建云存储
28func NewCloudStore(private bool) (cs *CloudStore, err error) {
29 storeType := helper.ConfigCate(GlobalSys.StoreType)
30 modelConfig := NewConfig()
31 config := modelConfig.GetGlobalConfigWithStruct(storeType)
32 return NewCloudStoreWithConfig(config, storeType, private)
33}
34
35var errWithoutConfig = errors.New("云存储配置不正确")
36

Callers 6

GetImageFromCloudStoreFunction · 0.85
CanDownloadFileMethod · 0.85
DelFolderMethod · 0.85
DocumentConvertFunction · 0.85
DelFileMethod · 0.85
DelMethod · 0.85

Calls 3

NewConfigFunction · 0.85
NewCloudStoreWithConfigFunction · 0.85

Tested by

no test coverage detected