package api

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

Index

Constants

const (
	// DefaultVersion of Current REST API
	DefaultVersion string = "1.25"

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

const MinVersion string = "1.24"

MinVersion represents Minimum REST API version supported Technically the first daemon API version released on Windows is v1.25 in engine version 1.13. However, some clients are explicitly using downlevel APIs (eg docker-compose v2.1 file format) and that is just too restrictive. Hence also allowing 1.24 on Windows.

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 common_windows.go

Directories

PathSynopsis
api/errors
api/server
api/server/httputils
api/server/middleware
api/server/router
api/server/router/build
api/server/router/checkpoint
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/typesPackage types is used for API stability in the types and response to the consumers of the API stats endpoint.
api/types/backendPackage backend includes types to send information to server backends.
api/types/blkiodev
api/types/container
api/types/events
api/types/filtersPackage filters provides helper function to parse and handle command line filter, used for example in docker ps or docker images commands.
api/types/mount
api/types/network
api/types/reference
api/types/registry
api/types/strslice
api/types/swarm
api/types/time
api/types/versions
api/types/versions/v1p19Package v1p19 provides specific API types for the API version 1, patch 19.
api/types/versions/v1p20Package v1p20 provides specific API types for the API version 1, patch 20.
api/types/volume
Version
v1.13.0-rc2
Published
Nov 23, 2016
Platform
windows/amd64
Imports
14 packages
Last checked
8 minutes ago

Tools for package owners.