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
↓ 204 callers
Method
Error
()
client.go:1037
↓ 160 callers
Function
newTestClient
(rt http.RoundTripper)
image_test.go:23
↓ 130 callers
Method
Close
()
client.go:728
↓ 119 callers
Method
ServeHTTP
ServeHTTP handles HTTP requests sent to the server.
testing/server.go:315
↓ 109 callers
Method
buildMuxer
()
testing/server.go:158
↓ 106 callers
Function
baseDockerServer
()
testing/server.go:74
↓ 97 callers
Method
String
()
change.go:32
↓ 75 callers
Method
Decode
Decode decodes `src` as a json dictionary, and adds each decoded key-value pair to the environment. If `src` cannot be decoded as a json dictionary,
env.go:133
↓ 67 callers
Method
do
(method, path string, doOptions doOptions)
client.go:435
↓ 64 callers
Function
getContainer
(server *DockerServer)
testing/server_test.go:345
↓ 60 callers
Method
Get
Get returns the string value of the given key.
env.go:19
↓ 53 callers
Method
getURL
(path string)
client.go:864
↓ 48 callers
Method
Set
Set defines the value of a key to the given string.
env.go:125
↓ 47 callers
Function
addContainers
(server *DockerServer, n int)
testing/server_test.go:1584
↓ 43 callers
Method
handlerWrapper
(f http.HandlerFunc)
testing/server.go:336
↓ 37 callers
Method
Write
(b []byte)
client_test.go:884
↓ 35 callers
Function
NewClient
NewClient returns a Client instance ready for communication with the given server endpoint. It will use the latest remote API version available in the
client.go:162
↓ 29 callers
Function
queryString
(opts any)
client.go:953
↓ 17 callers
Method
stream
(method, path string, streamOptions streamOptions)
client.go:519
↓ 16 callers
Function
NewAPIVersion
NewAPIVersion returns an instance of APIVersion for the given string. The given string must be in the form <major>.<minor>.<patch>, where <major>, <m
client.go:70
↓ 16 callers
Function
NewServer
NewServer returns a new instance of the fake server, in standalone mode. Use the method URL to get the URL of the server. It receives the bind addres
testing/server.go:108
↓ 16 callers
Function
expectNoSuchContainer
(t *testing.T, id string, err error)
helpers_test.go:12
↓ 16 callers
Method
findContainer
(idOrName string)
testing/server.go:908
↓ 15 callers
Method
Stop
Stop stops the server.
testing/server.go:300
↓ 10 callers
Method
AttachToContainer
AttachToContainer attaches to a container, using the given options. See https://goo.gl/JF10Zk for more details.
container_attach.go:50
↓ 10 callers
Method
BuildImage
BuildImage builds an image from a tarball's url or a Dockerfile in the input stream. See https://goo.gl/4nYHwV for more details.
image.go:541
↓ 9 callers
Method
Dial
(network, address string)
client.go:156
↓ 9 callers
Method
PullImage
PullImage pulls an image from a remote registry, logging progress to opts.OutputStream. See https://goo.gl/qkoSsn for more details.
image.go:316
↓ 8 callers
Method
CreateContainer
CreateContainer creates a new container, returning the container instance, or an error in case of failure. The returned container instance contains o
container_create.go:34
↓ 8 callers
Function
NewAuthConfigurations
NewAuthConfigurations returns AuthConfigurations from a JSON encoded string in the same format as the .dockercfg file.
auth.go:171
↓ 8 callers
Method
addContainer
(container *docker.Container)
testing/server.go:536
↓ 8 callers
Method
checkAPIVersion
()
client.go:361
↓ 7 callers
Method
Logs
Logs gets stdout and stderr logs from the specified container. When LogsOptions.RawTerminal is set to false, go-dockerclient will multiplex the strea
container_logs.go:43
↓ 7 callers
Function
NewVersionedTLSClient
NewVersionedTLSClient returns a Client instance ready for TLS communications with the givens server endpoint, key and certificates, using a specific r
client.go:236
↓ 7 callers
Method
URL
URL returns the HTTP URL of the server.
testing/server.go:307
↓ 7 callers
Method
generateID
()
testing/server.go:543
↓ 6 callers
Method
GreaterThanOrEqualTo
GreaterThanOrEqualTo is a function for comparing APIVersion structs.
client.go:111
↓ 6 callers
Method
InspectContainer
InspectContainer returns information about a container by its ID. Deprecated: Use InspectContainerWithOptions instead.
container_inspect.go:13
↓ 6 callers
Method
StartContainer
StartContainer starts a container, returning an error in case of failure. Passing the HostConfig to this method has been deprecated in Docker API 1.2
container_start.go:17
↓ 6 callers
Method
Wait
()
client.go:719
↓ 6 callers
Function
addImages
(server *DockerServer, n int, repo bool)
testing/server_test.go:1634
↓ 6 callers
Function
headersWithAuth
(auths ...registryAuth)
image.go:673
↓ 6 callers
Function
parseEndpoint
(endpoint string, tls bool)
client.go:1041
↓ 5 callers
Method
CreateExec
CreateExec sets up an exec instance in a running container `id`, returning the exec instance, or an error in case of failure. See https://goo.gl/60Te
exec.go:46
↓ 5 callers
Function
GenCertificate
(t *testing.T)
internal/testutils/tls.go:54
↓ 5 callers
Method
GetJSON
GetJSON unmarshals the value of the provided key in the provided iface. iface is a value that can be provided to the json.Unmarshal function.
env.go:82
↓ 5 callers
Method
GreaterThan
GreaterThan is a function for comparing APIVersion structs.
client.go:106
↓ 5 callers
Method
ImportImage
ImportImage imports an image from a url, a file or stdin See https://goo.gl/qkoSsn for more details.
image.go:458
↓ 5 callers
Method
Ping
Ping pings the docker server See https://goo.gl/wYfgY1 for more details.
client.go:388
↓ 5 callers
Method
PushImage
PushImage pushes an image to a remote registry, logging progress to w. An empty instance of AuthConfiguration may be used for unauthenticated pushes.
image.go:270
↓ 5 callers
Method
String
()
client.go:87
↓ 5 callers
Function
chooseError
(ctx context.Context, err error)
client.go:510
↓ 5 callers
Method
compare
(other APIVersion)
client.go:115
↓ 5 callers
Method
disableEventMonitoring
()
event.go:217
↓ 4 callers
Method
CommitContainer
CommitContainer creates a new image from a container's changes. See https://goo.gl/CzIguf for more details.
container_commit.go:27
↓ 4 callers
Method
Hijack
()
testing/server_test.go:1091
↓ 4 callers
Method
KillContainer
KillContainer sends a signal to a container, returning an error in case of failure. See https://goo.gl/JnTxXZ for more details.
container_kill.go:27
↓ 4 callers
Method
LessThan
LessThan is a function for comparing APIVersion structs.
client.go:96
↓ 4 callers
Method
ListImages
ListImages returns the list of available images in the server. See https://goo.gl/BVzauZ for more details.
image.go:112
↓ 4 callers
Method
Map
Map returns the map representation of the env.
env.go:158
↓ 4 callers
Function
NewVersionedClient
NewVersionedClient returns a Client instance ready for communication with the given server endpoint, using a specific remote API version.
client.go:197
↓ 4 callers
Method
PrepareMultiFailures
PrepareMultiFailures enqueues a new expected failure based on a URL regexp it receives an id for the failure.
testing/server.go:260
↓ 4 callers
Method
RemoveVolume
RemoveVolume removes a volume by its name. Deprecated: Use RemoveVolumeWithOptions instead.
volume.go:126
↓ 4 callers
Method
SetJSON
SetJSON marshals the given value to JSON format and stores it using the provided key.
env.go:92
↓ 4 callers
Method
Stats
Stats sends container statistics for the given container to the given channel. This function is blocking, similar to a streaming call for logs, and s
container_stats.go:174
↓ 4 callers
Method
findContainerWithLock
(idOrName string, shouldLock bool)
testing/server.go:912
↓ 4 callers
Method
findNetwork
(idOrName string)
testing/server.go:1262
↓ 4 callers
Function
newError
(resp *http.Response)
client.go:1020
↓ 4 callers
Function
newNativeServer
(handler http.Handler)
client_unix_test.go:57
↓ 4 callers
Function
queryStringVersion
(opts any)
client.go:914
↓ 4 callers
Method
streamURL
(method, url string, streamOptions streamOptions)
client.go:532
↓ 4 callers
Function
waitExec
(url, execID string, running bool)
testing/server_test.go:2188
↓ 3 callers
Method
AddEventListener
AddEventListener adds a new listener to container events in the Docker API. The parameter is a channel through which events will be sent.
event.go:128
↓ 3 callers
Method
AuthCheck
AuthCheck validates the given credentials. It returns nil if successful. For Docker API versions >= 1.23, the AuthStatus struct will be populated, ot
auth.go:265
↓ 3 callers
Method
ConnectNetwork
ConnectNetwork adds a container to a network or returns an error in case of failure. See https://goo.gl/6GugX3 for more details.
network.go:259
↓ 3 callers
Method
ContainerChanges
ContainerChanges returns changes in the filesystem of the given container. See https://goo.gl/15KKzh for more details.
container_changes.go:12
↓ 3 callers
Method
CopyFromContainer
CopyFromContainer copies files from a container. Deprecated: Use DownloadFromContainer and DownloadFromContainer instead.
container_copy.go:25
↓ 3 callers
Method
ExportContainer
ExportContainer export the contents of container id as tar archive and prints the exported contents to stdout. See https://goo.gl/yGJCIh for more det
container_export.go:26
↓ 3 callers
Method
ExportImages
ExportImages exports one or more images (as a tar file) into the stream See https://goo.gl/N9XlDn for more details.
image.go:405
↓ 3 callers
Method
HijackBuffer
()
testing/server_test.go:1101
↓ 3 callers
Method
InspectContainerWithOptions
InspectContainerWithOptions returns information about a container by its ID. See https://goo.gl/FaI5JT for more details.
container_inspect.go:28
↓ 3 callers
Method
InspectExec
InspectExec returns low-level information about the exec command id. See https://goo.gl/ctMUiW for more details
exec.go:199
↓ 3 callers
Method
ListContainers
ListContainers returns a slice of containers matching the given criteria. See https://goo.gl/kaOHGw for more details.
container_list.go:25
↓ 3 callers
Function
NewVersionedClientFromEnv
NewVersionedClientFromEnv returns a Client instance ready for TLS communications created from Docker's default logic for the environment variables DOC
client.go:284
↓ 3 callers
Method
RemoveContainer
RemoveContainer removes a container, returning an error in case of failure. See https://goo.gl/hL5IPC for more details.
container_remove.go:29
↓ 3 callers
Method
RemoveEventListener
RemoveEventListener removes a listener from the monitor.
event.go:148
↓ 3 callers
Method
Reset
()
client_test.go:907
↓ 3 callers
Method
StateString
StateString returns a single string to describe state
container.go:143
↓ 3 callers
Method
StopContainer
StopContainer stops a container, killing it after the given timeout (in seconds). See https://goo.gl/R9dZcV for more details.
container_stop.go:14
↓ 3 callers
Method
TopContainer
TopContainer returns processes running inside a container See https://goo.gl/FLwpPl for more details.
container_top.go:22
↓ 3 callers
Method
WaitContainer
WaitContainer blocks until the given container stops, return the exit code of the container status. See https://goo.gl/4AGweZ for more details.
container_wait.go:14
↓ 3 callers
Function
addNetworks
(server *DockerServer, n int)
testing/server_test.go:2290
↓ 3 callers
Function
cfgPaths
(dockerConfigEnv string, homeEnv string)
auth.go:107
↓ 3 callers
Method
getExec
(id string, copy bool)
testing/server.go:1247
↓ 3 callers
Method
getPath
(basepath string, opts any)
client.go:875
↓ 3 callers
Method
hijack
(method, path string, hijackOptions hijackOptions)
client.go:730
↓ 3 callers
Method
initializeNativeClient
initializeNativeClient initializes the native Unix domain socket client on Unix-style operating systems
client_unix.go:19
↓ 3 callers
Function
isURL
(u string)
image.go:665
↓ 3 callers
Function
newAuthConfigurationsFromDockerCfg
(pathsToTry []string)
auth.go:146
↓ 3 callers
Function
newTLSClient
(endpoint string)
client_test.go:55
next →
1–100 of 729, ranked by callers