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

View File

@@ -432,7 +432,7 @@ func (cs *contentStore) checkAccess(ctx context.Context, dgst digest.Digest) err
}
func readInfo(info *content.Info, bkt *bolt.Bucket) error {
if err := readTimestamps(&info.CommittedAt, &info.UpdatedAt, bkt); err != nil {
if err := readTimestamps(&info.CreatedAt, &info.UpdatedAt, bkt); err != nil {
return err
}
@@ -452,7 +452,7 @@ func readInfo(info *content.Info, bkt *bolt.Bucket) error {
}
func writeInfo(info *content.Info, bkt *bolt.Bucket) error {
if err := writeTimestamps(bkt, info.CommittedAt, info.UpdatedAt); err != nil {
if err := writeTimestamps(bkt, info.CreatedAt, info.UpdatedAt); err != nil {
return err
}