DockerCLI/cli/command/system
Sebastiaan van Stijn e9ae9f788b
docker inspect: add support for swarm configs
The docker inspect command did not inspect configs. This patch adds support for
it, and while at it, also sorts the list of objects in runInspect.

Before this patch:

    docker config create myconfig ./codecov.yml
    danpeyh8qzb30vgdj9fr665l1

    docker inspect --format='{{.ID}}' myconfig
    []
    Error: No such object: myconfig

    docker inspect --format='{{.ID}}' --type=config myconfig
    "config" is not a valid value for --type

With this patch:

    docker inspect --format='{{.ID}}' myconfig
    danpeyh8qzb30vgdj9fr665l1

    docker inspect --format='{{.ID}}' --type=config myconfig
    danpeyh8qzb30vgdj9fr665l1

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-10-24 18:32:32 +02:00
..
testdata info: remove printServerWarningsLegacy 2024-01-20 20:45:59 +01:00
client_test.go vendor: github.com/docker/docker a736d0701c41 (master, v27.0.0-dev) 2024-06-10 17:41:09 +02:00
cmd.go Revert "Disable `docker system dial-stdio` on Windows" 2019-03-12 14:57:52 +00:00
df.go Plumb contexts through commands 2023-12-12 22:30:16 +01:00
dial_stdio.go Plumb contexts through commands 2023-12-12 22:30:16 +01:00
events.go vendor: github.com/docker/docker a736d0701c41 (master, v27.0.0-dev) 2024-06-10 17:41:09 +02:00
events_test.go vendor: github.com/docker/docker a736d0701c41 (master, v27.0.0-dev) 2024-06-10 17:41:09 +02:00
info.go info: stop printing "Expected" commits 2024-09-10 13:49:12 +02:00
info_test.go cli: make cli.StatusError slightly prettier 2024-07-04 22:08:18 +02:00
inspect.go docker inspect: add support for swarm configs 2024-10-24 18:32:32 +02:00
prune.go linting: fmt.Errorf can be replaced with errors.New (perfsprint) 2024-06-10 21:19:31 +02:00
prune_test.go test spring-cleaning 2024-07-04 01:35:12 +02:00
version.go Plumb contexts through commands 2023-12-12 22:30:16 +01:00
version_test.go test spring-cleaning 2024-07-04 01:35:12 +02:00