podex: add comment about image name parsing

This commit is contained in:
Johan Euphrosine
2014-10-02 10:56:53 -07:00
parent dd571c5a76
commit 5aefc25dad

View File

@@ -61,6 +61,9 @@ func main() {
log.Fatal(usage) log.Fatal(usage)
} }
// Parse docker image name
// IMAGE: [REGISTRYHOST/][USERNAME/]NAME[:TAG]
// NAME: [a-z0-9-_.]
parts := strings.Split(imageName, "/") parts := strings.Split(imageName, "/")
baseName := parts[len(parts)-1] baseName := parts[len(parts)-1]