Documentation ¶
Index ¶
- Constants
- func JoinRepoTag(repo, tag string) string
- type ImageID
- func (iid ImageID) BaseName() string
- func (iid *ImageID) Copy() *ImageID
- func (iid ImageID) Equals(iid2 ImageID) bool
- func (iid ImageID) IsLatest() bool
- func (iid *ImageID) Merge(new *ImageID) error
- func (iid ImageID) Registry() string
- func (iid ImageID) String() string
- func (iid *ImageID) Validate() bool
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func JoinRepoTag ¶
JoinRepoTag joins an image repo with the tag
Types ¶
type ImageID ¶
ImageID represents a Docker Image identifier.
func ParseImageID ¶
ParseImageID parses the string representation of a Docker image ID into an ImageID structure. The grammar used by the parser is: image id = [host(':'port|'/')]reponame[':'tag] host = {alpha|digit|'.'|'-'}+ port = {digit}+ reponame = [user'/']repo user = {alpha|digit|'-'|'_'}+ repo = {alpha|digit|'-'|'_'|'.'}+ tag = {alpha|digit|'-'|'_'|'.'}+ The grammar is ambiguous so the parser is a little messy in places.
func RenameImageID ¶
Return an ImageID object from several different parts
dockerRegistry - The registry to use in the image name, eg. "localhost:5000" tenantID - The ID of the tenant that the image will pertain to imgID - The 'uncustomized' image name, eg. "zenoss/core-unstable:5.0.0". Only the part after the last slash, but before the last colon will actually be used from this tag - The new tag you'd like to create An input of ("localhost:5000", "myLittleTenant", "zenoss/core-unstable:5.0.0", "latest") would return an ImageID whose parts would be: Host: localhost Port: 5000 User: myLittleTenant Repo: core-unstable Tag: latest
func (ImageID) BaseName ¶
BaseName returns a string representation of the ImageID structure sans tag
func (ImageID) Registry ¶
Registry returns registry component of the ImageID as a string with the form: hostname:port
Directories ¶
Path | Synopsis |
---|---|
Package diet provides an implementation of a Discrete Interval Encoding Tree.
|
Package diet provides an implementation of a Discrete Interval Encoding Tree. |
Simple iptables controller based on Docker's
|
Simple iptables controller based on Docker's |