package reference

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

Tools for package owners.