package api
import "github.com/dotcloud/docker/api"
Index ¶
- Constants
- func DisplayablePorts(ports []types.Port) string
- func LoadOrCreateTrustKey(trustKeyPath string) (libtrust.PrivateKey, error)
- func MatchesContentType(contentType, expectedType string) bool
Constants ¶
const ( // Version of Current REST API Version version.Version = "1.21" // MinVersion represents Minimun REST API version supported MinVersion version.Version = "1.12" // DefaultDockerfileName is the Default filename with Docker commands, read by docker build DefaultDockerfileName string = "Dockerfile" )
Common constants for daemon and client.
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
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
api/client | Package client provides a command-line interface for Docker. |
api/client/ps | |
api/server | |
api/server/httputils | |
api/server/router | |
api/server/router/local | |
api/server/router/network | |
api/types | Package types is used for API stability in the types and response to the consumers of the API stats endpoint. |
api/types/versions | |
api/types/versions/v1p19 | Package v1p19 provides specific API types for the API version 1, patch 19. |
api/types/versions/v1p20 | Package v1p20 provides specific API types for the API version 1, patch 20. |
- Version
- v1.9.0-rc2
- Published
- Oct 22, 2015
- Platform
- js/wasm
- Imports
- 11 packages
- Last checked
- 1 minute ago –
Tools for package owners.