forked from google/certificate-transparency-go
/
config.pb.go
265 lines (237 loc) · 10.2 KB
/
config.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: config.proto
package configpb
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import any "github.com/golang/protobuf/ptypes/any"
import duration "github.com/golang/protobuf/ptypes/duration"
import keyspb "github.com/google/trillian/crypto/keyspb"
// 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
// LogConfig describes the configuration options for a Log.
type LogConfig struct {
// Human-readable name for the log; must be unique
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Base URL for the log.
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
// Log's public key. This is optional, but if omitted signatures from
// the log will not be checked.
PublicKey *keyspb.PublicKey `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
// Minimum interval between requests to the log, for rate limiting.
MinReqInterval *duration.Duration `protobuf:"bytes,4,opt,name=min_req_interval,json=minReqInterval,proto3" json:"min_req_interval,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LogConfig) Reset() { *m = LogConfig{} }
func (m *LogConfig) String() string { return proto.CompactTextString(m) }
func (*LogConfig) ProtoMessage() {}
func (*LogConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_config_5de92fef3264bcc3, []int{0}
}
func (m *LogConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LogConfig.Unmarshal(m, b)
}
func (m *LogConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LogConfig.Marshal(b, m, deterministic)
}
func (dst *LogConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_LogConfig.Merge(dst, src)
}
func (m *LogConfig) XXX_Size() int {
return xxx_messageInfo_LogConfig.Size(m)
}
func (m *LogConfig) XXX_DiscardUnknown() {
xxx_messageInfo_LogConfig.DiscardUnknown(m)
}
var xxx_messageInfo_LogConfig proto.InternalMessageInfo
func (m *LogConfig) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *LogConfig) GetUrl() string {
if m != nil {
return m.Url
}
return ""
}
func (m *LogConfig) GetPublicKey() *keyspb.PublicKey {
if m != nil {
return m.PublicKey
}
return nil
}
func (m *LogConfig) GetMinReqInterval() *duration.Duration {
if m != nil {
return m.MinReqInterval
}
return nil
}
// GossipConfig describes the configuration of a gossiper.
type GossipConfig struct {
// The source logs whose STHs will be logged.
SourceLog []*LogConfig `protobuf:"bytes,1,rep,name=source_log,json=sourceLog,proto3" json:"source_log,omitempty"`
// The destination logs to which the minimal-gossip certificates will
// be submitted. These destination logs need to be configured to accept
// root_cert as an acceptable root.
DestLog []*LogConfig `protobuf:"bytes,2,rep,name=dest_log,json=destLog,proto3" json:"dest_log,omitempty"`
// The root certificate used for submissions, in PEM format; this should
// include the public key corresponding to private_key below.
RootCert string `protobuf:"bytes,3,opt,name=root_cert,json=rootCert,proto3" json:"root_cert,omitempty"`
// The private key that will be used to sign synthetic leaf certificates
// that chain to the root_cert.
PrivateKey *any.Any `protobuf:"bytes,4,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
// Number of buffered STHs allowed.
// TODO(drysdale): investigate sensible ranges for this.
BufferSize int32 `protobuf:"varint,5,opt,name=buffer_size,json=bufferSize,proto3" json:"buffer_size,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GossipConfig) Reset() { *m = GossipConfig{} }
func (m *GossipConfig) String() string { return proto.CompactTextString(m) }
func (*GossipConfig) ProtoMessage() {}
func (*GossipConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_config_5de92fef3264bcc3, []int{1}
}
func (m *GossipConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GossipConfig.Unmarshal(m, b)
}
func (m *GossipConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GossipConfig.Marshal(b, m, deterministic)
}
func (dst *GossipConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_GossipConfig.Merge(dst, src)
}
func (m *GossipConfig) XXX_Size() int {
return xxx_messageInfo_GossipConfig.Size(m)
}
func (m *GossipConfig) XXX_DiscardUnknown() {
xxx_messageInfo_GossipConfig.DiscardUnknown(m)
}
var xxx_messageInfo_GossipConfig proto.InternalMessageInfo
func (m *GossipConfig) GetSourceLog() []*LogConfig {
if m != nil {
return m.SourceLog
}
return nil
}
func (m *GossipConfig) GetDestLog() []*LogConfig {
if m != nil {
return m.DestLog
}
return nil
}
func (m *GossipConfig) GetRootCert() string {
if m != nil {
return m.RootCert
}
return ""
}
func (m *GossipConfig) GetPrivateKey() *any.Any {
if m != nil {
return m.PrivateKey
}
return nil
}
func (m *GossipConfig) GetBufferSize() int32 {
if m != nil {
return m.BufferSize
}
return 0
}
// GoshawkConfig describes the configuration of a gossiper.
type GoshawkConfig struct {
// The source logs whose STHs will be checked.
SourceLog []*LogConfig `protobuf:"bytes,1,rep,name=source_log,json=sourceLog,proto3" json:"source_log,omitempty"`
// The destination log which will be scanned for minimal-gossip certificates.
DestLog *LogConfig `protobuf:"bytes,2,opt,name=dest_log,json=destLog,proto3" json:"dest_log,omitempty"`
// Number of STHs pending verification that can be buffered up for each source log.
BufferSize int32 `protobuf:"varint,5,opt,name=buffer_size,json=bufferSize,proto3" json:"buffer_size,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GoshawkConfig) Reset() { *m = GoshawkConfig{} }
func (m *GoshawkConfig) String() string { return proto.CompactTextString(m) }
func (*GoshawkConfig) ProtoMessage() {}
func (*GoshawkConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_config_5de92fef3264bcc3, []int{2}
}
func (m *GoshawkConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GoshawkConfig.Unmarshal(m, b)
}
func (m *GoshawkConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GoshawkConfig.Marshal(b, m, deterministic)
}
func (dst *GoshawkConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_GoshawkConfig.Merge(dst, src)
}
func (m *GoshawkConfig) XXX_Size() int {
return xxx_messageInfo_GoshawkConfig.Size(m)
}
func (m *GoshawkConfig) XXX_DiscardUnknown() {
xxx_messageInfo_GoshawkConfig.DiscardUnknown(m)
}
var xxx_messageInfo_GoshawkConfig proto.InternalMessageInfo
func (m *GoshawkConfig) GetSourceLog() []*LogConfig {
if m != nil {
return m.SourceLog
}
return nil
}
func (m *GoshawkConfig) GetDestLog() *LogConfig {
if m != nil {
return m.DestLog
}
return nil
}
func (m *GoshawkConfig) GetBufferSize() int32 {
if m != nil {
return m.BufferSize
}
return 0
}
func init() {
proto.RegisterType((*LogConfig)(nil), "configpb.LogConfig")
proto.RegisterType((*GossipConfig)(nil), "configpb.GossipConfig")
proto.RegisterType((*GoshawkConfig)(nil), "configpb.GoshawkConfig")
}
func init() { proto.RegisterFile("config.proto", fileDescriptor_config_5de92fef3264bcc3) }
var fileDescriptor_config_5de92fef3264bcc3 = []byte{
// 384 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x90, 0x41, 0x6e, 0xd4, 0x30,
0x14, 0x86, 0xe5, 0x4e, 0x0b, 0x93, 0x97, 0x82, 0x8a, 0x61, 0x91, 0x16, 0x09, 0xa2, 0x59, 0x65,
0xe5, 0xa0, 0x41, 0x3d, 0x00, 0x1a, 0xa4, 0x0a, 0xd1, 0x05, 0x32, 0x07, 0x88, 0x92, 0xf4, 0x25,
0xb5, 0x26, 0xf1, 0x73, 0x1d, 0xa7, 0x28, 0x3d, 0x07, 0x87, 0xe0, 0x66, 0x5c, 0x03, 0xc5, 0xf1,
0xb0, 0x00, 0xa1, 0x6e, 0x58, 0xe5, 0xf9, 0xfd, 0xff, 0x1f, 0xfd, 0xdf, 0x83, 0xd3, 0x9a, 0x74,
0xa3, 0x5a, 0x61, 0x2c, 0x39, 0xe2, 0xeb, 0xe5, 0x65, 0xaa, 0x8b, 0xcb, 0x56, 0xb9, 0xdb, 0xb1,
0x12, 0x35, 0xf5, 0x79, 0x4b, 0xd4, 0x76, 0x98, 0x3b, 0xab, 0xba, 0x4e, 0x95, 0x3a, 0xaf, 0xed,
0x64, 0x1c, 0xe5, 0x7b, 0x9c, 0x06, 0x53, 0x85, 0xcf, 0xf2, 0x83, 0x8b, 0xf3, 0xe0, 0xf5, 0xaf,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