Open akarasulu opened 6 years ago
Gorjun supports tags only for templates.
Gorjun supports tags only for templates.
Ok, can you please show how it can be used?
Why can't we use this on any artifact type?
You can check curl calls here https://github.com/subutai-io/gorjun/wiki/v1#kurjunresttemplatetag
@emli show me how in a command sequence with curl:
1)
curl -Ftags=1.0 -Ftoken=$TOKEN -Fid=982e3fc0-820f-48ee-a8c1-32254f80445a "$URL/template/tag"
curl -Ftags=1.1 -Ftoken=$TOKEN -Fid=2862aa2f-b10b-4368-84a9-e09f102f149e "$URL/template/tag"
curl -Ftags=2.0 -Ftoken=$TOKEN -Fid=ae7d01d7-61e5-45c1-b3ad-399f7488d66e "$URL/template/tag"
By the following links you can see tags.
https://devcdn.subut.ai:8338/kurjun/rest/template/info?id=982e3fc0-820f-48ee-a8c1-32254f80445a
https://devcdn.subut.ai:8338/kurjun/rest/template/info?id=2862aa2f-b10b-4368-84a9-e09f102f149e
https://devcdn.subut.ai:8338/kurjun/rest/template/info?id=ae7d01d7-61e5-45c1-b3ad-399f7488d66e
2) We can get files by name and id of template. By tag not implemented
How about by name and by version?
By name and by version also not implemented, currently implemented only by name and id
We added a feature to add tags (labels to files uploaded). I would like to document how this feature works. How do I upload a file to Gorjun providing a tag, and use that to retrieve it? Please show me the mechanics of this with curl calls.
My specific use case is to upload a version of a file and use the tag for the version. This way the file name in Gorjun stays the same while I can still access older versions of the file using this version tag.