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

Function inspectService

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

Source from the content-addressed store, hash-verified

133}
134
135func inspectService(ctx context.Context, dockerCli command.Cli) inspect.GetRefFunc {
136 return func(ref string) (any, []byte, error) {
137 // Service inspect shows defaults values in empty fields.
138 res, err := dockerCli.Client().ServiceInspect(ctx, ref, client.ServiceInspectOptions{InsertDefaults: true})
139 return res.Service, res.Raw, err
140 }
141}
142
143func inspectTasks(ctx context.Context, dockerCli command.Cli) inspect.GetRefFunc {
144 return func(ref string) (any, []byte, error) {

Callers 1

inspectAllFunction · 0.85

Calls 2

ClientMethod · 0.65
ServiceInspectMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…