moby--moby/daemon/cluster
Aaron Lehmann 8a27758364 Hide zero-valued timestamps from service JSON
It was possible to see output like this:

        "UpdateStatus": {
            "State": "updating",
            "StartedAt": "2017-04-14T17:10:03.226607162Z",
            "CompletedAt": "1970-01-01T00:00:00Z",
            "Message": "update in progress"
        }

The timestamp fields were already changed to pointers, and left nil if
the timestamp value was zero. However the zero-value of a timestamp from
gRPC is different from the value Go considers to be zero. gRPC uses the
Unix epoch instead of Go's epoch. Therefore, check that the timestamp
does not match the Unix epoch.

Also, add " ago" to the timestamps as shown in "docker service inspect
--pretty", as they are shown as relative times.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2017-04-14 10:44:24 -07:00
..
controllers/plugin add support for swarmkit generic runtime 2017-04-11 14:02:01 -04:00
convert Hide zero-valued timestamps from service JSON 2017-04-14 10:44:24 -07:00
executor return exec.Controller instead of nil 2017-04-11 14:02:02 -04:00
provider Add engine-api types to docker 2016-09-07 11:05:58 -07:00
cluster.go cluster: Allow reentrant calls to methods during shutdown 2017-04-07 19:21:10 -07:00
filters.go Add support for UpToDate filter, for internal use 2017-03-31 10:01:32 -07:00
filters_test.go make secret ls support filters in CLI 2017-03-27 10:16:45 +08:00
helpers.go Change "service inspect" to show defaults in place of empty fields 2017-04-10 13:41:16 -07:00
listen_addr.go Remove daemon.VXSubnets duplicate code 2017-02-28 10:51:40 +01:00
listen_addr_linux.go Add fallback to resolveSystemAddr() in linux 2016-09-09 13:27:57 -07:00
listen_addr_others.go Add functional support for Docker sub commands on Solaris 2016-11-07 09:06:34 -08:00
listen_addr_solaris.go Add functional support for Docker sub commands on Solaris 2016-11-07 09:06:34 -08:00
networks.go Do not panic on redundant UpdateAttachment 2017-03-27 08:52:03 -07:00
noderunner.go cluster: Allow reentrant calls to methods during shutdown 2017-04-07 19:21:10 -07:00
nodes.go Add a lockedManagerAction method to Cluster… 2017-02-28 11:12:11 +01:00
secrets.go make secret update support name and id prefix 2017-03-07 16:01:21 +08:00
services.go updates for review comments 2017-04-11 14:02:01 -04:00
swarm.go cluster: Allow reentrant calls to methods during shutdown 2017-04-07 19:21:10 -07:00
tasks.go Change "service inspect" to show defaults in place of empty fields 2017-04-10 13:41:16 -07:00
utils.go Rather than remove the swarm directory and re-create, remove the swarm subdirs 2017-03-01 11:56:39 -08:00