Change on top of pull request from sks/feature/get_props
@@ -10,7 +10,7 @@ import (
type SearchResult struct {
Path string `json:"path,omitempty"`
- Properties map[string]string `json:"properties,omitempty"`
+ Props map[string]string `json:"props,omitempty"`
}
func Search(searchSpec *spec.SpecFiles, artDetails *config.ArtifactoryDetails) ([]SearchResult, error) {
@@ -46,9 +46,9 @@ func aqlResultToSearchResult(aqlResult []clientutils.ResultItem) (result []Searc
} else {
tempResult.Path = v.Repo + "/" + v.Name
}
- tempResult.Properties = make(map[string]string, len(v.Properties))
+ tempResult.Props = make(map[string]string, len(v.Properties))
for _, prop := range v.Properties {
- tempResult.Properties[prop.Key] = prop.Value
+ tempResult.Props[prop.Key] = prop.Value
}
result[i] = *tempResult
}
