(ctx context.Context, apiClient client.NetworkAPIClient, output io.Writer, opts inspectOptions)
| 44 | } |
| 45 | |
| 46 | func runInspect(ctx context.Context, apiClient client.NetworkAPIClient, output io.Writer, opts inspectOptions) error { |
| 47 | return inspect.Inspect(output, opts.names, opts.format, func(name string) (any, []byte, error) { |
| 48 | res, err := apiClient.NetworkInspect(ctx, name, client.NetworkInspectOptions{Verbose: opts.verbose}) |
| 49 | if err != nil { |
| 50 | return nil, nil, err |
| 51 | } |
| 52 | return res.Network, res.Raw, nil |
| 53 | }) |
| 54 | } |
no test coverage detected
searching dependent graphs…