-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.pb.go
13130 lines (12818 loc) · 327 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
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: types.proto
package services
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "github.com/gogo/protobuf/gogoproto"
import _ "github.com/golang/protobuf/ptypes/timestamp"
import time "time"
import github_com_gravitational_teleport "github.com/gravitational/teleport"
import github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
import io "io"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
var _ = time.Kitchen
// 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 KeepAlive struct {
// ServerName is a server name to keep alive
ServerName string `protobuf:"bytes,1,opt,name=ServerName,proto3" json:"server_name"`
// Namespace is a server namespace
Namespace string `protobuf:"bytes,2,opt,name=Namespace,proto3" json:"namespace"`
// LeaseID is ID of the lease
LeaseID int64 `protobuf:"varint,3,opt,name=LeaseID,proto3" json:"lease_id"`
// Expires is set to update expiry time
Expires time.Time `protobuf:"bytes,4,opt,name=Expires,stdtime" json:"expires"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *KeepAlive) Reset() { *m = KeepAlive{} }
func (m *KeepAlive) String() string { return proto.CompactTextString(m) }
func (*KeepAlive) ProtoMessage() {}
func (*KeepAlive) Descriptor() ([]byte, []int) {
return fileDescriptor_types_2b5c12fba672b93f, []int{0}
}
func (m *KeepAlive) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *KeepAlive) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_KeepAlive.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *KeepAlive) XXX_Merge(src proto.Message) {
xxx_messageInfo_KeepAlive.Merge(dst, src)
}
func (m *KeepAlive) XXX_Size() int {
return m.Size()
}
func (m *KeepAlive) XXX_DiscardUnknown() {
xxx_messageInfo_KeepAlive.DiscardUnknown(m)
}
var xxx_messageInfo_KeepAlive proto.InternalMessageInfo
// Metadata is resource metadata
type Metadata struct {
// Name is an object name
Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"name"`
// Namespace is object namespace. The field should be called "namespace"
// when it returns in Teleport 2.4.
Namespace string `protobuf:"bytes,2,opt,name=Namespace,proto3" json:"-"`
// Description is object description
Description string `protobuf:"bytes,3,opt,name=Description,proto3" json:"description,omitempty"`
// Labels is a set of labels
Labels map[string]string `protobuf:"bytes,5,rep,name=Labels" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Expires is a global expiry time header can be set on any resource in the system.
Expires *time.Time `protobuf:"bytes,6,opt,name=Expires,stdtime" json:"expires,omitempty"`
// ID is a record ID
ID int64 `protobuf:"varint,7,opt,name=ID,proto3" json:"id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Metadata) Reset() { *m = Metadata{} }
func (m *Metadata) String() string { return proto.CompactTextString(m) }
func (*Metadata) ProtoMessage() {}
func (*Metadata) Descriptor() ([]byte, []int) {
return fileDescriptor_types_2b5c12fba672b93f, []int{1}
}
func (m *Metadata) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Metadata.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *Metadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_Metadata.Merge(dst, src)
}
func (m *Metadata) XXX_Size() int {
return m.Size()
}
func (m *Metadata) XXX_DiscardUnknown() {
xxx_messageInfo_Metadata.DiscardUnknown(m)
}
var xxx_messageInfo_Metadata proto.InternalMessageInfo
// Rotation is a status of the rotation of the certificate authority
type Rotation struct {
// State could be one of "init" or "in_progress".
State string `protobuf:"bytes,1,opt,name=State,proto3" json:"state,omitempty"`
// Phase is the current rotation phase.
Phase string `protobuf:"bytes,2,opt,name=Phase,proto3" json:"phase,omitempty"`
// Mode sets manual or automatic rotation mode.
Mode string `protobuf:"bytes,3,opt,name=Mode,proto3" json:"mode,omitempty"`
// CurrentID is the ID of the rotation operation
// to differentiate between rotation attempts.
CurrentID string `protobuf:"bytes,4,opt,name=CurrentID,proto3" json:"current_id"`
// Started is set to the time when rotation has been started
// in case if the state of the rotation is "in_progress".
Started time.Time `protobuf:"bytes,5,opt,name=Started,stdtime" json:"started,omitempty"`
// GracePeriod is a period during which old and new CA
// are valid for checking purposes, but only new CA is issuing certificates.
GracePeriod Duration `protobuf:"varint,6,opt,name=GracePeriod,proto3,casttype=Duration" json:"grace_period,omitempty"`
// LastRotated specifies the last time of the completed rotation.
LastRotated time.Time `protobuf:"bytes,7,opt,name=LastRotated,stdtime" json:"last_rotated,omitempty"`
// Schedule is a rotation schedule - used in
// automatic mode to switch beetween phases.
Schedule RotationSchedule `protobuf:"bytes,8,opt,name=Schedule" json:"schedule,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Rotation) Reset() { *m = Rotation{} }
func (*Rotation) ProtoMessage() {}
func (*Rotation) Descriptor() ([]byte, []int) {
return fileDescriptor_types_2b5c12fba672b93f, []int{2}
}
func (m *Rotation) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Rotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Rotation.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *Rotation) XXX_Merge(src proto.Message) {
xxx_messageInfo_Rotation.Merge(dst, src)
}
func (m *Rotation) XXX_Size() int {
return m.Size()
}
func (m *Rotation) XXX_DiscardUnknown() {
xxx_messageInfo_Rotation.DiscardUnknown(m)
}
var xxx_messageInfo_Rotation proto.InternalMessageInfo
// RotationSchedule is a rotation schedule setting time switches
// for different phases.
type RotationSchedule struct {
// UpdateClients specifies time to switch to the "Update clients" phase
UpdateClients time.Time `protobuf:"bytes,1,opt,name=UpdateClients,stdtime" json:"update_clients,omitempty"`
// UpdateServers specifies time to switch to the "Update servers" phase.
UpdateServers time.Time `protobuf:"bytes,2,opt,name=UpdateServers,stdtime" json:"update_servers,omitempty"`
// Standby specifies time to switch to the "Standby" phase.
Standby time.Time `protobuf:"bytes,3,opt,name=Standby,stdtime" json:"standby,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RotationSchedule) Reset() { *m = RotationSchedule{} }
func (m *RotationSchedule) String() string { return proto.CompactTextString(m) }
func (*RotationSchedule) ProtoMessage() {}
func (*RotationSchedule) Descriptor() ([]byte, []int) {
return fileDescriptor_types_2b5c12fba672b93f, []int{3}
}
func (m *RotationSchedule) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RotationSchedule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RotationSchedule.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *RotationSchedule) XXX_Merge(src proto.Message) {
xxx_messageInfo_RotationSchedule.Merge(dst, src)
}
func (m *RotationSchedule) XXX_Size() int {
return m.Size()
}
func (m *RotationSchedule) XXX_DiscardUnknown() {
xxx_messageInfo_RotationSchedule.DiscardUnknown(m)
}
var xxx_messageInfo_RotationSchedule proto.InternalMessageInfo
// ResorceHeader is a shared resource header
// used in cases when only type and name is known
type ResourceHeader struct {
// Kind is a resource kind
Kind string `protobuf:"bytes,1,opt,name=Kind,proto3" json:"kind,omitempty"`
// SubKind is an optional resource sub kind, used in some resources
SubKind string `protobuf:"bytes,2,opt,name=SubKind,proto3" json:"sub_kind,omitempty"`
// Version is version
Version string `protobuf:"bytes,3,opt,name=Version,proto3" json:"version,omitempty"`
// Metadata is User metadata
Metadata Metadata `protobuf:"bytes,4,opt,name=Metadata" json:"metadata,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ResourceHeader) Reset() { *m = ResourceHeader{} }
func (m *ResourceHeader) String() string { return proto.CompactTextString(m) }
func (*ResourceHeader) ProtoMessage() {}
func (*ResourceHeader) Descriptor() ([]byte, []int) {
return fileDescriptor_types_2b5c12fba672b93f, []int{4}
}
func (m *ResourceHeader) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ResourceHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ResourceHeader.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *ResourceHeader) XXX_Merge(src proto.Message) {
xxx_messageInfo_ResourceHeader.Merge(dst, src)
}
func (m *ResourceHeader) XXX_Size() int {
return m.Size()
}
func (m *ResourceHeader) XXX_DiscardUnknown() {
xxx_messageInfo_ResourceHeader.DiscardUnknown(m)
}
var xxx_messageInfo_ResourceHeader proto.InternalMessageInfo
// ServerV2 represents a Node, Proxy or Auth server in a Teleport cluster
type ServerV2 struct {
// Kind is a resource kind
Kind string `protobuf:"bytes,1,opt,name=Kind,proto3" json:"kind"`
// SubKind is an optional resource sub kind, used in some resources
SubKind string `protobuf:"bytes,2,opt,name=SubKind,proto3" json:"sub_kind,omitempty"`
// Version is version
Version string `protobuf:"bytes,3,opt,name=Version,proto3" json:"version"`
// Metadata is User metadata
Metadata Metadata `protobuf:"bytes,4,opt,name=Metadata" json:"metadata"`
// Spec is a server spec
Spec ServerSpecV2 `protobuf:"bytes,5,opt,name=Spec" json:"spec"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServerV2) Reset() { *m = ServerV2{} }
func (*ServerV2) ProtoMessage() {}
func (*ServerV2) Descriptor() ([]byte, []int) {
return fileDescriptor_types_2b5c12fba672b93f, []int{5}
}
func (m *ServerV2) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ServerV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ServerV2.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *ServerV2) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServerV2.Merge(dst, src)
}
func (m *ServerV2) XXX_Size() int {
return m.Size()
}
func (m *ServerV2) XXX_DiscardUnknown() {
xxx_messageInfo_ServerV2.DiscardUnknown(m)
}
var xxx_messageInfo_ServerV2 proto.InternalMessageInfo
// ServerSpecV2 is a specification for V2 Server
type ServerSpecV2 struct {
// Addr is server host:port address
Addr string `protobuf:"bytes,1,opt,name=Addr,proto3" json:"addr"`
// PublicAddr is the public address this cluster can be reached at.
PublicAddr string `protobuf:"bytes,2,opt,name=PublicAddr,proto3" json:"public_addr,omitempty"`
// Hostname is server hostname
Hostname string `protobuf:"bytes,3,opt,name=Hostname,proto3" json:"hostname"`
// CmdLabels is server dynamic labels
CmdLabels map[string]CommandLabelV2 `protobuf:"bytes,4,rep,name=CmdLabels" json:"cmd_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"`
// Rotation specifies server rotation
Rotation Rotation `protobuf:"bytes,5,opt,name=Rotation" json:"rotation,omitempty"`
// UseTunnel indicates that connections to this server should occur over a
// reverse tunnel.
UseTunnel bool `protobuf:"varint,6,opt,name=UseTunnel,proto3" json:"use_tunnel,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServerSpecV2) Reset() { *m = ServerSpecV2{} }
func (m *ServerSpecV2) String() string { return proto.CompactTextString(m) }
func (*ServerSpecV2) ProtoMessage() {}
func (*ServerSpecV2) Descriptor() ([]byte, []int) {
return fileDescriptor_types_2b5c12fba672b93f, []int{6}
}
func (m *ServerSpecV2) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ServerSpecV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ServerSpecV2.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *ServerSpecV2) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServerSpecV2.Merge(dst, src)
}
func (m *ServerSpecV2) XXX_Size() int {
return m.Size()
}
func (m *ServerSpecV2) XXX_DiscardUnknown() {
xxx_messageInfo_ServerSpecV2.DiscardUnknown(m)
}
var xxx_messageInfo_ServerSpecV2 proto.InternalMessageInfo
// CommandLabelV2 is a label that has a value as a result of the
// output generated by running command, e.g. hostname
type CommandLabelV2 struct {
// Period is a time between command runs
Period Duration `protobuf:"varint,1,opt,name=Period,proto3,casttype=Duration" json:"period"`
// Command is a command to run
Command []string `protobuf:"bytes,2,rep,name=Command" json:"command"`
// Result captures standard output
Result string `protobuf:"bytes,3,opt,name=Result,proto3" json:"result"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CommandLabelV2) Reset() { *m = CommandLabelV2{} }
func (m *CommandLabelV2) String() string { return proto.CompactTextString(m) }
func (*CommandLabelV2) ProtoMessage() {}
func (*CommandLabelV2) Descriptor() ([]byte, []int) {
return fileDescriptor_types_2b5c12fba672b93f, []int{7}
}
func (m *CommandLabelV2) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *CommandLabelV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_CommandLabelV2.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *CommandLabelV2) XXX_Merge(src proto.Message) {
xxx_messageInfo_CommandLabelV2.Merge(dst, src)
}
func (m *CommandLabelV2) XXX_Size() int {
return m.Size()
}
func (m *CommandLabelV2) XXX_DiscardUnknown() {
xxx_messageInfo_CommandLabelV2.DiscardUnknown(m)
}
var xxx_messageInfo_CommandLabelV2 proto.InternalMessageInfo
// TLSKeyPair is a TLS key pair
type TLSKeyPair struct {
// Cert is a PEM encoded TLS cert
Cert []byte `protobuf:"bytes,1,opt,name=Cert,proto3" json:"cert,omitempty"`
// Key is a PEM encoded TLS key
Key []byte `protobuf:"bytes,2,opt,name=Key,proto3" json:"key,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TLSKeyPair) Reset() { *m = TLSKeyPair{} }
func (m *TLSKeyPair) String() string { return proto.CompactTextString(m) }
func (*TLSKeyPair) ProtoMessage() {}
func (*TLSKeyPair) Descriptor() ([]byte, []int) {
return fileDescriptor_types_2b5c12fba672b93f, []int{8}
}
func (m *TLSKeyPair) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *TLSKeyPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_TLSKeyPair.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *TLSKeyPair) XXX_Merge(src proto.Message) {
xxx_messageInfo_TLSKeyPair.Merge(dst, src)
}
func (m *TLSKeyPair) XXX_Size() int {
return m.Size()
}
func (m *TLSKeyPair) XXX_DiscardUnknown() {
xxx_messageInfo_TLSKeyPair.DiscardUnknown(m)
}
var xxx_messageInfo_TLSKeyPair proto.InternalMessageInfo
// CertAuthorityV2 is version 2 resource spec for Cert Authority
type CertAuthorityV2 struct {
// Kind is a resource kind
Kind string `protobuf:"bytes,1,opt,name=Kind,proto3" json:"kind"`
// SubKind is an optional resource sub kind, used in some resources
SubKind string `protobuf:"bytes,2,opt,name=SubKind,proto3" json:"sub_kind,omitempty"`
// Version is version
Version string `protobuf:"bytes,3,opt,name=Version,proto3" json:"version"`
// Metadata is connector metadata
Metadata Metadata `protobuf:"bytes,4,opt,name=Metadata" json:"metadata"`
// Spec contains cert authority specification
Spec CertAuthoritySpecV2 `protobuf:"bytes,5,opt,name=Spec" json:"spec"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CertAuthorityV2) Reset() { *m = CertAuthorityV2{} }
func (*CertAuthorityV2) ProtoMessage() {}
func (*CertAuthorityV2) Descriptor() ([]byte, []int) {
return fileDescriptor_types_2b5c12fba672b93f, []int{9}
}
func (m *CertAuthorityV2) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *CertAuthorityV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_CertAuthorityV2.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *CertAuthorityV2) XXX_Merge(src proto.Message) {
xxx_messageInfo_CertAuthorityV2.Merge(dst, src)
}
func (m *CertAuthorityV2) XXX_Size() int {
return m.Size()
}
func (m *CertAuthorityV2) XXX_DiscardUnknown() {
xxx_messageInfo_CertAuthorityV2.DiscardUnknown(m)
}
var xxx_messageInfo_CertAuthorityV2 proto.InternalMessageInfo
// CertAuthoritySpecV2 is a host or user certificate authority that
// can check and if it has private key stored as well, sign it too
type CertAuthoritySpecV2 struct {
// Type is either user or host certificate authority
Type CertAuthType `protobuf:"bytes,1,opt,name=Type,proto3,casttype=CertAuthType" json:"type"`
// DELETE IN(2.7.0) this field is deprecated,
// as resource name matches cluster name after migrations.
// and this property is enforced by the auth server code.
// ClusterName identifies cluster name this authority serves,
// for host authorities that means base hostname of all servers,
// for user authorities that means organization name
ClusterName string `protobuf:"bytes,2,opt,name=ClusterName,proto3" json:"cluster_name"`
// Checkers is a list of SSH public keys that can be used to check
// certificate signatures
CheckingKeys [][]byte `protobuf:"bytes,3,rep,name=CheckingKeys" json:"checking_keys"`
// SigningKeys is a list of private keys used for signing
SigningKeys [][]byte `protobuf:"bytes,4,rep,name=SigningKeys" json:"signing_keys,omitempty"`
// Roles is a list of roles assumed by users signed by this CA
Roles []string `protobuf:"bytes,5,rep,name=Roles" json:"roles,omitempty"`
// RoleMap specifies role mappings to remote roles
RoleMap []RoleMapping `protobuf:"bytes,6,rep,name=RoleMap" json:"role_map,omitempty"`
// TLS is a list of TLS key pairs
TLSKeyPairs []TLSKeyPair `protobuf:"bytes,7,rep,name=TLSKeyPairs" json:"tls_key_pairs,omitempty"`
// Rotation is a status of the certificate authority rotation
Rotation *Rotation `protobuf:"bytes,8,opt,name=Rotation" json:"rotation,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CertAuthoritySpecV2) Reset() { *m = CertAuthoritySpecV2{} }
func (m *CertAuthoritySpecV2) String() string { return proto.CompactTextString(m) }
func (*CertAuthoritySpecV2) ProtoMessage() {}
func (*CertAuthoritySpecV2) Descriptor() ([]byte, []int) {
return fileDescriptor_types_2b5c12fba672b93f, []int{10}
}
func (m *CertAuthoritySpecV2) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *CertAuthoritySpecV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_CertAuthoritySpecV2.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *CertAuthoritySpecV2) XXX_Merge(src proto.Message) {
xxx_messageInfo_CertAuthoritySpecV2.Merge(dst, src)
}
func (m *CertAuthoritySpecV2) XXX_Size() int {
return m.Size()
}
func (m *CertAuthoritySpecV2) XXX_DiscardUnknown() {
xxx_messageInfo_CertAuthoritySpecV2.DiscardUnknown(m)
}
var xxx_messageInfo_CertAuthoritySpecV2 proto.InternalMessageInfo
// RoleMappping provides mapping of remote roles to local roles
// for trusted clusters
type RoleMapping struct {
// Remote specifies remote role name to map from
Remote string `protobuf:"bytes,1,opt,name=Remote,proto3" json:"remote"`
// Local specifies local roles to map to
Local []string `protobuf:"bytes,2,rep,name=Local" json:"local"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RoleMapping) Reset() { *m = RoleMapping{} }
func (m *RoleMapping) String() string { return proto.CompactTextString(m) }
func (*RoleMapping) ProtoMessage() {}
func (*RoleMapping) Descriptor() ([]byte, []int) {
return fileDescriptor_types_2b5c12fba672b93f, []int{11}
}
func (m *RoleMapping) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RoleMapping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RoleMapping.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *RoleMapping) XXX_Merge(src proto.Message) {
xxx_messageInfo_RoleMapping.Merge(dst, src)
}
func (m *RoleMapping) XXX_Size() int {
return m.Size()
}
func (m *RoleMapping) XXX_DiscardUnknown() {
xxx_messageInfo_RoleMapping.DiscardUnknown(m)
}
var xxx_messageInfo_RoleMapping proto.InternalMessageInfo
// ProvisionTokenV1 is a provisioning token V1
type ProvisionTokenV1 struct {
// Roles is a list of roles associated with the token,
// that will be converted to metadata in the SSH and X509
// certificates issued to the user of the token
Roles []github_com_gravitational_teleport.Role `protobuf:"bytes,1,rep,name=Roles,casttype=github.com/gravitational/teleport.Role" json:"roles"`
// Expires is a global expiry time header can be set on any resource in the system.
Expires time.Time `protobuf:"bytes,2,opt,name=Expires,stdtime" json:"expires,omitempty"`
// Token is a token name
Token string `protobuf:"bytes,3,opt,name=Token,proto3" json:"token"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProvisionTokenV1) Reset() { *m = ProvisionTokenV1{} }
func (*ProvisionTokenV1) ProtoMessage() {}
func (*ProvisionTokenV1) Descriptor() ([]byte, []int) {
return fileDescriptor_types_2b5c12fba672b93f, []int{12}
}
func (m *ProvisionTokenV1) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ProvisionTokenV1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ProvisionTokenV1.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *ProvisionTokenV1) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProvisionTokenV1.Merge(dst, src)
}
func (m *ProvisionTokenV1) XXX_Size() int {
return m.Size()
}
func (m *ProvisionTokenV1) XXX_DiscardUnknown() {
xxx_messageInfo_ProvisionTokenV1.DiscardUnknown(m)
}
var xxx_messageInfo_ProvisionTokenV1 proto.InternalMessageInfo
// ProvisionTokenV2 specifies provisioning token
type ProvisionTokenV2 struct {
// Kind is a resource kind
Kind string `protobuf:"bytes,1,opt,name=Kind,proto3" json:"kind"`
// SubKind is an optional resource sub kind, used in some resources
SubKind string `protobuf:"bytes,2,opt,name=SubKind,proto3" json:"sub_kind,omitempty"`
// Version is version
Version string `protobuf:"bytes,3,opt,name=Version,proto3" json:"version"`
// Metadata is User metadata
Metadata Metadata `protobuf:"bytes,4,opt,name=Metadata" json:"metadata"`
// Spec is a provisioning token V2 spec
Spec ProvisionTokenSpecV2 `protobuf:"bytes,5,opt,name=Spec" json:"spec"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProvisionTokenV2) Reset() { *m = ProvisionTokenV2{} }
func (*ProvisionTokenV2) ProtoMessage() {}
func (*ProvisionTokenV2) Descriptor() ([]byte, []int) {
return fileDescriptor_types_2b5c12fba672b93f, []int{13}
}
func (m *ProvisionTokenV2) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ProvisionTokenV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ProvisionTokenV2.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *ProvisionTokenV2) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProvisionTokenV2.Merge(dst, src)
}
func (m *ProvisionTokenV2) XXX_Size() int {
return m.Size()
}
func (m *ProvisionTokenV2) XXX_DiscardUnknown() {
xxx_messageInfo_ProvisionTokenV2.DiscardUnknown(m)
}
var xxx_messageInfo_ProvisionTokenV2 proto.InternalMessageInfo
// ProvisionTokenSpecV2 is a specification for V2 token
type ProvisionTokenSpecV2 struct {
// Roles is a list of roles associated with the token,
// that will be converted to metadata in the SSH and X509
// certificates issued to the user of the token
Roles []github_com_gravitational_teleport.Role `protobuf:"bytes,1,rep,name=Roles,casttype=github.com/gravitational/teleport.Role" json:"roles"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProvisionTokenSpecV2) Reset() { *m = ProvisionTokenSpecV2{} }
func (m *ProvisionTokenSpecV2) String() string { return proto.CompactTextString(m) }
func (*ProvisionTokenSpecV2) ProtoMessage() {}
func (*ProvisionTokenSpecV2) Descriptor() ([]byte, []int) {
return fileDescriptor_types_2b5c12fba672b93f, []int{14}
}
func (m *ProvisionTokenSpecV2) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ProvisionTokenSpecV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ProvisionTokenSpecV2.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *ProvisionTokenSpecV2) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProvisionTokenSpecV2.Merge(dst, src)
}
func (m *ProvisionTokenSpecV2) XXX_Size() int {
return m.Size()
}
func (m *ProvisionTokenSpecV2) XXX_DiscardUnknown() {
xxx_messageInfo_ProvisionTokenSpecV2.DiscardUnknown(m)
}
var xxx_messageInfo_ProvisionTokenSpecV2 proto.InternalMessageInfo
// StaticTokensV2 implements the StaticTokens interface.
type StaticTokensV2 struct {
// Kind is a resource kind
Kind string `protobuf:"bytes,1,opt,name=Kind,proto3" json:"kind"`
// SubKind is an optional resource sub kind, used in some resources
SubKind string `protobuf:"bytes,2,opt,name=SubKind,proto3" json:"sub_kind,omitempty"`
// Version is version
Version string `protobuf:"bytes,3,opt,name=Version,proto3" json:"version"`
// Metadata is User metadata
Metadata Metadata `protobuf:"bytes,4,opt,name=Metadata" json:"metadata"`
// Spec is a provisioning token V2 spec
Spec StaticTokensSpecV2 `protobuf:"bytes,5,opt,name=Spec" json:"spec"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StaticTokensV2) Reset() { *m = StaticTokensV2{} }
func (*StaticTokensV2) ProtoMessage() {}
func (*StaticTokensV2) Descriptor() ([]byte, []int) {
return fileDescriptor_types_2b5c12fba672b93f, []int{15}
}
func (m *StaticTokensV2) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *StaticTokensV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_StaticTokensV2.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *StaticTokensV2) XXX_Merge(src proto.Message) {
xxx_messageInfo_StaticTokensV2.Merge(dst, src)
}
func (m *StaticTokensV2) XXX_Size() int {
return m.Size()
}
func (m *StaticTokensV2) XXX_DiscardUnknown() {
xxx_messageInfo_StaticTokensV2.DiscardUnknown(m)
}
var xxx_messageInfo_StaticTokensV2 proto.InternalMessageInfo
// StaticTokensSpecV2 is the actual data we care about for StaticTokensSpecV2.
type StaticTokensSpecV2 struct {
// StaticTokens is a list of tokens that can be used to add nodes to the
// cluster.
StaticTokens []ProvisionTokenV1 `protobuf:"bytes,1,rep,name=StaticTokens" json:"static_tokens"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StaticTokensSpecV2) Reset() { *m = StaticTokensSpecV2{} }
func (m *StaticTokensSpecV2) String() string { return proto.CompactTextString(m) }
func (*StaticTokensSpecV2) ProtoMessage() {}
func (*StaticTokensSpecV2) Descriptor() ([]byte, []int) {
return fileDescriptor_types_2b5c12fba672b93f, []int{16}
}
func (m *StaticTokensSpecV2) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *StaticTokensSpecV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_StaticTokensSpecV2.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *StaticTokensSpecV2) XXX_Merge(src proto.Message) {
xxx_messageInfo_StaticTokensSpecV2.Merge(dst, src)
}
func (m *StaticTokensSpecV2) XXX_Size() int {
return m.Size()
}
func (m *StaticTokensSpecV2) XXX_DiscardUnknown() {
xxx_messageInfo_StaticTokensSpecV2.DiscardUnknown(m)
}
var xxx_messageInfo_StaticTokensSpecV2 proto.InternalMessageInfo
// ClusterNameV2 implements the ClusterName interface.
type ClusterNameV2 struct {
// Kind is a resource kind
Kind string `protobuf:"bytes,1,opt,name=Kind,proto3" json:"kind"`
// SubKind is an optional resource sub kind, used in some resources
SubKind string `protobuf:"bytes,2,opt,name=SubKind,proto3" json:"sub_kind,omitempty"`
// Version is version
Version string `protobuf:"bytes,3,opt,name=Version,proto3" json:"version"`
// Metadata is User metadata
Metadata Metadata `protobuf:"bytes,4,opt,name=Metadata" json:"metadata"`
// Spec is a cluster name V2 spec
Spec ClusterNameSpecV2 `protobuf:"bytes,5,opt,name=Spec" json:"spec"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ClusterNameV2) Reset() { *m = ClusterNameV2{} }
func (*ClusterNameV2) ProtoMessage() {}
func (*ClusterNameV2) Descriptor() ([]byte, []int) {
return fileDescriptor_types_2b5c12fba672b93f, []int{17}
}
func (m *ClusterNameV2) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ClusterNameV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ClusterNameV2.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *ClusterNameV2) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClusterNameV2.Merge(dst, src)
}
func (m *ClusterNameV2) XXX_Size() int {
return m.Size()
}
func (m *ClusterNameV2) XXX_DiscardUnknown() {
xxx_messageInfo_ClusterNameV2.DiscardUnknown(m)
}
var xxx_messageInfo_ClusterNameV2 proto.InternalMessageInfo
// ClusterNameSpecV2 is the actual data we care about for ClusterName.
type ClusterNameSpecV2 struct {
// ClusterName is the name of the cluster. Changing this value once the
// cluster is setup can and will cause catastrophic problems.
ClusterName string `protobuf:"bytes,1,opt,name=ClusterName,proto3" json:"cluster_name"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ClusterNameSpecV2) Reset() { *m = ClusterNameSpecV2{} }
func (m *ClusterNameSpecV2) String() string { return proto.CompactTextString(m) }
func (*ClusterNameSpecV2) ProtoMessage() {}
func (*ClusterNameSpecV2) Descriptor() ([]byte, []int) {
return fileDescriptor_types_2b5c12fba672b93f, []int{18}
}
func (m *ClusterNameSpecV2) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ClusterNameSpecV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ClusterNameSpecV2.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *ClusterNameSpecV2) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClusterNameSpecV2.Merge(dst, src)
}
func (m *ClusterNameSpecV2) XXX_Size() int {
return m.Size()
}
func (m *ClusterNameSpecV2) XXX_DiscardUnknown() {
xxx_messageInfo_ClusterNameSpecV2.DiscardUnknown(m)
}
var xxx_messageInfo_ClusterNameSpecV2 proto.InternalMessageInfo
// ClusterConfigV3 implements the ClusterConfig interface.
type ClusterConfigV3 struct {
// Kind is a resource kind
Kind string `protobuf:"bytes,1,opt,name=Kind,proto3" json:"kind"`
// SubKind is an optional resource sub kind, used in some resources
SubKind string `protobuf:"bytes,2,opt,name=SubKind,proto3" json:"sub_kind,omitempty"`
// Version is version
Version string `protobuf:"bytes,3,opt,name=Version,proto3" json:"version"`
// Metadata is User metadata
Metadata Metadata `protobuf:"bytes,4,opt,name=Metadata" json:"metadata"`
// Spec is a cluster config V3 spec
Spec ClusterConfigSpecV3 `protobuf:"bytes,5,opt,name=Spec" json:"spec"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ClusterConfigV3) Reset() { *m = ClusterConfigV3{} }
func (*ClusterConfigV3) ProtoMessage() {}
func (*ClusterConfigV3) Descriptor() ([]byte, []int) {
return fileDescriptor_types_2b5c12fba672b93f, []int{19}
}
func (m *ClusterConfigV3) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ClusterConfigV3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ClusterConfigV3.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *ClusterConfigV3) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClusterConfigV3.Merge(dst, src)
}
func (m *ClusterConfigV3) XXX_Size() int {