/
provider.pb.go
278 lines (251 loc) · 10.1 KB
/
provider.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
269
270
271
272
273
274
275
276
277
278
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: provider.proto
package pipeline
import (
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
_ "github.com/mwitkow/go-proto-validators"
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.GoGoProtoPackageIsVersion3 // please upgrade the proto package
//
//Git Provider
type Provider struct {
//
//实例id,服务端自动生成
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id"`
//
//名称, 不能修改
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name" form:"name"`
//
//Provider类型, 目前只支持gitlab, 不能修改
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type" form:"type"`
//
//gitlab v4 api url.
ApiUrl string `protobuf:"bytes,4,opt,name=api_url,json=apiUrl,proto3" json:"api_url" form:"api_url"`
//
//鉴权方式
Auth *Provider_Auth `protobuf:"bytes,5,opt,name=auth,proto3" json:"auth" form:"auth"`
//
//是否为默认provider
Default bool `protobuf:"varint,6,opt,name=default,proto3" json:"default" form:"default"`
//
//创建者, 服务端自动生成
Creator string `protobuf:"bytes,7,opt,name=creator,proto3" json:"creator" form:"creator"`
//
//创建时间, 服务端自动生成
Ctime string `protobuf:"bytes,8,opt,name=ctime,proto3" json:"ctime" form:"ctime"`
//
//修改时间, 服务端自动生成
Mtime string `protobuf:"bytes,9,opt,name=mtime,proto3" json:"mtime" form:"mtime"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Provider) Reset() { *m = Provider{} }
func (m *Provider) String() string { return proto.CompactTextString(m) }
func (*Provider) ProtoMessage() {}
func (*Provider) Descriptor() ([]byte, []int) {
return fileDescriptor_c6a9f3c02af3d1c8, []int{0}
}
func (m *Provider) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Provider.Unmarshal(m, b)
}
func (m *Provider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Provider.Marshal(b, m, deterministic)
}
func (m *Provider) XXX_Merge(src proto.Message) {
xxx_messageInfo_Provider.Merge(m, src)
}
func (m *Provider) XXX_Size() int {
return xxx_messageInfo_Provider.Size(m)
}
func (m *Provider) XXX_DiscardUnknown() {
xxx_messageInfo_Provider.DiscardUnknown(m)
}
var xxx_messageInfo_Provider proto.InternalMessageInfo
func (m *Provider) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *Provider) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Provider) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *Provider) GetApiUrl() string {
if m != nil {
return m.ApiUrl
}
return ""
}
func (m *Provider) GetAuth() *Provider_Auth {
if m != nil {
return m.Auth
}
return nil
}
func (m *Provider) GetDefault() bool {
if m != nil {
return m.Default
}
return false
}
func (m *Provider) GetCreator() string {
if m != nil {
return m.Creator
}
return ""
}
func (m *Provider) GetCtime() string {
if m != nil {
return m.Ctime
}
return ""
}
func (m *Provider) GetMtime() string {
if m != nil {
return m.Mtime
}
return ""
}
type Provider_Auth struct {
//
//鉴权方式, 目前只支持 basic
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type" form:"type"`
//
//gitlab personal access token. https://docs.gitlab.com/ee/api/README.html#personal-access-tokens
Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token" form:"token"`
//
//auth2类型的app_id
AppId string `protobuf:"bytes,3,opt,name=app_id,json=appId,proto3" json:"app_id" form:"app_id"`
//
//auth2类型的secret
AppSecret string `protobuf:"bytes,4,opt,name=app_secret,json=appSecret,proto3" json:"app_secret" form:"app_secret"`
//
//auth2是否可以访问私有仓库
AccessPrivateRepos bool `protobuf:"varint,5,opt,name=access_private_repos,json=accessPrivateRepos,proto3" json:"access_private_repos" form:"access_private_repos"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Provider_Auth) Reset() { *m = Provider_Auth{} }
func (m *Provider_Auth) String() string { return proto.CompactTextString(m) }
func (*Provider_Auth) ProtoMessage() {}
func (*Provider_Auth) Descriptor() ([]byte, []int) {
return fileDescriptor_c6a9f3c02af3d1c8, []int{0, 0}
}
func (m *Provider_Auth) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Provider_Auth.Unmarshal(m, b)
}
func (m *Provider_Auth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Provider_Auth.Marshal(b, m, deterministic)
}
func (m *Provider_Auth) XXX_Merge(src proto.Message) {
xxx_messageInfo_Provider_Auth.Merge(m, src)
}
func (m *Provider_Auth) XXX_Size() int {
return xxx_messageInfo_Provider_Auth.Size(m)
}
func (m *Provider_Auth) XXX_DiscardUnknown() {
xxx_messageInfo_Provider_Auth.DiscardUnknown(m)
}
var xxx_messageInfo_Provider_Auth proto.InternalMessageInfo
func (m *Provider_Auth) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *Provider_Auth) GetToken() string {
if m != nil {
return m.Token
}
return ""
}
func (m *Provider_Auth) GetAppId() string {
if m != nil {
return m.AppId
}
return ""
}
func (m *Provider_Auth) GetAppSecret() string {
if m != nil {
return m.AppSecret
}
return ""
}
func (m *Provider_Auth) GetAccessPrivateRepos() bool {
if m != nil {
return m.AccessPrivateRepos
}
return false
}
func init() {
proto.RegisterType((*Provider)(nil), "pipeline.Provider")
proto.RegisterType((*Provider_Auth)(nil), "pipeline.Provider.Auth")
}
func init() { proto.RegisterFile("provider.proto", fileDescriptor_c6a9f3c02af3d1c8) }
var fileDescriptor_c6a9f3c02af3d1c8 = []byte{
// 660 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x54, 0xcd, 0x4e, 0xdb, 0x4a,
0x14, 0x96, 0x73, 0xf3, 0x3b, 0xdc, 0xcb, 0x05, 0xab, 0x55, 0x2d, 0xba, 0x70, 0x30, 0xa8, 0x72,
0x0a, 0x63, 0xe7, 0x87, 0x56, 0x22, 0xaa, 0x14, 0x11, 0x75, 0xd3, 0x1d, 0x35, 0xed, 0x06, 0x37,
0x44, 0x83, 0x3d, 0x84, 0x11, 0x76, 0x66, 0x64, 0x4f, 0x40, 0x40, 0xd8, 0xf6, 0x61, 0x2a, 0x75,
0xdb, 0x07, 0xe8, 0x5b, 0x74, 0xe3, 0x4a, 0x7d, 0x04, 0x3f, 0x41, 0x35, 0x63, 0x9b, 0x44, 0x2d,
0xea, 0xbe, 0x2b, 0x9f, 0xf3, 0xfd, 0x9c, 0x99, 0x33, 0x3a, 0xc7, 0x60, 0x95, 0x45, 0xf4, 0x92,
0xf8, 0x38, 0xb2, 0x58, 0x44, 0x39, 0x55, 0xeb, 0x8c, 0x30, 0x1c, 0x90, 0x29, 0xde, 0x80, 0x13,
0xc2, 0xcf, 0x67, 0xa7, 0x96, 0x47, 0x43, 0x7b, 0x42, 0x27, 0xd4, 0x96, 0x82, 0xd3, 0xd9, 0x99,
0xcc, 0x64, 0x22, 0xa3, 0xcc, 0xb8, 0xf1, 0x72, 0x49, 0x1e, 0x5e, 0x11, 0x7e, 0x41, 0xaf, 0xec,
0x09, 0x85, 0x92, 0x84, 0x97, 0x28, 0x20, 0x3e, 0xe2, 0x34, 0x8a, 0xed, 0xfb, 0x30, 0xf3, 0x19,
0x5f, 0xea, 0xa0, 0x7e, 0x98, 0xdf, 0x41, 0xed, 0x80, 0x12, 0xf1, 0x35, 0xa5, 0xa9, 0x98, 0x8d,
0xe1, 0x66, 0x9a, 0xe8, 0x8d, 0x33, 0x1a, 0x85, 0x7d, 0x83, 0xf8, 0xc6, 0x8f, 0xef, 0xfa, 0x1a,
0x58, 0x3d, 0x71, 0xdb, 0x70, 0x1f, 0xc1, 0x9b, 0xd1, 0x6d, 0xa7, 0x77, 0xb7, 0xed, 0x94, 0x88,
0xaf, 0x6e, 0x81, 0xf2, 0x14, 0x85, 0x58, 0x2b, 0x49, 0xd3, 0xff, 0x69, 0xa2, 0xaf, 0x64, 0x26,
0x81, 0x1a, 0x8e, 0x24, 0x85, 0x88, 0x5f, 0x33, 0xac, 0xfd, 0xf3, 0xab, 0x48, 0xa0, 0x86, 0x23,
0x49, 0x75, 0x07, 0xd4, 0x10, 0x23, 0xe3, 0x59, 0x14, 0x68, 0x65, 0xa9, 0x53, 0xd3, 0x44, 0x5f,
0xcd, 0x74, 0x39, 0x61, 0x38, 0x55, 0xc4, 0xc8, 0xfb, 0x28, 0x50, 0x5f, 0x81, 0x32, 0x9a, 0xf1,
0x73, 0xad, 0xd2, 0x54, 0x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