-
Notifications
You must be signed in to change notification settings - Fork 3
/
anyvendor.pb.go
333 lines (291 loc) · 11.4 KB
/
anyvendor.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
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: anyvendor.proto
package anyvendor
import (
fmt "fmt"
math "math"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
proto "github.com/golang/protobuf/proto"
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
//
//Config object used for running anyvendor. The top level config consists of 2 main sections.
//
//Local is a set of matchers will be taken directly from the local module, and vendored in.
//Imports is a list of import types which will be run, and then vendored.
type Config struct {
// files to be vendored from current repo
Local *Local `protobuf:"bytes,1,opt,name=local,proto3" json:"local,omitempty"`
// list of external imports to be vendored in
Imports []*Import `protobuf:"bytes,2,rep,name=imports,proto3" json:"imports,omitempty"`
Settings *FactorySettings `protobuf:"bytes,3,opt,name=settings,proto3" json:"settings,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Config) Reset() { *m = Config{} }
func (m *Config) String() string { return proto.CompactTextString(m) }
func (*Config) ProtoMessage() {}
func (*Config) Descriptor() ([]byte, []int) {
return fileDescriptor_2a8ec572c73c9b71, []int{0}
}
func (m *Config) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Config.Unmarshal(m, b)
}
func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Config.Marshal(b, m, deterministic)
}
func (m *Config) XXX_Merge(src proto.Message) {
xxx_messageInfo_Config.Merge(m, src)
}
func (m *Config) XXX_Size() int {
return xxx_messageInfo_Config.Size(m)
}
func (m *Config) XXX_DiscardUnknown() {
xxx_messageInfo_Config.DiscardUnknown(m)
}
var xxx_messageInfo_Config proto.InternalMessageInfo
func (m *Config) GetLocal() *Local {
if m != nil {
return m.Local
}
return nil
}
func (m *Config) GetImports() []*Import {
if m != nil {
return m.Imports
}
return nil
}
func (m *Config) GetSettings() *FactorySettings {
if m != nil {
return m.Settings
}
return nil
}
// a message for settings which is passed to the factories at startup
type FactorySettings struct {
// Example: [**/node_modules/**]
// Any paths which start the string `node_modules` will be skipped over by the copier.
SkipPatterns []string `protobuf:"bytes,1,rep,name=skip_patterns,json=skipPatterns,proto3" json:"skip_patterns,omitempty"`
// Current working directory
Cwd string `protobuf:"bytes,2,opt,name=cwd,proto3" json:"cwd,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FactorySettings) Reset() { *m = FactorySettings{} }
func (m *FactorySettings) String() string { return proto.CompactTextString(m) }
func (*FactorySettings) ProtoMessage() {}
func (*FactorySettings) Descriptor() ([]byte, []int) {
return fileDescriptor_2a8ec572c73c9b71, []int{1}
}
func (m *FactorySettings) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FactorySettings.Unmarshal(m, b)
}
func (m *FactorySettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FactorySettings.Marshal(b, m, deterministic)
}
func (m *FactorySettings) XXX_Merge(src proto.Message) {
xxx_messageInfo_FactorySettings.Merge(m, src)
}
func (m *FactorySettings) XXX_Size() int {
return xxx_messageInfo_FactorySettings.Size(m)
}
func (m *FactorySettings) XXX_DiscardUnknown() {
xxx_messageInfo_FactorySettings.DiscardUnknown(m)
}
var xxx_messageInfo_FactorySettings proto.InternalMessageInfo
func (m *FactorySettings) GetSkipPatterns() []string {
if m != nil {
return m.SkipPatterns
}
return nil
}
func (m *FactorySettings) GetCwd() string {
if m != nil {
return m.Cwd
}
return ""
}
type Import struct {
// Types that are valid to be assigned to ImportType:
// *Import_GoMod
ImportType isImport_ImportType `protobuf_oneof:"ImportType"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Import) Reset() { *m = Import{} }
func (m *Import) String() string { return proto.CompactTextString(m) }
func (*Import) ProtoMessage() {}
func (*Import) Descriptor() ([]byte, []int) {
return fileDescriptor_2a8ec572c73c9b71, []int{2}
}
func (m *Import) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Import.Unmarshal(m, b)
}
func (m *Import) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Import.Marshal(b, m, deterministic)
}
func (m *Import) XXX_Merge(src proto.Message) {
xxx_messageInfo_Import.Merge(m, src)
}
func (m *Import) XXX_Size() int {
return xxx_messageInfo_Import.Size(m)
}
func (m *Import) XXX_DiscardUnknown() {
xxx_messageInfo_Import.DiscardUnknown(m)
}
var xxx_messageInfo_Import proto.InternalMessageInfo
type isImport_ImportType interface {
isImport_ImportType()
}
type Import_GoMod struct {
GoMod *GoModImport `protobuf:"bytes,2,opt,name=go_mod,json=goMod,proto3,oneof"`
}
func (*Import_GoMod) isImport_ImportType() {}
func (m *Import) GetImportType() isImport_ImportType {
if m != nil {
return m.ImportType
}
return nil
}
func (m *Import) GetGoMod() *GoModImport {
if x, ok := m.GetImportType().(*Import_GoMod); ok {
return x.GoMod
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*Import) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*Import_GoMod)(nil),
}
}
// A set of glob patters to be grabbed from the current module
type Local struct {
Patterns []string `protobuf:"bytes,1,rep,name=patterns,proto3" json:"patterns,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Local) Reset() { *m = Local{} }
func (m *Local) String() string { return proto.CompactTextString(m) }
func (*Local) ProtoMessage() {}
func (*Local) Descriptor() ([]byte, []int) {
return fileDescriptor_2a8ec572c73c9b71, []int{3}
}
func (m *Local) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Local.Unmarshal(m, b)
}
func (m *Local) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Local.Marshal(b, m, deterministic)
}
func (m *Local) XXX_Merge(src proto.Message) {
xxx_messageInfo_Local.Merge(m, src)
}
func (m *Local) XXX_Size() int {
return xxx_messageInfo_Local.Size(m)
}
func (m *Local) XXX_DiscardUnknown() {
xxx_messageInfo_Local.DiscardUnknown(m)
}
var xxx_messageInfo_Local proto.InternalMessageInfo
func (m *Local) GetPatterns() []string {
if m != nil {
return m.Patterns
}
return nil
}
//
//A go mod import represents a set of imports from a go module
//
//patterns is a set glob matchers to find files in a go module.
//
//package is the name of the go module which these should be pulled from.
//
//The GoModImport uses the command `go list -f '{{.Path}}' -m all` to find
//all of the package names
type GoModImport struct {
Patterns []string `protobuf:"bytes,1,rep,name=patterns,proto3" json:"patterns,omitempty"`
Package string `protobuf:"bytes,2,opt,name=package,proto3" json:"package,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GoModImport) Reset() { *m = GoModImport{} }
func (m *GoModImport) String() string { return proto.CompactTextString(m) }
func (*GoModImport) ProtoMessage() {}
func (*GoModImport) Descriptor() ([]byte, []int) {
return fileDescriptor_2a8ec572c73c9b71, []int{4}
}
func (m *GoModImport) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GoModImport.Unmarshal(m, b)
}
func (m *GoModImport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GoModImport.Marshal(b, m, deterministic)
}
func (m *GoModImport) XXX_Merge(src proto.Message) {
xxx_messageInfo_GoModImport.Merge(m, src)
}
func (m *GoModImport) XXX_Size() int {
return xxx_messageInfo_GoModImport.Size(m)
}
func (m *GoModImport) XXX_DiscardUnknown() {
xxx_messageInfo_GoModImport.DiscardUnknown(m)
}
var xxx_messageInfo_GoModImport proto.InternalMessageInfo
func (m *GoModImport) GetPatterns() []string {
if m != nil {
return m.Patterns
}
return nil
}
func (m *GoModImport) GetPackage() string {
if m != nil {
return m.Package
}
return ""
}
func init() {
proto.RegisterType((*Config)(nil), "anyvendor.Config")
proto.RegisterType((*FactorySettings)(nil), "anyvendor.FactorySettings")
proto.RegisterType((*Import)(nil), "anyvendor.Import")
proto.RegisterType((*Local)(nil), "anyvendor.Local")
proto.RegisterType((*GoModImport)(nil), "anyvendor.GoModImport")
}
func init() { proto.RegisterFile("anyvendor.proto", fileDescriptor_2a8ec572c73c9b71) }
var fileDescriptor_2a8ec572c73c9b71 = []byte{
// 346 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0xc1, 0x4a, 0xeb, 0x40,
0x14, 0x86, 0xef, 0x24, 0x37, 0x69, 0x73, 0x72, 0x2f, 0xad, 0x23, 0x68, 0xe8, 0x2a, 0xa4, 0x50,
0x02, 0x62, 0x03, 0x15, 0x7c, 0x80, 0x08, 0x5a, 0x41, 0x45, 0x46, 0x57, 0xdd, 0x94, 0x69, 0x12,
0x63, 0x68, 0x9a, 0x13, 0x92, 0xb1, 0xd2, 0xd7, 0x10, 0x7c, 0x17, 0x71, 0xd5, 0xd7, 0xe9, 0x5b,
0x48, 0x92, 0x36, 0x8d, 0xae, 0xdc, 0x9d, 0xf9, 0xbf, 0x6f, 0x0e, 0xe7, 0xcc, 0x40, 0x87, 0x27,
0xab, 0x65, 0x90, 0xf8, 0x98, 0x0d, 0xd3, 0x0c, 0x05, 0x52, 0xad, 0x0e, 0x7a, 0xc7, 0x4b, 0x1e,
0x47, 0x3e, 0x17, 0x81, 0xb3, 0x2b, 0x2a, 0xc7, 0x7a, 0x27, 0xa0, 0x5e, 0x60, 0xf2, 0x14, 0x85,
0x74, 0x00, 0x4a, 0x8c, 0x1e, 0x8f, 0x0d, 0x62, 0x12, 0x5b, 0x1f, 0x75, 0x87, 0xfb, 0x7e, 0x37,
0x45, 0xce, 0x2a, 0x4c, 0x4f, 0xa0, 0x15, 0x2d, 0x52, 0xcc, 0x44, 0x6e, 0x48, 0xa6, 0x6c, 0xeb,
0xa3, 0x83, 0x86, 0x79, 0x5d, 0x12, 0xb6, 0x33, 0xe8, 0x39, 0xb4, 0xf3, 0x40, 0x88, 0x28, 0x09,
0x73, 0x43, 0x2e, 0xfb, 0xf6, 0x1a, 0xf6, 0x25, 0xf7, 0x04, 0x66, 0xab, 0x87, 0xad, 0xc1, 0x6a,
0xd7, 0x1a, 0x43, 0xe7, 0x07, 0xa4, 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