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
No known key found for this signature in database
GPG Key ID: F58C5D0A4405ACDB
9 changed files with 108 additions and 108 deletions

View File

@ -111,8 +111,8 @@ type Info struct {
Digest github_com_opencontainers_go_digest.Digest `protobuf:"bytes,1,opt,name=digest,proto3,customtype=github.com/opencontainers/go-digest.Digest" json:"digest"` Digest github_com_opencontainers_go_digest.Digest `protobuf:"bytes,1,opt,name=digest,proto3,customtype=github.com/opencontainers/go-digest.Digest" json:"digest"`
// Size is the total number of bytes in the blob. // Size is the total number of bytes in the blob.
Size_ int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` Size_ int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
// CommittedAt provides the time at which the blob was committed. // CreatedAt provides the time at which the blob was committed.
CommittedAt time.Time `protobuf:"bytes,3,opt,name=committed_at,json=committedAt,stdtime" json:"committed_at"` CreatedAt time.Time `protobuf:"bytes,3,opt,name=created_at,json=createdAt,stdtime" json:"created_at"`
// UpdatedAt provides the time the info was last updated. // UpdatedAt provides the time the info was last updated.
UpdatedAt time.Time `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,stdtime" json:"updated_at"` UpdatedAt time.Time `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,stdtime" json:"updated_at"`
// Labels are arbitrary data on content. // Labels are arbitrary data on content.
@ -144,7 +144,7 @@ type UpdateRequest struct {
// UpdateMask specifies which fields to perform the update on. If empty, // UpdateMask specifies which fields to perform the update on. If empty,
// the operation applies to all fields. // the operation applies to all fields.
// //
// In info, Digest, Size, and CommittedAt are immutable, // In info, Digest, Size, and CreatedAt are immutable,
// other field may be updated using this mask. // other field may be updated using this mask.
// If no mask is provided, all mutable field are updated. // If no mask is provided, all mutable field are updated.
UpdateMask *google_protobuf1.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask" json:"update_mask,omitempty"` UpdateMask *google_protobuf1.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask" json:"update_mask,omitempty"`
@ -930,8 +930,8 @@ func (m *Info) MarshalTo(dAtA []byte) (int, error) {
} }
dAtA[i] = 0x1a dAtA[i] = 0x1a
i++ i++
i = encodeVarintContent(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.CommittedAt))) i = encodeVarintContent(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.CreatedAt)))
n1, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.CommittedAt, dAtA[i:]) n1, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.CreatedAt, dAtA[i:])
if err != nil { if err != nil {
return 0, err return 0, err
} }
@ -1564,7 +1564,7 @@ func (m *Info) Size() (n int) {
if m.Size_ != 0 { if m.Size_ != 0 {
n += 1 + sovContent(uint64(m.Size_)) n += 1 + sovContent(uint64(m.Size_))
} }
l = github_com_gogo_protobuf_types.SizeOfStdTime(m.CommittedAt) l = github_com_gogo_protobuf_types.SizeOfStdTime(m.CreatedAt)
n += 1 + l + sovContent(uint64(l)) n += 1 + l + sovContent(uint64(l))
l = github_com_gogo_protobuf_types.SizeOfStdTime(m.UpdatedAt) l = github_com_gogo_protobuf_types.SizeOfStdTime(m.UpdatedAt)
n += 1 + l + sovContent(uint64(l)) n += 1 + l + sovContent(uint64(l))
@ -1838,7 +1838,7 @@ func (this *Info) String() string {
s := strings.Join([]string{`&Info{`, s := strings.Join([]string{`&Info{`,
`Digest:` + fmt.Sprintf("%v", this.Digest) + `,`, `Digest:` + fmt.Sprintf("%v", this.Digest) + `,`,
`Size_:` + fmt.Sprintf("%v", this.Size_) + `,`, `Size_:` + fmt.Sprintf("%v", this.Size_) + `,`,
`CommittedAt:` + strings.Replace(strings.Replace(this.CommittedAt.String(), "Timestamp", "google_protobuf2.Timestamp", 1), `&`, ``, 1) + `,`, `CreatedAt:` + strings.Replace(strings.Replace(this.CreatedAt.String(), "Timestamp", "google_protobuf2.Timestamp", 1), `&`, ``, 1) + `,`,
`UpdatedAt:` + strings.Replace(strings.Replace(this.UpdatedAt.String(), "Timestamp", "google_protobuf2.Timestamp", 1), `&`, ``, 1) + `,`, `UpdatedAt:` + strings.Replace(strings.Replace(this.UpdatedAt.String(), "Timestamp", "google_protobuf2.Timestamp", 1), `&`, ``, 1) + `,`,
`Labels:` + mapStringForLabels + `,`, `Labels:` + mapStringForLabels + `,`,
`}`, `}`,
@ -2121,7 +2121,7 @@ func (m *Info) Unmarshal(dAtA []byte) error {
} }
case 3: case 3:
if wireType != 2 { if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field CommittedAt", wireType) return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType)
} }
var msglen int var msglen int
for shift := uint(0); ; shift += 7 { for shift := uint(0); ; shift += 7 {
@ -2145,7 +2145,7 @@ func (m *Info) Unmarshal(dAtA []byte) error {
if postIndex > l { if postIndex > l {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.CommittedAt, dAtA[iNdEx:postIndex]); err != nil { if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.CreatedAt, dAtA[iNdEx:postIndex]); err != nil {
return err return err
} }
iNdEx = postIndex iNdEx = postIndex
@ -4233,72 +4233,72 @@ func init() {
} }
var fileDescriptorContent = []byte{ var fileDescriptorContent = []byte{
// 1067 bytes of a gzipped FileDescriptorProto // 1065 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0x4f, 0x6f, 0x1a, 0x47, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0x4f, 0x6f, 0x1b, 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, 0xf4, 0xf7, 0x59, 0x0e, 0x9d, 0xe7, 0xd0, 0xe9, 0x79, 0x0e, 0xfd, 0x7e, 0x9e, 0x43, 0x7f, 0x9d, 0xe7, 0xd0, 0xb3, 0x4f,
0x3d, 0xf9, 0x64, 0xd9, 0xff, 0xad, 0xb7, 0x25, 0x59, 0x53, 0xb9, 0xae, 0xed, 0xff, 0x02, 0x00, 0x96, 0xfd, 0x9f, 0xf5, 0xae, 0x14, 0x6b, 0x2a, 0x7f, 0x6b, 0xfb, 0xdf, 0x00, 0x00, 0x00, 0xff,
0x00, 0xff, 0xff, 0x63, 0x60, 0xb3, 0x49, 0x02, 0x0f, 0x00, 0x00, 0xff, 0x28, 0x28, 0x53, 0x76, 0xfe, 0x0e, 0x00, 0x00,
} }

View File

@ -81,8 +81,8 @@ message Info {
// Size is the total number of bytes in the blob. // Size is the total number of bytes in the blob.
int64 size = 2; int64 size = 2;
// CommittedAt provides the time at which the blob was committed. // CreatedAt provides the time at which the blob was committed.
google.protobuf.Timestamp committed_at = 3 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false]; google.protobuf.Timestamp created_at = 3 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
// UpdatedAt provides the time the info was last updated. // UpdatedAt provides the time the info was last updated.
google.protobuf.Timestamp updated_at = 4 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false]; google.protobuf.Timestamp updated_at = 4 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
@ -105,7 +105,7 @@ message UpdateRequest {
// UpdateMask specifies which fields to perform the update on. If empty, // UpdateMask specifies which fields to perform the update on. If empty,
// the operation applies to all fields. // the operation applies to all fields.
// //
// In info, Digest, Size, and CommittedAt are immutable, // In info, Digest, Size, and CreatedAt are immutable,
// other field may be updated using this mask. // other field may be updated using this mask.
// If no mask is provided, all mutable field are updated. // If no mask is provided, all mutable field are updated.
google.protobuf.FieldMask update_mask = 2; google.protobuf.FieldMask update_mask = 2;

4
cmd/dist/fetch.go vendored
View File

@ -163,13 +163,13 @@ outer:
Status: "waiting", Status: "waiting",
} }
} }
} else if info.CommittedAt.After(start) { } else if info.CreatedAt.After(start) {
statuses[key] = statusInfo{ statuses[key] = statusInfo{
Ref: key, Ref: key,
Status: "done", Status: "done",
Offset: info.Size, Offset: info.Size,
Total: info.Size, Total: info.Size,
UpdatedAt: info.CommittedAt, UpdatedAt: info.CreatedAt,
} }
} else { } else {
statuses[key] = statusInfo{ 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", fmt.Fprintf(tw, "%s\t%s\t%s\t%s\n",
info.Digest, info.Digest,
units.HumanSize(float64(info.Size)), units.HumanSize(float64(info.Size)),
units.HumanDuration(time.Since(info.CommittedAt)), units.HumanDuration(time.Since(info.CreatedAt)),
labels) labels)
return nil return nil
} }

