Rename CommittedAt to CreatedAt in content interface

Use "created at" terminology to be consistent with the rest
of the containerd interfaces.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
Derek McGowan
2017-07-12 16:51:16 -07:00
parent a78d0bdeac
commit 6d032b99f2
9 changed files with 108 additions and 108 deletions

4
cmd/dist/fetch.go vendored
View File

@@ -163,13 +163,13 @@ outer:
Status: "waiting",
}
}
} else if info.CommittedAt.After(start) {
} else if info.CreatedAt.After(start) {
statuses[key] = statusInfo{
Ref: key,
Status: "done",
Offset: info.Size,
Total: info.Size,
UpdatedAt: info.CommittedAt,
UpdatedAt: info.CreatedAt,
}
} else {
statuses[key] = statusInfo{

2
cmd/dist/list.go vendored
View File

@@ -61,7 +61,7 @@ var listCommand = cli.Command{
fmt.Fprintf(tw, "%s\t%s\t%s\t%s\n",
info.Digest,
units.HumanSize(float64(info.Size)),
units.HumanDuration(time.Since(info.CommittedAt)),
units.HumanDuration(time.Since(info.CreatedAt)),
labels)
return nil
}