This repository has been archived by the owner on Jan 31, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcodesigner_service.pb.go
268 lines (228 loc) · 9.67 KB
/
codesigner_service.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: codesigner_service.proto
/*
Package codesigner is a generated protocol buffer package.
It is generated from these files:
codesigner_service.proto
It has these top-level messages:
SignPackageRequest
SignPackageReply
VerifyPackageRequest
VerifyPackageReply
*/
package codesigner
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// 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
type SignPackageRequest struct {
Package []byte `protobuf:"bytes,1,opt,name=package,proto3" json:"package,omitempty"`
DeveloperId string `protobuf:"bytes,2,opt,name=developer_id,json=developerId" json:"developer_id,omitempty"`
}
func (m *SignPackageRequest) Reset() { *m = SignPackageRequest{} }
func (m *SignPackageRequest) String() string { return proto.CompactTextString(m) }
func (*SignPackageRequest) ProtoMessage() {}
func (*SignPackageRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *SignPackageRequest) GetPackage() []byte {
if m != nil {
return m.Package
}
return nil
}
func (m *SignPackageRequest) GetDeveloperId() string {
if m != nil {
return m.DeveloperId
}
return ""
}
type SignPackageReply struct {
SignedPackage []byte `protobuf:"bytes,1,opt,name=signed_package,json=signedPackage,proto3" json:"signed_package,omitempty"`
CodesignOutput string `protobuf:"bytes,2,opt,name=codesign_output,json=codesignOutput" json:"codesign_output,omitempty"`
CodesignReturnCode int32 `protobuf:"varint,3,opt,name=codesign_return_code,json=codesignReturnCode" json:"codesign_return_code,omitempty"`
}
func (m *SignPackageReply) Reset() { *m = SignPackageReply{} }
func (m *SignPackageReply) String() string { return proto.CompactTextString(m) }
func (*SignPackageReply) ProtoMessage() {}
func (*SignPackageReply) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *SignPackageReply) GetSignedPackage() []byte {
if m != nil {
return m.SignedPackage
}
return nil
}
func (m *SignPackageReply) GetCodesignOutput() string {
if m != nil {
return m.CodesignOutput
}
return ""
}
func (m *SignPackageReply) GetCodesignReturnCode() int32 {
if m != nil {
return m.CodesignReturnCode
}
return 0
}
type VerifyPackageRequest struct {
Package []byte `protobuf:"bytes,1,opt,name=package,proto3" json:"package,omitempty"`
}
func (m *VerifyPackageRequest) Reset() { *m = VerifyPackageRequest{} }
func (m *VerifyPackageRequest) String() string { return proto.CompactTextString(m) }
func (*VerifyPackageRequest) ProtoMessage() {}
func (*VerifyPackageRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *VerifyPackageRequest) GetPackage() []byte {
if m != nil {
return m.Package
}
return nil
}
type VerifyPackageReply struct {
Ok bool `protobuf:"varint,1,opt,name=ok" json:"ok,omitempty"`
CodesignOutput string `protobuf:"bytes,2,opt,name=codesign_output,json=codesignOutput" json:"codesign_output,omitempty"`
}
func (m *VerifyPackageReply) Reset() { *m = VerifyPackageReply{} }
func (m *VerifyPackageReply) String() string { return proto.CompactTextString(m) }
func (*VerifyPackageReply) ProtoMessage() {}
func (*VerifyPackageReply) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *VerifyPackageReply) GetOk() bool {
if m != nil {
return m.Ok
}
return false
}
func (m *VerifyPackageReply) GetCodesignOutput() string {
if m != nil {
return m.CodesignOutput
}
return ""
}
func init() {
proto.RegisterType((*SignPackageRequest)(nil), "codesigner.SignPackageRequest")
proto.RegisterType((*SignPackageReply)(nil), "codesigner.SignPackageReply")
proto.RegisterType((*VerifyPackageRequest)(nil), "codesigner.VerifyPackageRequest")
proto.RegisterType((*VerifyPackageReply)(nil), "codesigner.VerifyPackageReply")
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// 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
// Client API for CodeSigner service
type CodeSignerClient interface {
SignPackage(ctx context.Context, in *SignPackageRequest, opts ...grpc.CallOption) (*SignPackageReply, error)
VerifyPackage(ctx context.Context, in *VerifyPackageRequest, opts ...grpc.CallOption) (*VerifyPackageReply, error)
}
type codeSignerClient struct {
cc *grpc.ClientConn
}
func NewCodeSignerClient(cc *grpc.ClientConn) CodeSignerClient {
return &codeSignerClient{cc}
}
func (c *codeSignerClient) SignPackage(ctx context.Context, in *SignPackageRequest, opts ...grpc.CallOption) (*SignPackageReply, error) {
out := new(SignPackageReply)
err := grpc.Invoke(ctx, "/codesigner.CodeSigner/SignPackage", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *codeSignerClient) VerifyPackage(ctx context.Context, in *VerifyPackageRequest, opts ...grpc.CallOption) (*VerifyPackageReply, error) {
out := new(VerifyPackageReply)
err := grpc.Invoke(ctx, "/codesigner.CodeSigner/VerifyPackage", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for CodeSigner service
type CodeSignerServer interface {
SignPackage(context.Context, *SignPackageRequest) (*SignPackageReply, error)
VerifyPackage(context.Context, *VerifyPackageRequest) (*VerifyPackageReply, error)
}
func RegisterCodeSignerServer(s *grpc.Server, srv CodeSignerServer) {
s.RegisterService(&_CodeSigner_serviceDesc, srv)
}
func _CodeSigner_SignPackage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SignPackageRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CodeSignerServer).SignPackage(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/codesigner.CodeSigner/SignPackage",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CodeSignerServer).SignPackage(ctx, req.(*SignPackageRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CodeSigner_VerifyPackage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(VerifyPackageRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CodeSignerServer).VerifyPackage(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/codesigner.CodeSigner/VerifyPackage",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CodeSignerServer).VerifyPackage(ctx, req.(*VerifyPackageRequest))
}
return interceptor(ctx, in, info, handler)
}
var _CodeSigner_serviceDesc = grpc.ServiceDesc{
ServiceName: "codesigner.CodeSigner",
HandlerType: (*CodeSignerServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "SignPackage",
Handler: _CodeSigner_SignPackage_Handler,
},
{
MethodName: "VerifyPackage",
Handler: _CodeSigner_VerifyPackage_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "codesigner_service.proto",
}
func init() { proto.RegisterFile("codesigner_service.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 288 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0x4d, 0x4b, 0xc3, 0x40,
0x10, 0x75, 0x23, 0x7e, 0x4d, 0xdb, 0x28, 0x43, 0x0f, 0xa1, 0x48, 0x89, 0x01, 0x31, 0xa7, 0x50,
0xf4, 0x27, 0x78, 0xf2, 0x50, 0xd4, 0x0d, 0x78, 0x0d, 0x35, 0x3b, 0x86, 0x90, 0x90, 0x5d, 0x37,
0x49, 0x21, 0xff, 0xc3, 0x1f, 0xe2, 0x4f, 0x94, 0x6c, 0x9b, 0xb6, 0xf1, 0x8b, 0x1e, 0xf7, 0xbd,
0x37, 0x33, 0xef, 0xcd, 0x2c, 0x38, 0xb1, 0x14, 0x54, 0xa6, 0x49, 0x41, 0x3a, 0x2a, 0x49, 0x2f,
0xd3, 0x98, 0x02, 0xa5, 0x65, 0x25, 0x11, 0xb6, 0x8c, 0xf7, 0x0c, 0x18, 0xa6, 0x49, 0xf1, 0xb4,
0x88, 0xb3, 0x45, 0x42, 0x9c, 0xde, 0x6b, 0x2a, 0x2b, 0x74, 0xe0, 0x44, 0xad, 0x10, 0x87, 0xb9,
0xcc, 0x1f, 0xf2, 0xee, 0x89, 0x57, 0x30, 0x14, 0xb4, 0xa4, 0x5c, 0x2a, 0xd2, 0x51, 0x2a, 0x1c,
0xcb, 0x65, 0xfe, 0x19, 0x1f, 0x6c, 0xb0, 0x07, 0xe1, 0x7d, 0x30, 0xb8, 0xe8, 0xf5, 0x54, 0x79,
0x83, 0xd7, 0x60, 0x9b, 0x89, 0x22, 0xea, 0x37, 0x1e, 0xad, 0x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