package reference
import "github.com/docker/docker/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
- v1.13.1-rc2
- Published
- Feb 6, 2017
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 4 minutes ago –
Tools for package owners.