View File

@ -31,7 +31,7 @@ type Ingester interface {
type Info struct { type Info struct {
Digest digest.Digest Digest digest.Digest
Size int64 Size int64
CommittedAt time.Time CreatedAt time.Time
UpdatedAt time.Time UpdatedAt time.Time
Labels map[string]string Labels map[string]string
} }

View File

@ -54,7 +54,7 @@ func (s *store) info(dgst digest.Digest, fi os.FileInfo) Info {
return Info{ return Info{
Digest: dgst, Digest: dgst,
Size: fi.Size(), Size: fi.Size(),
CommittedAt: fi.ModTime(), CreatedAt: fi.ModTime(),
UpdatedAt: fi.ModTime(), UpdatedAt: fi.ModTime(),
} }
} }

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 { 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 return err
} }
@ -452,7 +452,7 @@ func readInfo(info *content.Info, bkt *bolt.Bucket) error {
} }
func writeInfo(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 return err
} }

View File

@ -113,7 +113,7 @@ func (s *Service) List(req *api.ListContentRequest, session api.Content_ListServ
buffer = append(buffer, api.Info{ buffer = append(buffer, api.Info{
Digest: info.Digest, Digest: info.Digest,
Size_: info.Size, Size_: info.Size,
CommittedAt: info.CommittedAt, CreatedAt: info.CreatedAt,
Labels: info.Labels, Labels: info.Labels,
}) })

View File

@ -195,7 +195,7 @@ func infoToGRPC(info content.Info) contentapi.Info {
return contentapi.Info{ return contentapi.Info{
Digest: info.Digest, Digest: info.Digest,
Size_: info.Size, Size_: info.Size,
CommittedAt: info.CommittedAt, CreatedAt: info.CreatedAt,
UpdatedAt: info.UpdatedAt, UpdatedAt: info.UpdatedAt,
Labels: info.Labels, Labels: info.Labels,
} }
@ -205,7 +205,7 @@ func infoFromGRPC(info contentapi.Info) content.Info {
return content.Info{ return content.Info{
Digest: info.Digest, Digest: info.Digest,
Size: info.Size_, Size: info.Size_,
CommittedAt: info.CommittedAt, CreatedAt: info.CreatedAt,
UpdatedAt: info.UpdatedAt, UpdatedAt: info.UpdatedAt,
Labels: info.Labels, Labels: info.Labels,
} }