Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/fsouza/go-dockerclient
/ functions
Functions
729 in github.com/fsouza/go-dockerclient
⨍
Functions
729
◇
Types & classes
188
↓ 3 callers
Method
notify
(container *docker.Container)
testing/server.go:152
↓ 3 callers
Function
parsePort
(rawPort string)
container.go:240
↓ 2 callers
Method
AddEventListenerWithOptions
AddEventListener adds a new listener to container events in the Docker API. See https://docs.docker.com/engine/api/v1.41/#operation/SystemEvents for m
event.go:136
↓ 2 callers
Method
CustomHandler
CustomHandler registers a custom handler for a specific path. For example: server.CustomHandler("/containers/json", http.HandlerFunc(func(w http.Re
testing/server.go:281
↓ 2 callers
Method
DefaultHandler
DefaultHandler returns default http.Handler mux, it allows customHandlers to call the default behavior if wanted.
testing/server.go:332
↓ 2 callers
Method
DisconnectNetwork
DisconnectNetwork removes a container from a network or returns an error in case of failure. See https://goo.gl/6GugX3 for more details.
network.go:279
↓ 2 callers
Method
Error
()
container.go:577
↓ 2 callers
Method
Exists
Exists checks whether the given key is defined in the internal Env representation.
env.go:25
↓ 2 callers
Method
GetInt64
GetInt64 returns the value of the provided key, converted to int64. It the value cannot be represented as an integer, it returns -1.
env.go:65
↓ 2 callers
Method
GetList
GetList returns a list of strings matching the provided key. It handles the list as a JSON representation of a list of strings. If the given key matc
env.go:106
↓ 2 callers
Method
GetPluginPrivilegesWithOptions
GetPluginPrivilegesWithOptions returns pluginPrivileges or an error. See https://goo.gl/C4t7Tz for more details.
plugin.go:231
↓ 2 callers
Method
Info
Info returns system-wide information about the Docker server. See https://goo.gl/ElTHi2 for more details.
misc.go:180
↓ 2 callers
Method
InspectImage
InspectImage returns an image by its name or ID. See https://goo.gl/ncLTG8 for more details.
image.go:204
↓ 2 callers
Method
IsTerminal
()
client.go:666
↓ 2 callers
Method
ListFilteredPlugins
ListFilteredPlugins returns pluginDetails or an error. See https://goo.gl/rmdmWg for more details.
plugin.go:192
↓ 2 callers
Method
MutateContainer
MutateContainer changes the state of a container, returning an error if the given id does not match to any container "running" in the server.
testing/server.go:289
↓ 2 callers
Function
NewAuthConfigurationsFromFile
NewAuthConfigurationsFromFile returns AuthConfigurations from a path containing JSON in the same format as the .dockercfg file.
auth.go:99
↓ 2 callers
Function
NewClientFromEnv
NewClientFromEnv returns a Client instance ready for communication created from Docker's default logic for the environment variables DOCKER_HOST, DOCK
client.go:268
↓ 2 callers
Function
NewTLSClient
NewTLSClient returns a Client instance ready for TLS communications with the givens server endpoint, key and certificates . It will use the latest rem
client.go:174
↓ 2 callers
Function
NewVersionedTLSClientFromBytes
NewVersionedTLSClientFromBytes returns a Client instance ready for TLS communications with the givens server endpoint, key and certificates (passed in
client.go:306
↓ 2 callers
Method
PauseContainer
PauseContainer pauses the given container. See https://goo.gl/D1Yaii for more details.
container_pause.go:12
↓ 2 callers
Method
Port
Port returns the number of the port.
container.go:65
↓ 2 callers
Method
PortMappingAPI
PortMappingAPI translates the port mappings as contained in NetworkSettings into the format in which they would appear when returned by the API
container.go:215
↓ 2 callers
Method
PrepareExec
PrepareExec adds a callback to a container exec in the fake server. This function will be called whenever the given exec id is started, and the given
testing/server.go:239
↓ 2 callers
Method
PrepareFailure
PrepareFailure adds a new expected failure based on a URL regexp it receives an id for the failure.
testing/server.go:254
↓ 2 callers
Method
PrepareStats
PrepareStats adds a callback that will be called for each container stats call. This callback function will be called multiple times if stream is set
testing/server.go:248
↓ 2 callers
Method
Proto
Proto returns the name of the protocol.
container.go:70
↓ 2 callers
Method
Read
(data []byte)
client.go:678
↓ 2 callers
Method
RemoveImage
RemoveImage removes an image by its name or ID. See https://goo.gl/Vd2Pck for more details.
image.go:160
↓ 2 callers
Method
RemovePlugin
RemovePlugin returns a PluginDetail or an error. See https://goo.gl/C4t7Tz for more details.
plugin.go:289
↓ 2 callers
Method
RemoveVolumeWithOptions
RemoveVolumeWithOptions removes a volume by its name and takes extra parameters. See https://goo.gl/nvd6qj for more details.
volume.go:144
↓ 2 callers
Method
RestartContainer
RestartContainer stops a container, killing it after the given timeout (in seconds), during the stop process. See https://goo.gl/MrAKQ5 for more deta
container_restart.go:52
↓ 2 callers
Method
SetAuto
SetAuto will try to define the Set* method to call based on the given value.
env.go:145
↓ 2 callers
Method
SetInt64
SetInt64 defines an integer (64-bit wide) value to the given key.
env.go:75
↓ 2 callers
Method
StartContainerWithContext
StartContainerWithContext starts a container, returning an error in case of failure. The context can be used to cancel the outstanding start container
container_start.go:31
↓ 2 callers
Method
StartExec
StartExec starts a previously set up exec instance id. If opts.Detach is true, it returns after starting the exec command. Otherwise, it sets up an in
exec.go:103
↓ 2 callers
Method
StopContainerWithContext
StopContainerWithContext stops a container, killing it after the given timeout (in seconds). The context can be used to cancel the stop container requ
container_stop.go:23
↓ 2 callers
Method
TagImage
TagImage adds a tag to the image identified by the given name. See https://goo.gl/prHrvo for more details.
image.go:645
↓ 2 callers
Method
UnpauseContainer
UnpauseContainer unpauses the given container. See https://goo.gl/sZ2faO for more details.
container_unpause.go:12
↓ 2 callers
Method
Version
Version returns version information about the docker server. See https://goo.gl/mU7yje for more details.
misc.go:18
↓ 2 callers
Method
WaitContainerWithContext
WaitContainerWithContext blocks until the given container stops, return the exit code of the container status. The context object can be used to cance
container_wait.go:23
↓ 2 callers
Method
addMuxerRoutes
(m *mux.Router)
testing/server.go:165
↓ 2 callers
Function
buildDockerServer
(listener net.Listener, containerChan chan<- *docker.Container, hook func(*http.Request))
testing/server.go:88
↓ 2 callers
Method
buildImage
(w http.ResponseWriter, r *http.Request)
testing/server.go:957
↓ 2 callers
Method
createImage
(opts any, headers map[string]string, in io.Reader, w io.Writer, rawJSONStream bool, timeout time.Duration, co
image.go:333
↓ 2 callers
Function
defaultClient
defaultClient returns a new http.Client with similar default values to http.Client, but with a non-shared Transport, idle connections disabled, and ke
client.go:1150
↓ 2 callers
Function
defaultTransport
defaultTransport returns a new http.Transport with similar default values to http.DefaultTransport, but with idle connections and keepalives disabled.
client.go:1120
↓ 2 callers
Method
eventHijack
(opts EventsOptions, startTime int64, eventChan chan *APIEvents, errChan chan error)
event.go:353
↓ 2 callers
Method
findImage
(id string)
testing/server.go:440
↓ 2 callers
Method
findVolume
(name string)
testing/server.go:1451
↓ 2 callers
Method
getFakeNativeURL
getFakeNativeURL returns the URL needed to make an HTTP request over a UNIX domain socket to the given path.
client.go:900
↓ 2 callers
Function
getHelperProviderFromDockerCfg
(pathsToTry []string, registry string)
auth.go:329
↓ 2 callers
Method
isEnabled
()
event.go:319
↓ 2 callers
Function
listenerExists
(a chan<- *APIEvents, list *[]chan<- *APIEvents)
event.go:200
↓ 2 callers
Method
merge
merge updates the configuration. If a key is defined in both maps, the one in c.Configs takes precedence.
auth.go:65
↓ 2 callers
Function
newCertificate
(parentDir string, kind string, cert *x509.Certificate, key *ecdsa.PrivateKey)
internal/testutils/tls.go:22
↓ 2 callers
Method
noListeners
()
event.go:313
↓ 2 callers
Function
parseCredsDockerConfig
(config []byte, registry string)
auth.go:348
↓ 2 callers
Method
pathVersionCheck
(basepath, queryStr string, requiredAPIVersion APIVersion)
client.go:880
↓ 2 callers
Method
startContainer
(id string, hostConfig *HostConfig, opts doOptions)
container_start.go:35
↓ 2 callers
Method
stopContainer
(id string, timeout uint, opts doOptions)
container_stop.go:27
↓ 2 callers
Function
testEventListeners
(testName string, t *testing.T, buildServer func(http.Handler) *httptest.Server, buildClient func(string) (*Cl
event_test.go:58
↓ 2 callers
Function
tlsDialWithDialer
(dialer *net.Dialer, network, addr string, config *tls.Config)
tls.go:34
↓ 2 callers
Method
waitContainer
(id string, opts doOptions)
container_wait.go:27
↓ 1 callers
Function
AlwaysRestart
AlwaysRestart returns a restart policy that tells the Docker daemon to always restart the container.
container_restart.go:26
↓ 1 callers
Method
AttachToContainerNonBlocking
AttachToContainerNonBlocking attaches to a container, using the given options. This function does not block. See https://goo.gl/NKpkFk for more detai
container_attach.go:62
↓ 1 callers
Method
AuthCheckWithContext
AuthCheckWithContext validates the given credentials. It returns nil if successful. The context object can be used to cancel the request. For Docker
auth.go:275
↓ 1 callers
Method
Close
()
image_test.go:50
↓ 1 callers
Method
CloseWrite
()
tls.go:23
↓ 1 callers
Method
ConfigurePlugin
ConfigurePlugin configures plugin that opts point or returns an error. See https://goo.gl/C4t7Tz for more details.
plugin.go:433
↓ 1 callers
Method
CreateNetwork
CreateNetwork creates a new network, returning the network instance, or an error in case of failure. See https://goo.gl/6GugX3 for more details.
network.go:162
↓ 1 callers
Method
CreatePlugin
CreatePlugin creates plugin that opts point or returns an error. See https://goo.gl/C4t7Tz for more details.
plugin.go:379
↓ 1 callers
Method
CreateVolume
CreateVolume creates a volume on the server. See https://goo.gl/qEhmEC for more details.
volume.go:87
↓ 1 callers
Method
DisablePlugin
DisablePlugin disables plugin that opts point or returns an error. See https://goo.gl/C4t7Tz for more details.
plugin.go:354
↓ 1 callers
Method
DiskUsage
DiskUsage returns a *DiskUsage describing what docker is using disk on. More Info Here https://dockr.ly/2PNzQyO
system.go:60
↓ 1 callers
Method
DownloadFromContainer
DownloadFromContainer downloads a tar archive of files or folders in a container. See https://goo.gl/W49jxK for more details.
container_archive.go:49
↓ 1 callers
Method
EnablePlugin
EnablePlugin enables plugin that opts point or returns an error. See https://goo.gl/C4t7Tz for more details.
plugin.go:331
↓ 1 callers
Method
Endpoint
Endpoint returns the current endpoint. It's useful for getting the endpoint when using functions that get this data from the environment (like NewClie
client.go:381
↓ 1 callers
Method
ExportImage
ExportImage exports an image (as a tar file) into the stream. See https://goo.gl/AuySaA for more details.
image.go:383
↓ 1 callers
Method
FD
()
client.go:665
↓ 1 callers
Method
FilteredListNetworks
FilteredListNetworks returns all networks with the filters applied See goo.gl/zd2mx4 for more details.
network.go:70
↓ 1 callers
Method
GetBool
GetBool returns a boolean representation of the given key. The key is false whenever its value if 0, no, false, none or an empty string. Any other val
env.go:33
↓ 1 callers
Method
GetInt
GetInt returns the value of the provided key, converted to int. It the value cannot be represented as an integer, it returns -1.
env.go:53
↓ 1 callers
Method
GetPluginPrivileges
GetPluginPrivileges returns pluginPrivileges or an error. See https://goo.gl/C4t7Tz for more details.
plugin.go:211
↓ 1 callers
Method
ImageHistory
ImageHistory returns the history of the image by its name or ID. See https://goo.gl/fYtxQa for more details.
image.go:140
↓ 1 callers
Method
InspectContainerWithContext
InspectContainerWithContext returns information about a container by its ID. The context object can be used to cancel the inspect request. Deprecated
container_inspect.go:21
↓ 1 callers
Method
InspectDistribution
InspectDistribution returns image digest and platform information by contacting the registry
distribution.go:15
↓ 1 callers
Method
InspectPlugins
InspectPlugins returns a pluginDetail or an error. See https://goo.gl/C4t7Tz for more details.
plugin.go:256
↓ 1 callers
Method
InspectVolume
InspectVolume returns a volume by its name. See https://goo.gl/GMjsMc for more details.
volume.go:106
↓ 1 callers
Method
InstallPlugins
InstallPlugins installs a plugin or returns an error in case of failure. See https://goo.gl/C4t7Tz for more details.
plugin.go:38
↓ 1 callers
Method
LessThanOrEqualTo
LessThanOrEqualTo is a function for comparing APIVersion structs.
client.go:101
↓ 1 callers
Method
ListNetworks
ListNetworks returns all networks. See https://goo.gl/6GugX3 for more details.
network.go:50
↓ 1 callers
Method
ListPlugins
ListPlugins returns pluginDetails or an error. See https://goo.gl/C4t7Tz for more details.
plugin.go:166
↓ 1 callers
Method
ListVolumes
ListVolumes returns a list of available volumes in the server. See https://goo.gl/3wgTsd for more details.
volume.go:46
↓ 1 callers
Method
LoadImage
LoadImage imports a tarball docker image See https://goo.gl/rEsBV3 for more details.
image.go:361
↓ 1 callers
Method
NetworkInfo
NetworkInfo returns information about a network by its ID. See https://goo.gl/6GugX3 for more details.
network.go:93
↓ 1 callers
Function
NeverRestart
NeverRestart returns a restart policy that tells the Docker daemon to never restart the container on failures.
container_restart.go:44
↓ 1 callers
Function
NewTLSClientFromBytes
NewTLSClientFromBytes returns a Client instance ready for TLS communications with the givens server endpoint, key and certificates (passed inline to t
client.go:186
↓ 1 callers
Function
NewTLSServer
NewTLSServer creates and starts a TLS-enabled testing server.
testing/server.go:126
↓ 1 callers
Function
ParseRepositoryTag
ParseRepositoryTag gets the name of the repository and returns it splitted in two parts: the repository and the tag. It ignores the digest when it is
misc.go:202
← previous
next →
101–200 of 729, ranked by callers