From 1e7bb038e21a8f40e1b590f7cad05939c41a6c60 Mon Sep 17 00:00:00 2001 From: Hui Zhu Date: Thu, 24 Jan 2019 20:40:29 +0800 Subject: [PATCH] vendor: add github.com/golang/protobuf/ptypes/empty/ VM cache need github.com/golang/protobuf/ptypes/empty/. Fixes: #52 Signed-off-by: Hui Zhu --- Gopkg.lock | 5 +- Gopkg.toml | 4 ++ .../golang/protobuf/ptypes/empty/empty.pb.go | 66 +++++++++++++++++++ 3 files changed, 74 insertions(+), 1 deletion(-) create mode 100644 vendor/github.com/golang/protobuf/ptypes/empty/empty.pb.go diff --git a/Gopkg.lock b/Gopkg.lock index d36d090841..3f5852e662 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -347,13 +347,14 @@ revision = "342cbe0a04158f6dcb03ca0079991a51a4248c02" [[projects]] - digest = "1:d470faddd8d4b027226f9a5ff9d88962c34bb1699dde2acd7e9bfb70a3703d45" + digest = "1:43760d01823ba098702f773fbede110df0cd6d8b7677296375c4f01c967620d1" name = "github.com/golang/protobuf" packages = [ "proto", "ptypes", "ptypes/any", "ptypes/duration", + "ptypes/empty", "ptypes/timestamp", ] pruneopts = "NUT" @@ -708,6 +709,8 @@ "github.com/go-openapi/strfmt", "github.com/gogo/protobuf/proto", "github.com/gogo/protobuf/types", + "github.com/golang/protobuf/proto", + "github.com/golang/protobuf/ptypes/empty", "github.com/intel/govmm/qemu", "github.com/kata-containers/agent/pkg/types", "github.com/kata-containers/agent/protocols/client", diff --git a/Gopkg.toml b/Gopkg.toml index 4af6a00602..397d6a23b8 100644 --- a/Gopkg.toml +++ b/Gopkg.toml @@ -86,3 +86,7 @@ [[constraint]] branch = "master" name = "github.com/containerd/cgroups" + +[[constraint]] + name = "github.com/golang/protobuf" + version = "1.0.0" diff --git a/vendor/github.com/golang/protobuf/ptypes/empty/empty.pb.go b/vendor/github.com/golang/protobuf/ptypes/empty/empty.pb.go new file mode 100644 index 0000000000..e877b72c3f --- /dev/null +++ b/vendor/github.com/golang/protobuf/ptypes/empty/empty.pb.go @@ -0,0 +1,66 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/protobuf/empty.proto + +/* +Package empty is a generated protocol buffer package. + +It is generated from these files: + google/protobuf/empty.proto + +It has these top-level messages: + Empty +*/ +package empty + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// A generic empty message that you can re-use to avoid defining duplicated +// empty messages in your APIs. A typical example is to use it as the request +// or the response type of an API method. For instance: +// +// service Foo { +// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); +// } +// +// The JSON representation for `Empty` is empty JSON object `{}`. +type Empty struct { +} + +func (m *Empty) Reset() { *m = Empty{} } +func (m *Empty) String() string { return proto.CompactTextString(m) } +func (*Empty) ProtoMessage() {} +func (*Empty) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } +func (*Empty) XXX_WellKnownType() string { return "Empty" } + +func init() { + proto.RegisterType((*Empty)(nil), "google.protobuf.Empty") +} + +func init() { proto.RegisterFile("google/protobuf/empty.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 148 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4e, 0xcf, 0xcf, 0x4f, + 0xcf, 0x49, 0xd5, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0x4f, 0x2a, 0x4d, 0xd3, 0x4f, 0xcd, 0x2d, 0x28, + 0xa9, 0xd4, 0x03, 0x73, 0x85, 0xf8, 0x21, 0x92, 0x7a, 0x30, 0x49, 0x25, 0x76, 0x2e, 0x56, 0x57, + 0x90, 0xbc, 0x53, 0x19, 0x97, 0x70, 0x72, 0x7e, 0xae, 0x1e, 0x9a, 0xbc, 0x13, 0x17, 0x58, 0x36, + 0x00, 0xc4, 0x0d, 0x60, 0x8c, 0x52, 0x4f, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, + 0xd5, 0x4f, 0xcf, 0xcf, 0x49, 0xcc, 0x4b, 0x47, 0x58, 0x53, 0x50, 0x52, 0x59, 0x90, 0x5a, 0x0c, + 0xb1, 0xed, 0x07, 0x23, 0xe3, 0x22, 0x26, 0x66, 0xf7, 0x00, 0xa7, 0x55, 0x4c, 0x72, 0xee, 0x10, + 0x13, 0x03, 0xa0, 0xea, 0xf4, 0xc2, 0x53, 0x73, 0x72, 0xbc, 0xf3, 0xf2, 0xcb, 0xf3, 0x42, 0x40, + 0xea, 0x93, 0xd8, 0xc0, 0x06, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x64, 0xd4, 0xb3, 0xa6, + 0xb7, 0x00, 0x00, 0x00, +}