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:
4
cmd/dist/fetch.go
vendored
4
cmd/dist/fetch.go
vendored
@@ -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
2
cmd/dist/list.go
vendored
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user