DockerCLI/cli/command
Sebastiaan van Stijn 5ed6c128e8
cli/command/container: runStats(): don't register unused event handlers
We were unconditionally registering event-handlers for these events, but
the handler itself would ignore the event depending on the "all" option.

This patch skips registering the event handlers, so that we're not handling
them (saving some resources).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-12-20 12:07:56 +01:00
..
builder Plumb contexts through commands 2023-12-12 22:30:16 +01:00
checkpoint Plumb contexts through commands 2023-12-12 22:30:16 +01:00
commands remove exec, push, pull, ps, images, info from "legacy" commands 2022-04-08 16:55:39 +02:00
completion vendor: github.com/docker/docker cdb3f9fb8dca (v25.0.0-dev) 2023-10-13 22:09:04 +02:00
config add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
container cli/command/container: runStats(): don't register unused event handlers 2023-12-20 12:07:56 +01:00
context add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
formatter add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
idresolver add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
image add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
inspect add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
manifest Plumb contexts through commands 2023-12-12 22:30:16 +01:00
network add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
node add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
plugin add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
registry Plumb contexts through commands 2023-12-12 22:30:16 +01:00
secret add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
service add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
stack add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
swarm Plumb contexts through commands 2023-12-12 22:30:16 +01:00
system vendor: github.com/docker/docker 388216fc45ab (v25.0.0-dev) 2023-12-19 20:11:21 +01:00
task linting: address slice-append issues found by gocritic 2023-11-20 16:02:17 +01:00
testdata Dynamically register kubernetes context store endpoint type. 2019-05-20 13:28:11 +01:00
trust add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
volume add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
cli.go add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
cli_options.go Plumb contexts through commands 2023-12-12 22:30:16 +01:00
cli_options_test.go golangci-lint: enable thelper linter 2023-11-20 16:02:17 +01:00
cli_test.go cli/command: initialize client and load content lazily 2022-11-28 16:52:02 +01:00
context.go add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
context_test.go add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
defaultcontextstore.go add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
defaultcontextstore_test.go add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
events_utils.go vendor: github.com/docker/docker 7abd7fa73965 (v25.0.0-dev) 2023-09-05 13:43:35 +02:00
registry.go migrate reference github.com/distribution/reference 2023-09-05 17:53:20 +02:00
registry_test.go cli/command: remove dot-imports and unhandled errors 2023-10-23 15:21:47 +02:00
trust.go Refactor content_trust cli/flags handling 2018-03-08 15:00:43 -05:00
utils.go add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
utils_test.go format go with gofumpt (with -lang=1.19) 2022-09-30 19:14:36 +02:00