1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/cli/command/formatter
Aaron Lehmann 0e70d96a68 api: Hide UpdateStatus when it is not present
When UpdateStatus was not present, the empty values of the timestamps
would be present:

        "UpdateStatus": {
            "StartedAt": "0001-01-01T00:00:00Z",
            "CompletedAt": "0001-01-01T00:00:00Z"
        }

To fix this, make the timestamps pointers, so they can be set to nil
when they should not be shown.

Also make UpdateStatus itself a pointer, so an empty object does not
show up when there is no UpdateStatus.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2016-12-01 15:08:41 -08:00
..
container.go Add Networks placeholder to ps --format 2016-10-20 07:41:56 -07:00
container_test.go Fix several issues with go vet and go fmt 2016-11-17 06:31:28 -08:00
custom.go Refactor formatter. 2016-09-13 17:58:12 -04:00
custom_test.go Move api/client -> cli/command 2016-09-08 15:46:29 -04:00
disk_usage.go Generate api/types:Image from the swagger spec 2016-10-20 13:24:23 -07:00
formatter.go Add formatter for service inspect 2016-09-19 16:28:19 -04:00
image.go Generate api/types:Image from the swagger spec 2016-10-20 13:24:23 -07:00
image_test.go Generate api/types:Image from the swagger spec 2016-10-20 13:24:23 -07:00
network.go Fix broken JSON support in cli/command/formatter 2016-10-17 08:07:17 +00:00
network_test.go Fix broken JSON support in cli/command/formatter 2016-10-17 08:07:17 +00:00
reflect.go Fix broken JSON support in cli/command/formatter 2016-10-17 08:07:17 +00:00
reflect_test.go Fix broken JSON support in cli/command/formatter 2016-10-17 08:07:17 +00:00
service.go api: Hide UpdateStatus when it is not present 2016-12-01 15:08:41 -08:00
stats.go Add support for Names and ID in stats format 2016-11-03 07:20:46 +01:00
stats_test.go Add support for Names and ID in stats format 2016-11-03 07:20:46 +01:00
volume.go Merge pull request #26519 from AkihiroSuda/fix-cli-command-formatter-json-support 2016-10-17 22:44:04 +01:00
volume_test.go Merge pull request #26519 from AkihiroSuda/fix-cli-command-formatter-json-support 2016-10-17 22:44:04 +01:00