package api

import "github.com/docker/docker/api"

Index

Constants

const (
	// Version of Current REST API
	DefaultVersion string = "1.24"

	// MinVersion represents Minimum REST API version supported
	MinVersion string = "1.12"

	// 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.

Functions

func DisplayablePorts

func DisplayablePorts(ports []types.Port) string

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

func MatchesContentType(contentType, expectedType string) bool

MatchesContentType validates the content type against the expected one

Source Files

common.go

Directories

PathSynopsis
api/clientPackage client provides a command-line interface for Docker.
api/client/container
api/client/formatter
api/client/idresolver
api/client/image
api/client/inspect
api/client/network
api/client/node
api/client/plugin
api/client/registry
api/client/service
api/client/stack
api/client/swarm
api/client/system
api/client/task
api/client/volume
api/server
api/server/httputils
api/server/middleware
api/server/router
api/server/router/build
api/server/router/container
api/server/router/image
api/server/router/network
api/server/router/plugin
api/server/router/swarm
api/server/router/system
api/server/router/volume
api/types
api/types/backendPackage backend includes types to send information to server backends.
Version
v1.12.2-rc1
Published
Sep 27, 2016
Platform
js/wasm
Imports
14 packages
Last checked
3 minutes ago

Tools for package owners.