MCPcopy Index your code
hub / github.com/docker/cli / isConnected

Function isConnected

cli/command/network/disconnect.go:47–55  ·  view source on GitHub ↗
(network string)

Source from the content-addressed store, hash-verified

45}
46
47func isConnected(network string) func(container.Summary) bool {
48 return func(ctr container.Summary) bool {
49 if ctr.NetworkSettings == nil {
50 return false
51 }
52 _, ok := ctr.NetworkSettings.Networks[network]
53 return ok
54 }
55}
56
57func not(fn func(container.Summary) bool) func(container.Summary) bool {
58 return func(ctr container.Summary) bool {

Callers 2

newDisconnectCommandFunction · 0.85
newConnectCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…