forked from hashicorp/vault-plugin-secrets-kv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.pb.go
416 lines (369 loc) · 15.4 KB
/
types.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
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: types.proto
package kv
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
duration "github.com/golang/protobuf/ptypes/duration"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
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.ProtoPackageIsVersion3 // please upgrade the proto package
// If values are added to this, be sure to update the config() function
type Configuration struct {
MaxVersions uint32 `protobuf:"varint,1,opt,name=max_versions,json=maxVersions,proto3" json:"max_versions,omitempty"`
CasRequired bool `protobuf:"varint,2,opt,name=cas_required,json=casRequired,proto3" json:"cas_required,omitempty"`
DeleteVersionAfter *duration.Duration `protobuf:"bytes,3,opt,name=delete_version_after,json=deleteVersionAfter,proto3" json:"delete_version_after,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Configuration) Reset() { *m = Configuration{} }
func (m *Configuration) String() string { return proto.CompactTextString(m) }
func (*Configuration) ProtoMessage() {}
func (*Configuration) Descriptor() ([]byte, []int) {
return fileDescriptor_d938547f84707355, []int{0}
}
func (m *Configuration) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Configuration.Unmarshal(m, b)
}
func (m *Configuration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Configuration.Marshal(b, m, deterministic)
}
func (m *Configuration) XXX_Merge(src proto.Message) {
xxx_messageInfo_Configuration.Merge(m, src)
}
func (m *Configuration) XXX_Size() int {
return xxx_messageInfo_Configuration.Size(m)
}
func (m *Configuration) XXX_DiscardUnknown() {
xxx_messageInfo_Configuration.DiscardUnknown(m)
}
var xxx_messageInfo_Configuration proto.InternalMessageInfo
func (m *Configuration) GetMaxVersions() uint32 {
if m != nil {
return m.MaxVersions
}
return 0
}
func (m *Configuration) GetCasRequired() bool {
if m != nil {
return m.CasRequired
}
return false
}
func (m *Configuration) GetDeleteVersionAfter() *duration.Duration {
if m != nil {
return m.DeleteVersionAfter
}
return nil
}
type VersionMetadata struct {
// CreatedTime is when the version was created.
CreatedTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"`
// DeletionTime is the time this version becomes invalid.
// Set to Now() to delete the version before the configured
// delete time.
DeletionTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=deletion_time,json=deletionTime,proto3" json:"deletion_time,omitempty"`
// Destroyed is used to specify this version is
// a has been removed and the underlying data deleted.
Destroyed bool `protobuf:"varint,3,opt,name=destroyed,proto3" json:"destroyed,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VersionMetadata) Reset() { *m = VersionMetadata{} }
func (m *VersionMetadata) String() string { return proto.CompactTextString(m) }
func (*VersionMetadata) ProtoMessage() {}
func (*VersionMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_d938547f84707355, []int{1}
}
func (m *VersionMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VersionMetadata.Unmarshal(m, b)
}
func (m *VersionMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VersionMetadata.Marshal(b, m, deterministic)
}
func (m *VersionMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_VersionMetadata.Merge(m, src)
}
func (m *VersionMetadata) XXX_Size() int {
return xxx_messageInfo_VersionMetadata.Size(m)
}
func (m *VersionMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_VersionMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_VersionMetadata proto.InternalMessageInfo
func (m *VersionMetadata) GetCreatedTime() *timestamp.Timestamp {
if m != nil {
return m.CreatedTime
}
return nil
}
func (m *VersionMetadata) GetDeletionTime() *timestamp.Timestamp {
if m != nil {
return m.DeletionTime
}
return nil
}
func (m *VersionMetadata) GetDestroyed() bool {
if m != nil {
return m.Destroyed
}
return false
}
type KeyMetadata struct {
// Key is the key for this entry
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// Versions is the map of versionID -> VersionMetadata.
// Useful when listing all versions.
Versions map[uint64]*VersionMetadata `protobuf:"bytes,2,rep,name=versions,proto3" json:"versions,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// CurrentVersion is the latest version of the value
CurrentVersion uint64 `protobuf:"varint,3,opt,name=current_version,json=currentVersion,proto3" json:"current_version,omitempty"`
// OldestVersion is the oldest version of the value.
OldestVersion uint64 `protobuf:"varint,4,opt,name=oldest_version,json=oldestVersion,proto3" json:"oldest_version,omitempty"`
// Created time is when the metadata was created.
CreatedTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"`
// Updated time was the last time the metadata version
// was updated.
UpdatedTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=updated_time,json=updatedTime,proto3" json:"updated_time,omitempty"`
// MaxVersions specifies how many versions to keep around.
// If empty value, defaults to the configured Max
// for the mount.
MaxVersions uint32 `protobuf:"varint,7,opt,name=max_versions,json=maxVersions,proto3" json:"max_versions,omitempty"`
// CasRequired specifies if the cas parameter is
// required for this key
CasRequired bool `protobuf:"varint,8,opt,name=cas_required,json=casRequired,proto3" json:"cas_required,omitempty"`
// DeleteVersionAfter specifies how long to keep versions around. If
// empty value, defaults to the configured delete_version_after for the
// mount.
DeleteVersionAfter *duration.Duration `protobuf:"bytes,9,opt,name=delete_version_after,json=deleteVersionAfter,proto3" json:"delete_version_after,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *KeyMetadata) Reset() { *m = KeyMetadata{} }
func (m *KeyMetadata) String() string { return proto.CompactTextString(m) }
func (*KeyMetadata) ProtoMessage() {}
func (*KeyMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_d938547f84707355, []int{2}
}
func (m *KeyMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_KeyMetadata.Unmarshal(m, b)
}
func (m *KeyMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_KeyMetadata.Marshal(b, m, deterministic)
}
func (m *KeyMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_KeyMetadata.Merge(m, src)
}
func (m *KeyMetadata) XXX_Size() int {
return xxx_messageInfo_KeyMetadata.Size(m)
}
func (m *KeyMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_KeyMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_KeyMetadata proto.InternalMessageInfo
func (m *KeyMetadata) GetKey() string {
if m != nil {
return m.Key
}
return ""
}
func (m *KeyMetadata) GetVersions() map[uint64]*VersionMetadata {
if m != nil {
return m.Versions
}
return nil
}
func (m *KeyMetadata) GetCurrentVersion() uint64 {
if m != nil {
return m.CurrentVersion
}
return 0
}
func (m *KeyMetadata) GetOldestVersion() uint64 {
if m != nil {
return m.OldestVersion
}
return 0
}
func (m *KeyMetadata) GetCreatedTime() *timestamp.Timestamp {
if m != nil {
return m.CreatedTime
}
return nil
}
func (m *KeyMetadata) GetUpdatedTime() *timestamp.Timestamp {
if m != nil {
return m.UpdatedTime
}
return nil
}
func (m *KeyMetadata) GetMaxVersions() uint32 {
if m != nil {
return m.MaxVersions
}
return 0
}
func (m *KeyMetadata) GetCasRequired() bool {
if m != nil {
return m.CasRequired
}
return false
}
func (m *KeyMetadata) GetDeleteVersionAfter() *duration.Duration {
if m != nil {
return m.DeleteVersionAfter
}
return nil
}
type Version struct {
// Data is a JSON object with string keys that
// represents the user supplied data.
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// CreatedTime is when the version was created.
CreatedTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"`
// DeletionTime is the time this version becomes invalid.
// Set to Now() to delete the version before the configured
// deletion time.
DeletionTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=deletion_time,json=deletionTime,proto3" json:"deletion_time,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Version) Reset() { *m = Version{} }
func (m *Version) String() string { return proto.CompactTextString(m) }
func (*Version) ProtoMessage() {}
func (*Version) Descriptor() ([]byte, []int) {
return fileDescriptor_d938547f84707355, []int{3}
}
func (m *Version) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Version.Unmarshal(m, b)
}
func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Version.Marshal(b, m, deterministic)
}
func (m *Version) XXX_Merge(src proto.Message) {
xxx_messageInfo_Version.Merge(m, src)
}
func (m *Version) XXX_Size() int {
return xxx_messageInfo_Version.Size(m)
}
func (m *Version) XXX_DiscardUnknown() {
xxx_messageInfo_Version.DiscardUnknown(m)
}
var xxx_messageInfo_Version proto.InternalMessageInfo
func (m *Version) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
func (m *Version) GetCreatedTime() *timestamp.Timestamp {
if m != nil {
return m.CreatedTime
}
return nil
}
func (m *Version) GetDeletionTime() *timestamp.Timestamp {
if m != nil {
return m.DeletionTime
}
return nil
}
type UpgradeInfo struct {
// Started time is when the upgrade was started.
StartedTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=started_time,json=startedTime,proto3" json:"started_time,omitempty"`
// done is set to true once the backend has been successfully
// upgraded.
Done bool `protobuf:"varint,2,opt,name=done,proto3" json:"done,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpgradeInfo) Reset() { *m = UpgradeInfo{} }
func (m *UpgradeInfo) String() string { return proto.CompactTextString(m) }
func (*UpgradeInfo) ProtoMessage() {}
func (*UpgradeInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_d938547f84707355, []int{4}
}
func (m *UpgradeInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpgradeInfo.Unmarshal(m, b)
}
func (m *UpgradeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpgradeInfo.Marshal(b, m, deterministic)
}
func (m *UpgradeInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpgradeInfo.Merge(m, src)
}
func (m *UpgradeInfo) XXX_Size() int {
return xxx_messageInfo_UpgradeInfo.Size(m)
}
func (m *UpgradeInfo) XXX_DiscardUnknown() {
xxx_messageInfo_UpgradeInfo.DiscardUnknown(m)
}
var xxx_messageInfo_UpgradeInfo proto.InternalMessageInfo
func (m *UpgradeInfo) GetStartedTime() *timestamp.Timestamp {
if m != nil {
return m.StartedTime
}
return nil
}
func (m *UpgradeInfo) GetDone() bool {
if m != nil {
return m.Done
}
return false
}
func init() {
proto.RegisterType((*Configuration)(nil), "kv.Configuration")
proto.RegisterType((*VersionMetadata)(nil), "kv.VersionMetadata")
proto.RegisterType((*KeyMetadata)(nil), "kv.KeyMetadata")
proto.RegisterMapType((map[uint64]*VersionMetadata)(nil), "kv.KeyMetadata.VersionsEntry")
proto.RegisterType((*Version)(nil), "kv.Version")
proto.RegisterType((*UpgradeInfo)(nil), "kv.UpgradeInfo")
}
func init() { proto.RegisterFile("types.proto", fileDescriptor_d938547f84707355) }
var fileDescriptor_d938547f84707355 = []byte{
// 484 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0xcd, 0x8e, 0xd3, 0x30,
0x18, 0x54, 0xd2, 0xec, 0x6e, 0xfb, 0x39, 0xd9, 0x45, 0x86, 0x43, 0xa9, 0xf8, 0x29, 0x91, 0x10,
0xe5, 0x92, 0x95, 0xca, 0x05, 0x90, 0x56, 0x08, 0x01, 0x07, 0xb4, 0x42, 0x42, 0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