|
|
@@ -1,119 +1,196 @@
|
|
|
-// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
|
-// source: github.com/docker/api/backend/v1/backend.proto
|
|
|
+// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
+// versions:
|
|
|
+// protoc-gen-go v1.21.0
|
|
|
+// protoc v3.11.4
|
|
|
+// source: backend/v1/backend.proto
|
|
|
|
|
|
package v1
|
|
|
|
|
|
import (
|
|
|
context "context"
|
|
|
- fmt "fmt"
|
|
|
- proto "github.com/gogo/protobuf/proto"
|
|
|
- types "github.com/gogo/protobuf/types"
|
|
|
+ proto "github.com/golang/protobuf/proto"
|
|
|
+ empty "github.com/golang/protobuf/ptypes/empty"
|
|
|
grpc "google.golang.org/grpc"
|
|
|
codes "google.golang.org/grpc/codes"
|
|
|
status "google.golang.org/grpc/status"
|
|
|
- math "math"
|
|
|
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
+ reflect "reflect"
|
|
|
+ sync "sync"
|
|
|
)
|
|
|
|
|
|
-// Reference imports to suppress errors if they are not otherwise used.
|
|
|
-var _ = proto.Marshal
|
|
|
-var _ = fmt.Errorf
|
|
|
-var _ = math.Inf
|
|
|
+const (
|
|
|
+ // Verify that this generated code is sufficiently up-to-date.
|
|
|
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
|
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
|
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
+)
|
|
|
|
|
|
-// 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
+// This is a compile-time assertion that a sufficiently up-to-date version
|
|
|
+// of the legacy proto package is being used.
|
|
|
+const _ = proto.ProtoPackageIsVersion4
|
|
|
|
|
|
type BackendInformationResponse struct {
|
|
|
- ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
- XXX_unrecognized []byte `json:"-"`
|
|
|
- XXX_sizecache int32 `json:"-"`
|
|
|
-}
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
-func (m *BackendInformationResponse) Reset() { *m = BackendInformationResponse{} }
|
|
|
-func (m *BackendInformationResponse) String() string { return proto.CompactTextString(m) }
|
|
|
-func (*BackendInformationResponse) ProtoMessage() {}
|
|
|
-func (*BackendInformationResponse) Descriptor() ([]byte, []int) {
|
|
|
- return fileDescriptor_511f43e0e6c515ac, []int{0}
|
|
|
-}
|
|
|
-func (m *BackendInformationResponse) XXX_Unmarshal(b []byte) error {
|
|
|
- return xxx_messageInfo_BackendInformationResponse.Unmarshal(m, b)
|
|
|
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
}
|
|
|
-func (m *BackendInformationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
- return xxx_messageInfo_BackendInformationResponse.Marshal(b, m, deterministic)
|
|
|
-}
|
|
|
-func (m *BackendInformationResponse) XXX_Merge(src proto.Message) {
|
|
|
- xxx_messageInfo_BackendInformationResponse.Merge(m, src)
|
|
|
+
|
|
|
+func (x *BackendInformationResponse) Reset() {
|
|
|
+ *x = BackendInformationResponse{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_backend_v1_backend_proto_msgTypes[0]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
}
|
|
|
-func (m *BackendInformationResponse) XXX_Size() int {
|
|
|
- return xxx_messageInfo_BackendInformationResponse.Size(m)
|
|
|
+
|
|
|
+func (x *BackendInformationResponse) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
}
|
|
|
-func (m *BackendInformationResponse) XXX_DiscardUnknown() {
|
|
|
- xxx_messageInfo_BackendInformationResponse.DiscardUnknown(m)
|
|
|
+
|
|
|
+func (*BackendInformationResponse) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *BackendInformationResponse) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_backend_v1_backend_proto_msgTypes[0]
|
|
|
+ if protoimpl.UnsafeEnabled && x != nil {
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ if ms.LoadMessageInfo() == nil {
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+ return ms
|
|
|
+ }
|
|
|
+ return mi.MessageOf(x)
|
|
|
}
|
|
|
|
|
|
-var xxx_messageInfo_BackendInformationResponse proto.InternalMessageInfo
|
|
|
+// Deprecated: Use BackendInformationResponse.ProtoReflect.Descriptor instead.
|
|
|
+func (*BackendInformationResponse) Descriptor() ([]byte, []int) {
|
|
|
+ return file_backend_v1_backend_proto_rawDescGZIP(), []int{0}
|
|
|
+}
|
|
|
|
|
|
-func (m *BackendInformationResponse) GetID() string {
|
|
|
- if m != nil {
|
|
|
- return m.ID
|
|
|
+func (x *BackendInformationResponse) GetId() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Id
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
-func init() {
|
|
|
- proto.RegisterType((*BackendInformationResponse)(nil), "com.docker.api.backend.v1.BackendInformationResponse")
|
|
|
+var File_backend_v1_backend_proto protoreflect.FileDescriptor
|
|
|
+
|
|
|
+var file_backend_v1_backend_proto_rawDesc = []byte{
|
|
|
+ 0x0a, 0x18, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0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2e, 0x63, 0x6f, 0x6d, 0x2e,
|
|
|
+ 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x61, 0x63, 0x6b, 0x65,
|
|
|
+ 0x6e, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x49, 0x6e, 0x66,
|
|
|
+ 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
|
|
+ 0x42, 0x25, 0x5a, 0x23, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64,
|
|
|
+ 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e,
|
|
|
+ 0x64, 0x2f, 0x76, 0x31, 0x3b, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
+}
|
|
|
+
|
|
|
+var (
|
|
|
+ file_backend_v1_backend_proto_rawDescOnce sync.Once
|
|
|
+ file_backend_v1_backend_proto_rawDescData = file_backend_v1_backend_proto_rawDesc
|
|
|
+)
|
|
|
+
|
|
|
+func file_backend_v1_backend_proto_rawDescGZIP() []byte {
|
|
|
+ file_backend_v1_backend_proto_rawDescOnce.Do(func() {
|
|
|
+ file_backend_v1_backend_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_v1_backend_proto_rawDescData)
|
|
|
+ })
|
|
|
+ return file_backend_v1_backend_proto_rawDescData
|
|
|
}
|
|
|
|
|
|
-func init() {
|
|
|
- proto.RegisterFile("github.com/docker/api/backend/v1/backend.proto", fileDescriptor_511f43e0e6c515ac)
|
|
|
+var file_backend_v1_backend_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
|
|
+var file_backend_v1_backend_proto_goTypes = []interface{}{
|
|
|
+ (*BackendInformationResponse)(nil), // 0: com.docker.api.backend.v1.BackendInformationResponse
|
|
|
+ (*empty.Empty)(nil), // 1: google.protobuf.Empty
|
|
|
+}
|
|
|
+var file_backend_v1_backend_proto_depIdxs = []int32{
|
|
|
+ 1, // 0: com.docker.api.backend.v1.Backend.BackendInformation:input_type -> google.protobuf.Empty
|
|
|
+ 0, // 1: com.docker.api.backend.v1.Backend.BackendInformation:output_type -> com.docker.api.backend.v1.BackendInformationResponse
|
|
|
+ 1, // [1:2] is the sub-list for method output_type
|
|
|
+ 0, // [0:1] is the sub-list for method input_type
|
|
|
+ 0, // [0:0] is the sub-list for extension type_name
|
|
|
+ 0, // [0:0] is the sub-list for extension extendee
|
|
|
+ 0, // [0:0] is the sub-list for field type_name
|
|
|
}
|
|
|
|
|
|
-var fileDescriptor_511f43e0e6c515ac = []byte{
|
|
|
- // 218 bytes of a gzipped FileDescriptorProto
|
|
|
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x4b, 0xcf, 0x2c, 0xc9,
|
|
|
- 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xc9, 0x4f, 0xce, 0x4e, 0x2d, 0xd2, 0x4f, 0x2c,
|
|
|
- 0xc8, 0xd4, 0x4f, 0x4a, 0x4c, 0xce, 0x4e, 0xcd, 0x4b, 0xd1, 0x2f, 0x33, 0x84, 0x31, 0xf5, 0x0a,
|
|
|
- 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0x24, 0x93, 0xf3, 0x73, 0xf5, 0x20, 0x0a, 0xf5, 0x12, 0x0b, 0x32,
|
|
|
- 0xf5, 0x60, 0xb2, 0x65, 0x86, 0x52, 0x22, 0xe9, 0xf9, 0xe9, 0xf9, 0x60, 0x55, 0xfa, 0x20, 0x16,
|
|
|
- 0x44, 0x83, 0x94, 0x74, 0x7a, 0x7e, 0x7e, 0x7a, 0x4e, 0xaa, 0x3e, 0x98, 0x97, 0x54, 0x9a, 0xa6,
|
|
|
- 0x9f, 0x9a, 0x5b, 0x50, 0x52, 0x09, 0x91, 0x54, 0x32, 0xe1, 0x92, 0x72, 0x82, 0x18, 0xe0, 0x99,
|
|
|
- 0x97, 0x96, 0x5f, 0x94, 0x9b, 0x58, 0x92, 0x99, 0x9f, 0x17, 0x94, 0x5a, 0x5c, 0x90, 0x9f, 0x57,
|
|
|
- 0x9c, 0x2a, 0x24, 0xc6, 0xc5, 0x94, 0x99, 0x22, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0xe9, 0xc4, 0xf6,
|
|
|
- 0xe8, 0x9e, 0x3c, 0x93, 0xa7, 0x4b, 0x10, 0x53, 0x66, 0x8a, 0x51, 0x1e, 0x17, 0x3b, 0x54, 0x97,
|
|
|
- 0x50, 0x32, 0x97, 0x10, 0xa6, 0x01, 0x42, 0x62, 0x7a, 0x10, 0x4b, 0xf5, 0x60, 0x96, 0xea, 0xb9,
|
|
|
- 0x82, 0x2c, 0x95, 0x32, 0xd5, 0xc3, 0xe9, 0x7a, 0x3d, 0xdc, 0xee, 0x70, 0x52, 0x8d, 0x52, 0x26,
|
|
|
- 0x14, 0x4a, 0xd6, 0x65, 0x86, 0x11, 0x0c, 0x49, 0x6c, 0x60, 0xfb, 0x8c, 0x01, 0x01, 0x00, 0x00,
|
|
|
- 0xff, 0xff, 0x3d, 0x73, 0x02, 0xd8, 0x55, 0x01, 0x00, 0x00,
|
|
|
+func init() { file_backend_v1_backend_proto_init() }
|
|
|
+func file_backend_v1_backend_proto_init() {
|
|
|
+ if File_backend_v1_backend_proto != nil {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if !protoimpl.UnsafeEnabled {
|
|
|
+ file_backend_v1_backend_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*BackendInformationResponse); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ type x struct{}
|
|
|
+ out := protoimpl.TypeBuilder{
|
|
|
+ File: protoimpl.DescBuilder{
|
|
|
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
+ RawDescriptor: file_backend_v1_backend_proto_rawDesc,
|
|
|
+ NumEnums: 0,
|
|
|
+ NumMessages: 1,
|
|
|
+ NumExtensions: 0,
|
|
|
+ NumServices: 1,
|
|
|
+ },
|
|
|
+ GoTypes: file_backend_v1_backend_proto_goTypes,
|
|
|
+ DependencyIndexes: file_backend_v1_backend_proto_depIdxs,
|
|
|
+ MessageInfos: file_backend_v1_backend_proto_msgTypes,
|
|
|
+ }.Build()
|
|
|
+ File_backend_v1_backend_proto = out.File
|
|
|
+ file_backend_v1_backend_proto_rawDesc = nil
|
|
|
+ file_backend_v1_backend_proto_goTypes = nil
|
|
|
+ file_backend_v1_backend_proto_depIdxs = nil
|
|
|
}
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
var _ context.Context
|
|
|
-var _ grpc.ClientConn
|
|
|
+var _ grpc.ClientConnInterface
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
// is compatible with the grpc package it is being compiled against.
|
|
|
-const _ = grpc.SupportPackageIsVersion4
|
|
|
+const _ = grpc.SupportPackageIsVersion6
|
|
|
|
|
|
// BackendClient is the client API for Backend service.
|
|
|
//
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
type BackendClient interface {
|
|
|
// BackendInformation returns implementation specific information on the backend.
|
|
|
- BackendInformation(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*BackendInformationResponse, error)
|
|
|
+ BackendInformation(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*BackendInformationResponse, error)
|
|
|
}
|
|
|
|
|
|
type backendClient struct {
|
|
|
- cc *grpc.ClientConn
|
|
|
+ cc grpc.ClientConnInterface
|
|
|
}
|
|
|
|
|
|
-func NewBackendClient(cc *grpc.ClientConn) BackendClient {
|
|
|
+func NewBackendClient(cc grpc.ClientConnInterface) BackendClient {
|
|
|
return &backendClient{cc}
|
|
|
}
|
|
|
|
|
|
-func (c *backendClient) BackendInformation(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*BackendInformationResponse, error) {
|
|
|
+func (c *backendClient) BackendInformation(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*BackendInformationResponse, error) {
|
|
|
out := new(BackendInformationResponse)
|
|
|
err := c.cc.Invoke(ctx, "/com.docker.api.backend.v1.Backend/BackendInformation", in, out, opts...)
|
|
|
if err != nil {
|
|
|
@@ -125,14 +202,14 @@ func (c *backendClient) BackendInformation(ctx context.Context, in *types.Empty,
|
|
|
// BackendServer is the server API for Backend service.
|
|
|
type BackendServer interface {
|
|
|
// BackendInformation returns implementation specific information on the backend.
|
|
|
- BackendInformation(context.Context, *types.Empty) (*BackendInformationResponse, error)
|
|
|
+ BackendInformation(context.Context, *empty.Empty) (*BackendInformationResponse, error)
|
|
|
}
|
|
|
|
|
|
// UnimplementedBackendServer can be embedded to have forward compatible implementations.
|
|
|
type UnimplementedBackendServer struct {
|
|
|
}
|
|
|
|
|
|
-func (*UnimplementedBackendServer) BackendInformation(ctx context.Context, req *types.Empty) (*BackendInformationResponse, error) {
|
|
|
+func (*UnimplementedBackendServer) BackendInformation(context.Context, *empty.Empty) (*BackendInformationResponse, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method BackendInformation not implemented")
|
|
|
}
|
|
|
|
|
|
@@ -141,7 +218,7 @@ func RegisterBackendServer(s *grpc.Server, srv BackendServer) {
|
|
|
}
|
|
|
|
|
|
func _Backend_BackendInformation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(types.Empty)
|
|
|
+ in := new(empty.Empty)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
@@ -153,7 +230,7 @@ func _Backend_BackendInformation_Handler(srv interface{}, ctx context.Context, d
|
|
|
FullMethod: "/com.docker.api.backend.v1.Backend/BackendInformation",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(BackendServer).BackendInformation(ctx, req.(*types.Empty))
|
|
|
+ return srv.(BackendServer).BackendInformation(ctx, req.(*empty.Empty))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
@@ -168,5 +245,5 @@ var _Backend_serviceDesc = grpc.ServiceDesc{
|
|
|
},
|
|
|
},
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
- Metadata: "github.com/docker/api/backend/v1/backend.proto",
|
|
|
+ Metadata: "backend/v1/backend.proto",
|
|
|
}
|