Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultVersion of Current REST API DefaultVersion string = "1.30" // NoBaseImageSpecifier is the symbol used by the FROM // command to specify that no base image is to be used. NoBaseImageSpecifier string = "scratch" )
Common constants for daemon and client.
View Source
const MinVersion string = "1.12"
MinVersion represents Minimum REST API version supported
View Source
const RestrictedNameChars = `[a-zA-Z0-9][a-zA-Z0-9_.-]`
RestrictedNameChars collects the characters allowed to represent a name, normally used to validate container and volume names.
Variables ¶
View Source
var RestrictedNamePattern = regexp.MustCompile(`^` + RestrictedNameChars + `+$`)
RestrictedNamePattern is a regular expression to validate names against the collection of restricted characters.
Functions ¶
func DisplayablePorts ¶
DisplayablePorts returns formatted string representing open ports of container e.g. "0.0.0.0:80->9090/tcp, 9988/tcp" it's used by command 'docker ps'
func LoadOrCreateTrustKey ¶
func LoadOrCreateTrustKey(trustKeyPath string) (libtrust.PrivateKey, error)
LoadOrCreateTrustKey attempts to load the libtrust key at the given path, otherwise generates a new one
func MatchesContentType ¶
MatchesContentType validates the content type against the expected one
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.