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

Function inspectNode

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

Source from the content-addressed store, hash-verified

126}
127
128func inspectNode(ctx context.Context, dockerCli command.Cli) inspect.GetRefFunc {
129 return func(ref string) (any, []byte, error) {
130 res, err := dockerCli.Client().NodeInspect(ctx, ref, client.NodeInspectOptions{})
131 return res.Node, res.Raw, err
132 }
133}
134
135func inspectService(ctx context.Context, dockerCli command.Cli) inspect.GetRefFunc {
136 return func(ref string) (any, []byte, error) {

Callers 1

inspectAllFunction · 0.85

Calls 2

ClientMethod · 0.65
NodeInspectMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…