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

Function inspectNetwork

cli/command/system/inspect.go:121–126  ·  view source on GitHub ↗
(ctx context.Context, dockerCli command.Cli)

Source from the content-addressed store, hash-verified

119}
120
121func inspectNetwork(ctx context.Context, dockerCli command.Cli) inspect.GetRefFunc {
122 return func(ref string) (any, []byte, error) {
123 res, err := dockerCli.Client().NetworkInspect(ctx, ref, client.NetworkInspectOptions{})
124 return res.Network, res.Raw, err
125 }
126}
127
128func inspectNode(ctx context.Context, dockerCli command.Cli) inspect.GetRefFunc {
129 return func(ref string) (any, []byte, error) {

Callers 1

inspectAllFunction · 0.85

Calls 2

ClientMethod · 0.65
NetworkInspectMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…