View definition

func ParseRepositoryTag

Defined in github.com/fsouza/go-dockerclient/misc.go

Description

ParseRepositoryTag gets the name of the repository and returns it splitted in two parts: the repository and the tag. It ignores the digest when it is present.

Some examples:

localhost.localdomain:5000/samalba/hipache:latest -> localhost.localdomain:5000/samalba/hipache, latest
localhost.localdomain:5000/samalba/hipache -> localhost.localdomain:5000/samalba/hipache, ""
busybox:[email protected]:4a731fb46adc5cefe3ae374a8b6020fc1b6ad667a279647766e9a3cd89f6fa92 -> busybox, latest

ParseRepositoryTag is referenced in 8 repositories

github.com/fsouza/go-dockerclient github.com/tamtam-im/capstan github.com/mistifyio/mistify-agent-docker

...