api/execution: use Empty well-known type

Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
Stephen J Day 2016-12-02 16:04:13 -08:00
parent 35822784c5
commit d9a2f40463
No known key found for this signature in database
GPG key ID: FB5F6B2905D7ECF3
7 changed files with 118 additions and 441 deletions

View file

@ -7,7 +7,6 @@
It is generated from these files:
execution.proto
empty.proto
container.proto
It has these top-level messages:
@ -17,7 +16,6 @@
DeleteContainerResponse
ListContainersRequest
ListContainersResponse
Empty
CreateProcessRequest
CreateProcessResponse
Container
@ -42,6 +40,7 @@ package execution
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
import google_protobuf "github.com/golang/protobuf/ptypes/empty"
import _ "github.com/gogo/protobuf/gogoproto"
import strings "strings"
@ -233,7 +232,7 @@ const _ = grpc.SupportPackageIsVersion4
type ExecutionServiceClient interface {
Create(ctx context.Context, in *CreateContainerRequest, opts ...grpc.CallOption) (*CreateContainerResponse, error)
Delete(ctx context.Context, in *DeleteContainerRequest, opts ...grpc.CallOption) (*Empty, error)
Delete(ctx context.Context, in *DeleteContainerRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
List(ctx context.Context, in *ListContainersRequest, opts ...grpc.CallOption) (*ListContainersResponse, error)
}
@ -254,8 +253,8 @@ func (c *executionServiceClient) Create(ctx context.Context, in *CreateContainer
return out, nil
}
func (c *executionServiceClient) Delete(ctx context.Context, in *DeleteContainerRequest, opts ...grpc.CallOption) (*Empty, error) {
out := new(Empty)
func (c *executionServiceClient) Delete(ctx context.Context, in *DeleteContainerRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error) {
out := new(google_protobuf.Empty)
err := grpc.Invoke(ctx, "/containerd.v1.ExecutionService/Delete", in, out, c.cc, opts...)
if err != nil {
return nil, err
@ -276,7 +275,7 @@ func (c *executionServiceClient) List(ctx context.Context, in *ListContainersReq
type ExecutionServiceServer interface {
Create(context.Context, *CreateContainerRequest) (*CreateContainerResponse, error)
Delete(context.Context, *DeleteContainerRequest) (*Empty, error)
Delete(context.Context, *DeleteContainerRequest) (*google_protobuf.Empty, error)
List(context.Context, *ListContainersRequest) (*ListContainersResponse, error)
}
@ -1402,30 +1401,31 @@ var (
func init() { proto.RegisterFile("execution.proto", fileDescriptorExecution) }
var fileDescriptorExecution = []byte{
// 397 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x8c, 0x52, 0xcd, 0xce, 0xd2, 0x40,
0x14, 0x65, 0x0a, 0x34, 0xe1, 0x12, 0x83, 0x99, 0xd4, 0x52, 0x1b, 0x53, 0x4c, 0x23, 0xc6, 0x8d,
0x55, 0x31, 0x31, 0xae, 0xf9, 0x59, 0x98, 0xb8, 0xd0, 0xb2, 0x70, 0x69, 0x0a, 0xbd, 0x81, 0x26,
0xd8, 0xa9, 0x33, 0x53, 0xd4, 0x9d, 0x3b, 0x1f, 0xc1, 0x57, 0x62, 0xe9, 0xd2, 0x95, 0x91, 0x3e,
0x81, 0x8f, 0x60, 0xda, 0x29, 0xe5, 0xfb, 0x0a, 0xf9, 0xf8, 0x76, 0x73, 0xcf, 0x3d, 0xf7, 0xe6,
0x9c, 0x33, 0x17, 0x7a, 0xf8, 0x15, 0x97, 0xa9, 0x8c, 0x58, 0xec, 0x25, 0x9c, 0x49, 0x46, 0xef,
0x2c, 0x59, 0x2c, 0x83, 0x28, 0x46, 0x1e, 0x7a, 0xdb, 0x17, 0x76, 0xaf, 0x2a, 0x55, 0xdf, 0xee,
0xe2, 0xa7, 0x44, 0x7e, 0x2b, 0x0b, 0x63, 0xc5, 0x56, 0xac, 0x78, 0x3e, 0xcb, 0x5f, 0x0a, 0x75,
0x7f, 0x12, 0x30, 0x27, 0x1c, 0x03, 0x89, 0x93, 0xc3, 0xb0, 0x8f, 0x9f, 0x53, 0x14, 0x92, 0x9a,
0xa0, 0x45, 0xa1, 0x45, 0x1e, 0x92, 0x27, 0x9d, 0xb1, 0x9e, 0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, 0x83, 0xa0, 0x8f, 0x6a, 0xdd, 0xb3, 0x61, 0xda, 0xc3, 0x0b, 0x2c, 0xa5,
0x6d, 0xfc, 0x60, 0xb7, 0x77, 0x1a, 0xbf, 0xf7, 0x4e, 0xe3, 0xdf, 0xde, 0x21, 0xdf, 0x33, 0x87,
0xec, 0x32, 0x87, 0xfc, 0xca, 0x1c, 0xf2, 0x37, 0x73, 0xc8, 0x42, 0x2f, 0x6e, 0xfd, 0xe5, 0xff,
0x00, 0x00, 0x00, 0xff, 0xff, 0xc6, 0x6c, 0x5b, 0x5b, 0x41, 0x03, 0x00, 0x00,
// 413 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x8c, 0x52, 0x4d, 0xab, 0xd3, 0x40,
0x14, 0x7d, 0x93, 0xf7, 0x1a, 0x78, 0xf7, 0x21, 0x95, 0xa1, 0xa6, 0x31, 0x4a, 0x2a, 0xc1, 0x8a,
0x1b, 0x53, 0xad, 0x20, 0xae, 0xfb, 0x81, 0x08, 0x2e, 0x34, 0x5d, 0xb8, 0x94, 0xb4, 0xb9, 0xa6,
0x81, 0x9a, 0x89, 0x33, 0x93, 0xaa, 0x3b, 0xb7, 0xfe, 0x02, 0xff, 0x52, 0x97, 0x2e, 0x5d, 0x89,
0xcd, 0x2f, 0xf0, 0x27, 0x48, 0x66, 0x92, 0x54, 0xdb, 0x62, 0xdd, 0xcd, 0xbd, 0xf7, 0xdc, 0xc3,
0x39, 0x67, 0x2e, 0xb4, 0xf1, 0x23, 0x2e, 0x72, 0x99, 0xb0, 0xd4, 0xcf, 0x38, 0x93, 0x8c, 0x5e,
0x5b, 0xb0, 0x54, 0x86, 0x49, 0x8a, 0x3c, 0xf2, 0xd7, 0x8f, 0x9c, 0x76, 0x53, 0xea, 0xb9, 0x73,
0x2b, 0x66, 0x2c, 0x5e, 0xe1, 0x40, 0x55, 0xf3, 0xfc, 0xed, 0x00, 0xd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