package reference
import "github.com/docker/engine-api/types/reference"
Index ¶
- func GetTagFromNamedRef(ref distreference.Named) string
- func Parse(ref string) (string, string, error)
Functions ¶
func GetTagFromNamedRef ¶
func GetTagFromNamedRef(ref distreference.Named) string
GetTagFromNamedRef returns a tag from the specified reference. This function is necessary as long as the docker "server" api makes the distinction between repository and tags.
func Parse ¶
Parse parses the given references and returns the repository and tag (if present) from it. If there is an error during parsing, it will return an error.
Source Files ¶
- Version
- v0.4.0 (latest)
- Published
- Jul 27, 2016
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 6 days ago –
Tools for package owners.