|
|
@ -120,11 +120,10 @@ func (eStorage *encodedStorage) List() ([]storage.ObjectDescription, error) { |
|
|
|
var objectDescList []storage.ObjectDescription |
|
|
|
var objectDescList []storage.ObjectDescription |
|
|
|
for objectName, objectEntry := range eStorage.objects { |
|
|
|
for objectName, objectEntry := range eStorage.objects { |
|
|
|
var objectDescription storage.ObjectDescription |
|
|
|
var objectDescription storage.ObjectDescription |
|
|
|
protectionLevel := strconv.Itoa(objectEntry.Encoderparams.K) + "," + strconv.Itoa(objectEntry.Encoderparams.M) |
|
|
|
//protectionLevel := strconv.Itoa(objectEntry.Encoderparams.K) + "," + strconv.Itoa(objectEntry.Encoderparams.M)
|
|
|
|
objectDescription.Name = objectName |
|
|
|
objectDescription.Name = objectName |
|
|
|
objectDescription.Md5sum = hex.EncodeToString(objectEntry.Md5sum) |
|
|
|
objectDescription.Md5sum = hex.EncodeToString(objectEntry.Md5sum) |
|
|
|
objectDescription.Hash = strconv.FormatUint(objectEntry.Murmurhash, 16) |
|
|
|
objectDescription.Murmur3 = strconv.FormatUint(objectEntry.Murmurhash, 16) |
|
|
|
objectDescription.Protectionlevel = protectionLevel |
|
|
|
|
|
|
|
objectDescList = append(objectDescList, objectDescription) |
|
|
|
objectDescList = append(objectDescList, objectDescription) |
|
|
|
} |
|
|
|
} |
|
|
|
if len(objectDescList) == 0 { |
|
|
|
if len(objectDescList) == 0 { |
|
|
|