Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.21.12.1^2
zouap 4 years ago
parent
commit
283cfb9b5b
1 changed files with 3 additions and 7 deletions
  1. +3
    -7
      modules/storage/obs.go

+ 3
- 7
modules/storage/obs.go View File

@@ -372,7 +372,7 @@ func GetAllObjectByBucketAndPrefix(bucket string, prefix string) ([]FileInfo, er
return fileInfos, nil
}

func GetObsListObject(jobName, parentDir string) ([]FileInfo, error) {
func GetObsListObject(jobName, parentDir, versionName string) ([]FileInfo, error) {
input := &obs.ListObjectsInput{}
input.Bucket = setting.Bucket
input.Prefix = strings.TrimPrefix(path.Join(setting.TrainJobModelPath, jobName, setting.OutPutPath, versionName, parentDir), "/")
@@ -501,10 +501,7 @@ func GetObsCreateSignedUrlByBucketAndKey(bucket, key string) (string, error) {
return "", err
}

return output.SignedUrl, nil

<<<<<<< HEAD
}
return output.SignedUrl, nil}

func GetObsCreateSignedUrl(jobName, parentDir, fileName string) (string, error) {
// input := &obs.CreateSignedUrlInput{}
@@ -526,8 +523,7 @@ func GetObsCreateSignedUrl(jobName, parentDir, fileName string) (string, error)
// }

// return output.SignedUrl, nil
=======
>>>>>>> origin/V20211213

}

func ObsGetPreSignedUrl(uuid, fileName string) (string, error) {


Loading…
Cancel
Save