package reference

import "github.com/docker/engine-api/types/reference"

Index

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

func Parse(ref string) (string, string, error)

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

image_reference.go

Version
v0.4.0 (latest)
Published
Jul 27, 2016
Platform
linux/amd64
Imports
1 packages
Last checked
6 days ago

Tools for package owners.