package api

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

Index

Constants

const (
	APIVERSION        version.Version = "1.16"
	DEFAULTHTTPHOST                   = "127.0.0.1"
	DEFAULTUNIXSOCKET                 = "/var/run/docker.sock"
)

Functions

func DisplayablePorts

func DisplayablePorts(ports *engine.Table) string

TODO remove, used on < 1.5 in getContainersJSON

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

func ValidateHost

func ValidateHost(val string) (string, error)

Source Files

common.go

Directories

PathSynopsis
api/client
api/server
Version
v1.4.1
Published
Dec 15, 2014
Platform
js/wasm
Imports
10 packages
Last checked
42 minutes ago

Tools for package owners.