| 1 |
// Copyright 2018 Google LLC. All Rights Reserved. |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 16 |
// versions: |
| 17 |
// protoc-gen-go v1.36.10 |
| 18 |
// protoc v3.20.1 |
| 19 |
// source: trillian/migrillian/configpb/config.proto |
| 20 |
|
| 21 |
package configpb |
| 22 |
|
| 23 |
import ( |
| 24 |
configpb "github.com/google/certificate-transparency-go/trillian/ctfe/configpb" |
| 25 |
keyspb "github.com/google/trillian/crypto/keyspb" |
| 26 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 27 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 28 |
reflect "reflect" |
| 29 |
sync "sync" |
| 30 |
unsafe "unsafe" |
| 31 |
) |
| 32 |
|
| 33 |
const ( |
| 34 |
// Verify that this generated code is sufficiently up-to-date. |
| 35 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 36 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 37 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 38 |
) |
| 39 |
|
| 40 |
// IdentityFunction specifies how Trillian identity hash is computed. |
| 41 |
type IdentityFunction int32 |
| 42 |
|
| 43 |
const ( |
| 44 |
IdentityFunction_UNKNOWN_IDENTITY_FUNCTION IdentityFunction = 0 |
| 45 |
// Returns SHA256 hash of the certificate DER. This is the same function that |
| 46 |
// CTFE uses when submitting add-[pre-]chain entries to Trillian. |
| 47 |
// |
| 48 |
// For example, it can be used when migrating a CT log to Trillian. Using the |
| 49 |
// same function as CTFE makes any newly submitted entries compatible with the |
| 50 |
// ones that migrated from the source log. |
| 51 |
IdentityFunction_SHA256_CERT_DATA IdentityFunction = 1 |
| 52 |
// Returns SHA256 hash of the leaf index. |
| 53 |
// |
| 54 |
// For example, this function can be used for mirroring CT logs. Since the |
| 55 |
// source logs might have duplicates of different kinds (depends on the |
| 56 |
// operator), this function allows storing them all (unlike SHA256_CERT_DATA). |
| 57 |
// Note that the CTFE log must stay read-only (mirror), as CTFE's identity |
| 58 |
// hash is incompatible. |
| 59 |
IdentityFunction_SHA256_LEAF_INDEX IdentityFunction = 2 |
| 60 |
) |
| 61 |
|
| 62 |
// Enum value maps for IdentityFunction. |
| 63 |
var ( |
| 64 |
IdentityFunction_name = map[int32]string{ |
| 65 |
0: "UNKNOWN_IDENTITY_FUNCTION", |
| 66 |
1: "SHA256_CERT_DATA", |
| 67 |
2: "SHA256_LEAF_INDEX", |
| 68 |
} |
| 69 |
IdentityFunction_value = map[string]int32{ |
| 70 |
"UNKNOWN_IDENTITY_FUNCTION": 0, |
| 71 |
"SHA256_CERT_DATA": 1, |
| 72 |
"SHA256_LEAF_INDEX": 2, |
| 73 |
} |
| 74 |
) |
| 75 |
|
| 76 |
func (x IdentityFunction) Enum() *IdentityFunction { |
| 77 |
p := new(IdentityFunction) |
| 78 |
*p = x |
| 79 |
return p |
| 80 |
} |
| 81 |
|
| 82 |
func (x IdentityFunction) String() string { |
| 83 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 84 |
} |
| 85 |
|
| 86 |
func (IdentityFunction) Descriptor() protoreflect.EnumDescriptor { |
| 87 |
return file_trillian_migrillian_configpb_config_proto_enumTypes[0].Descriptor() |
| 88 |
} |
| 89 |
|
| 90 |
func (IdentityFunction) Type() protoreflect.EnumType { |
| 91 |
return &file_trillian_migrillian_configpb_config_proto_enumTypes[0] |
| 92 |
} |
| 93 |
|
| 94 |
func (x IdentityFunction) Number() protoreflect.EnumNumber { |
| 95 |
return protoreflect.EnumNumber(x) |
| 96 |
} |
| 97 |
|
| 98 |
// Deprecated: Use IdentityFunction.Descriptor instead. |
| 99 |
func (IdentityFunction) EnumDescriptor() ([]byte, []int) { |
| 100 |
return file_trillian_migrillian_configpb_config_proto_rawDescGZIP(), []int{0} |
| 101 |
} |
| 102 |
|
| 103 |
// MigrationConfig describes the configuration options for a single CT log |
| 104 |
// migration instance. |
| 105 |
type MigrationConfig struct { |
| 106 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 107 |
// The URI of the source CT log, e.g. "https://ct.googleapis.com/pilot". |
| 108 |
SourceUri string `protobuf:"bytes,1,opt,name=source_uri,json=sourceUri,proto3" json:"source_uri,omitempty"` |
| 109 |
// The public key of the source log. |
| 110 |
PublicKey *keyspb.PublicKey `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` |
| 111 |
// The name of the backend which this log migrates to. The name must be one of |
| 112 |
// those defined in the LogBackendSet. |
| 113 |
// |
| 114 |
// Deprecated. TODO(pavelkalinnikov): Remove it. |
| 115 |
// |
| 116 |
// Deprecated: Marked as deprecated in trillian/migrillian/configpb/config.proto. |
| 117 |
LogBackendName string `protobuf:"bytes,3,opt,name=log_backend_name,json=logBackendName,proto3" json:"log_backend_name,omitempty"` |
| 118 |
// The ID of a Trillian PREORDERED_LOG tree that stores the log data. |
| 119 |
LogId int64 `protobuf:"varint,4,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"` |
| 120 |
// Max number of entries per get-entries request from the source log. |
| 121 |
BatchSize int32 `protobuf:"varint,5,opt,name=batch_size,json=batchSize,proto3" json:"batch_size,omitempty"` |
| 122 |
// Determines whether the migration should run continuously, i.e. watch and |
| 123 |
// follow the updates of the source log's STH. For example, this mode can be |
| 124 |
// used to support a mirror CT log. |
| 125 |
IsContinuous bool `protobuf:"varint,6,opt,name=is_continuous,json=isContinuous,proto3" json:"is_continuous,omitempty"` |
| 126 |
// The log entry index to start fetching at. If negative, then it is assumed |
| 127 |
// equal to the current Trillian tree size. |
| 128 |
// Ignored in continuous mode which starts at the point where it stopped (e.g. |
| 129 |
// the current Trillian tree size in a simple case). |
| 130 |
StartIndex int64 `protobuf:"varint,7,opt,name=start_index,json=startIndex,proto3" json:"start_index,omitempty"` |
| 131 |
// The log index to end fetching at, non-inclusive. If zero, fetch up to the |
| 132 |
// source log's current STH. Ignored in continuous mode which keeps updating |
| 133 |
// STH and fetching up to that. |
| 134 |
EndIndex int64 `protobuf:"varint,8,opt,name=end_index,json=endIndex,proto3" json:"end_index,omitempty"` |
| 135 |
// The number of parallel get-entries fetchers. Assumed equal to 1 if not |
| 136 |
// specified. |
| 137 |
NumFetchers int32 `protobuf:"varint,9,opt,name=num_fetchers,json=numFetchers,proto3" json:"num_fetchers,omitempty"` |
| 138 |
// The number of parallel workers submitting entries to Trillian. Assumed |
| 139 |
// equal to 1 if not specified. |
| 140 |
NumSubmitters int32 `protobuf:"varint,10,opt,name=num_submitters,json=numSubmitters,proto3" json:"num_submitters,omitempty"` |
| 141 |
// Max number of batches in fetchers->submitters channel. |
| 142 |
ChannelSize int32 `protobuf:"varint,11,opt,name=channel_size,json=channelSize,proto3" json:"channel_size,omitempty"` |
| 143 |
// The function that computes LeafIdentityHash for Trillian log entries. |
| 144 |
IdentityFunction IdentityFunction `protobuf:"varint,12,opt,name=identity_function,json=identityFunction,proto3,enum=configpb.IdentityFunction" json:"identity_function,omitempty"` |
| 145 |
// If set to false (by default), then Migrillian verifies that the tree as |
| 146 |
// seen by Trillian is consistent with the current STH of the source CT log. |
| 147 |
// It invokes the get-sth-consistency endpoint (section 4.4 of RFC 6962) with |
| 148 |
// the corresponding tree sizes, and verifies the returned proof. |
| 149 |
NoConsistencyCheck bool `protobuf:"varint,13,opt,name=no_consistency_check,json=noConsistencyCheck,proto3" json:"no_consistency_check,omitempty"` |
| 150 |
unknownFields protoimpl.UnknownFields |
| 151 |
sizeCache protoimpl.SizeCache |
| 152 |
} |
| 153 |
|
| 154 |
func (x *MigrationConfig) Reset() { |
| 155 |
*x = MigrationConfig{} |
| 156 |
mi := &file_trillian_migrillian_configpb_config_proto_msgTypes[0] |
| 157 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 158 |
ms.StoreMessageInfo(mi) |
| 159 |
} |
| 160 |
|
| 161 |
func (x *MigrationConfig) String() string { |
| 162 |
return protoimpl.X.MessageStringOf(x) |
| 163 |
} |
| 164 |
|
| 165 |
func (*MigrationConfig) ProtoMessage() {} |
| 166 |
|
| 167 |
func (x *MigrationConfig) ProtoReflect() protoreflect.Message { |
| 168 |
mi := &file_trillian_migrillian_configpb_config_proto_msgTypes[0] |
| 169 |
if x != nil { |
| 170 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 171 |
if ms.LoadMessageInfo() == nil { |
| 172 |
ms.StoreMessageInfo(mi) |
| 173 |
} |
| 174 |
return ms |
| 175 |
} |
| 176 |
return mi.MessageOf(x) |
| 177 |
} |
| 178 |
|
| 179 |
// Deprecated: Use MigrationConfig.ProtoReflect.Descriptor instead. |
| 180 |
func (*MigrationConfig) Descriptor() ([]byte, []int) { |
| 181 |
return file_trillian_migrillian_configpb_config_proto_rawDescGZIP(), []int{0} |
| 182 |
} |
| 183 |
|
| 184 |
func (x *MigrationConfig) GetSourceUri() string { |
| 185 |
if x != nil { |
| 186 |
return x.SourceUri |
| 187 |
} |
| 188 |
return "" |
| 189 |
} |
| 190 |
|
| 191 |
func (x *MigrationConfig) GetPublicKey() *keyspb.PublicKey { |
| 192 |
if x != nil { |
| 193 |
return x.PublicKey |
| 194 |
} |
| 195 |
return nil |
| 196 |
} |
| 197 |
|
| 198 |
// Deprecated: Marked as deprecated in trillian/migrillian/configpb/config.proto. |
| 199 |
func (x *MigrationConfig) GetLogBackendName() string { |
| 200 |
if x != nil { |
| 201 |
return x.LogBackendName |
| 202 |
} |
| 203 |
return "" |
| 204 |
} |
| 205 |
|
| 206 |
func (x *MigrationConfig) GetLogId() int64 { |
| 207 |
if x != nil { |
| 208 |
return x.LogId |
| 209 |
} |
| 210 |
return 0 |
| 211 |
} |
| 212 |
|
| 213 |
func (x *MigrationConfig) GetBatchSize() int32 { |
| 214 |
if x != nil { |
| 215 |
return x.BatchSize |
| 216 |
} |
| 217 |
return 0 |
| 218 |
} |
| 219 |
|
| 220 |
func (x *MigrationConfig) GetIsContinuous() bool { |
| 221 |
if x != nil { |
| 222 |
return x.IsContinuous |
| 223 |
} |
| 224 |
return false |
| 225 |
} |
| 226 |
|
| 227 |
func (x *MigrationConfig) GetStartIndex() int64 { |
| 228 |
if x != nil { |
| 229 |
return x.StartIndex |
| 230 |
} |
| 231 |
return 0 |
| 232 |
} |
| 233 |
|
| 234 |
func (x *MigrationConfig) GetEndIndex() int64 { |
| 235 |
if x != nil { |
| 236 |
return x.EndIndex |
| 237 |
} |
| 238 |
return 0 |
| 239 |
} |
| 240 |
|
| 241 |
func (x *MigrationConfig) GetNumFetchers() int32 { |
| 242 |
if x != nil { |
| 243 |
return x.NumFetchers |
| 244 |
} |
| 245 |
return 0 |
| 246 |
} |
| 247 |
|
| 248 |
func (x *MigrationConfig) GetNumSubmitters() int32 { |
| 249 |
if x != nil { |
| 250 |
return x.NumSubmitters |
| 251 |
} |
| 252 |
return 0 |
| 253 |
} |
| 254 |
|
| 255 |
func (x *MigrationConfig) GetChannelSize() int32 { |
| 256 |
if x != nil { |
| 257 |
return x.ChannelSize |
| 258 |
} |
| 259 |
return 0 |
| 260 |
} |
| 261 |
|
| 262 |
func (x *MigrationConfig) GetIdentityFunction() IdentityFunction { |
| 263 |
if x != nil { |
| 264 |
return x.IdentityFunction |
| 265 |
} |
| 266 |
return IdentityFunction_UNKNOWN_IDENTITY_FUNCTION |
| 267 |
} |
| 268 |
|
| 269 |
func (x *MigrationConfig) GetNoConsistencyCheck() bool { |
| 270 |
if x != nil { |
| 271 |
return x.NoConsistencyCheck |
| 272 |
} |
| 273 |
return false |
| 274 |
} |
| 275 |
|
| 276 |
// MigrationConfigSet is a set of MigrationConfig messages. |
| 277 |
type MigrationConfigSet struct { |
| 278 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 279 |
Config []*MigrationConfig `protobuf:"bytes,1,rep,name=config,proto3" json:"config,omitempty"` |
| 280 |
unknownFields protoimpl.UnknownFields |
| 281 |
sizeCache protoimpl.SizeCache |
| 282 |
} |
| 283 |
|
| 284 |
func (x *MigrationConfigSet) Reset() { |
| 285 |
*x = MigrationConfigSet{} |
| 286 |
mi := &file_trillian_migrillian_configpb_config_proto_msgTypes[1] |
| 287 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 288 |
ms.StoreMessageInfo(mi) |
| 289 |
} |
| 290 |
|
| 291 |
func (x *MigrationConfigSet) String() string { |
| 292 |
return protoimpl.X.MessageStringOf(x) |
| 293 |
} |
| 294 |
|
| 295 |
func (*MigrationConfigSet) ProtoMessage() {} |
| 296 |
|
| 297 |
func (x *MigrationConfigSet) ProtoReflect() protoreflect.Message { |
| 298 |
mi := &file_trillian_migrillian_configpb_config_proto_msgTypes[1] |
| 299 |
if x != nil { |
| 300 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 301 |
if ms.LoadMessageInfo() == nil { |
| 302 |
ms.StoreMessageInfo(mi) |
| 303 |
} |
| 304 |
return ms |
| 305 |
} |
| 306 |
return mi.MessageOf(x) |
| 307 |
} |
| 308 |
|
| 309 |
// Deprecated: Use MigrationConfigSet.ProtoReflect.Descriptor instead. |
| 310 |
func (*MigrationConfigSet) Descriptor() ([]byte, []int) { |
| 311 |
return file_trillian_migrillian_configpb_config_proto_rawDescGZIP(), []int{1} |
| 312 |
} |
| 313 |
|
| 314 |
func (x *MigrationConfigSet) GetConfig() []*MigrationConfig { |
| 315 |
if x != nil { |
| 316 |
return x.Config |
| 317 |
} |
| 318 |
return nil |
| 319 |
} |
| 320 |
|
| 321 |
// MigrillianConfig holds configuration for multiple migration / mirroring jobs. |
| 322 |
type MigrillianConfig struct { |
| 323 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 324 |
// The set of backends that this configuration will use to send requests to. |
| 325 |
// The names of the backends in the LogBackendSet must all be distinct. |
| 326 |
// |
| 327 |
// Deprecated. TODO(pavelkalinnikov): Remove it. |
| 328 |
// |
| 329 |
// Deprecated: Marked as deprecated in trillian/migrillian/configpb/config.proto. |
| 330 |
Backends *configpb.LogBackendSet `protobuf:"bytes,1,opt,name=backends,proto3" json:"backends,omitempty"` |
| 331 |
// The set of migrations that will use the above backends. All the protos in |
| 332 |
// it must set a valid log_backend_name for the config to be usable. |
| 333 |
MigrationConfigs *MigrationConfigSet `protobuf:"bytes,2,opt,name=migration_configs,json=migrationConfigs,proto3" json:"migration_configs,omitempty"` |
| 334 |
unknownFields protoimpl.UnknownFields |
| 335 |
sizeCache protoimpl.SizeCache |
| 336 |
} |
| 337 |
|
| 338 |
func (x *MigrillianConfig) Reset() { |
| 339 |
*x = MigrillianConfig{} |
| 340 |
mi := &file_trillian_migrillian_configpb_config_proto_msgTypes[2] |
| 341 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 342 |
ms.StoreMessageInfo(mi) |
| 343 |
} |
| 344 |
|
| 345 |
func (x *MigrillianConfig) String() string { |
| 346 |
return protoimpl.X.MessageStringOf(x) |
| 347 |
} |
| 348 |
|
| 349 |
func (*MigrillianConfig) ProtoMessage() {} |
| 350 |
|
| 351 |
func (x *MigrillianConfig) ProtoReflect() protoreflect.Message { |
| 352 |
mi := &file_trillian_migrillian_configpb_config_proto_msgTypes[2] |
| 353 |
if x != nil { |
| 354 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 355 |
if ms.LoadMessageInfo() == nil { |
| 356 |
ms.StoreMessageInfo(mi) |
| 357 |
} |
| 358 |
return ms |
| 359 |
} |
| 360 |
return mi.MessageOf(x) |
| 361 |
} |
| 362 |
|
| 363 |
// Deprecated: Use MigrillianConfig.ProtoReflect.Descriptor instead. |
| 364 |
func (*MigrillianConfig) Descriptor() ([]byte, []int) { |
| 365 |
return file_trillian_migrillian_configpb_config_proto_rawDescGZIP(), []int{2} |
| 366 |
} |
| 367 |
|
| 368 |
// Deprecated: Marked as deprecated in trillian/migrillian/configpb/config.proto. |
| 369 |
func (x *MigrillianConfig) GetBackends() *configpb.LogBackendSet { |
| 370 |
if x != nil { |
| 371 |
return x.Backends |
| 372 |
} |
| 373 |
return nil |
| 374 |
} |
| 375 |
|
| 376 |
func (x *MigrillianConfig) GetMigrationConfigs() *MigrationConfigSet { |
| 377 |
if x != nil { |
| 378 |
return x.MigrationConfigs |
| 379 |
} |
| 380 |
return nil |
| 381 |
} |
| 382 |
|
| 383 |
var File_trillian_migrillian_configpb_config_proto protoreflect.FileDescriptor |
| 384 |
|
| 385 |
const file_trillian_migrillian_configpb_config_proto_rawDesc = "" + |
| 386 |
"\n" + |
| 387 |
")trillian/migrillian/configpb/config.proto\x12\bconfigpb\x1a#trillian/ctfe/configpb/config.proto\x1a\x1acrypto/keyspb/keyspb.proto\"\x91\x04\n" + |
| 388 |
"\x0fMigrationConfig\x12\x1d\n" + |
| 389 |
"\n" + |
| 390 |
"source_uri\x18\x01 \x01(\tR\tsourceUri\x120\n" + |
| 391 |
"\n" + |
| 392 |
"public_key\x18\x02 \x01(\v2\x11.keyspb.PublicKeyR\tpublicKey\x12,\n" + |
| 393 |
"\x10log_backend_name\x18\x03 \x01(\tB\x02\x18\x01R\x0elogBackendName\x12\x15\n" + |
| 394 |
"\x06log_id\x18\x04 \x01(\x03R\x05logId\x12\x1d\n" + |
| 395 |
"\n" + |
| 396 |
"batch_size\x18\x05 \x01(\x05R\tbatchSize\x12#\n" + |
| 397 |
"\ris_continuous\x18\x06 \x01(\bR\fisContinuous\x12\x1f\n" + |
| 398 |
"\vstart_index\x18\a \x01(\x03R\n" + |
| 399 |
"startIndex\x12\x1b\n" + |
| 400 |
"\tend_index\x18\b \x01(\x03R\bendIndex\x12!\n" + |
| 401 |
"\fnum_fetchers\x18\t \x01(\x05R\vnumFetchers\x12%\n" + |
| 402 |
"\x0enum_submitters\x18\n" + |
| 403 |
" \x01(\x05R\rnumSubmitters\x12!\n" + |
| 404 |
"\fchannel_size\x18\v \x01(\x05R\vchannelSize\x12G\n" + |
| 405 |
"\x11identity_function\x18\f \x01(\x0e2\x1a.configpb.IdentityFunctionR\x10identityFunction\x120\n" + |
| 406 |
"\x14no_consistency_check\x18\r \x01(\bR\x12noConsistencyCheck\"G\n" + |
| 407 |
"\x12MigrationConfigSet\x121\n" + |
| 408 |
"\x06config\x18\x01 \x03(\v2\x19.configpb.MigrationConfigR\x06config\"\x96\x01\n" + |
| 409 |
"\x10MigrillianConfig\x127\n" + |
| 410 |
"\bbackends\x18\x01 \x01(\v2\x17.configpb.LogBackendSetB\x02\x18\x01R\bbackends\x12I\n" + |
| 411 |
"\x11migration_configs\x18\x02 \x01(\v2\x1c.configpb.MigrationConfigSetR\x10migrationConfigs*^\n" + |
| 412 |
"\x10IdentityFunction\x12\x1d\n" + |
| 413 |
"\x19UNKNOWN_IDENTITY_FUNCTION\x10\x00\x12\x14\n" + |
| 414 |
"\x10SHA256_CERT_DATA\x10\x01\x12\x15\n" + |
| 415 |
"\x11SHA256_LEAF_INDEX\x10\x02BLZJgithub.com/google/certificate-transparency-go/trillian/migrillian/configpbb\x06proto3" |
| 416 |
|
| 417 |
var ( |
| 418 |
file_trillian_migrillian_configpb_config_proto_rawDescOnce sync.Once |
| 419 |
file_trillian_migrillian_configpb_config_proto_rawDescData []byte |
| 420 |
) |
| 421 |
|
| 422 |
func file_trillian_migrillian_configpb_config_proto_rawDescGZIP() []byte { |
| 423 |
file_trillian_migrillian_configpb_config_proto_rawDescOnce.Do(func() { |
| 424 |
file_trillian_migrillian_configpb_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_trillian_migrillian_configpb_config_proto_rawDesc), len(file_trillian_migrillian_configpb_config_proto_rawDesc))) |
| 425 |
}) |
| 426 |
return file_trillian_migrillian_configpb_config_proto_rawDescData |
| 427 |
} |
| 428 |
|
| 429 |
var file_trillian_migrillian_configpb_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 430 |
var file_trillian_migrillian_configpb_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3) |
| 431 |
var file_trillian_migrillian_configpb_config_proto_goTypes = []any{ |
| 432 |
(IdentityFunction)(0), // 0: configpb.IdentityFunction |
| 433 |
(*MigrationConfig)(nil), // 1: configpb.MigrationConfig |
| 434 |
(*MigrationConfigSet)(nil), // 2: configpb.MigrationConfigSet |
| 435 |
(*MigrillianConfig)(nil), // 3: configpb.MigrillianConfig |
| 436 |
(*keyspb.PublicKey)(nil), // 4: keyspb.PublicKey |
| 437 |
(*configpb.LogBackendSet)(nil), // 5: configpb.LogBackendSet |
| 438 |
} |
| 439 |
var file_trillian_migrillian_configpb_config_proto_depIdxs = []int32{ |
| 440 |
4, // 0: configpb.MigrationConfig.public_key:type_name -> keyspb.PublicKey |
| 441 |
0, // 1: configpb.MigrationConfig.identity_function:type_name -> configpb.IdentityFunction |
| 442 |
1, // 2: configpb.MigrationConfigSet.config:type_name -> configpb.MigrationConfig |
| 443 |
5, // 3: configpb.MigrillianConfig.backends:type_name -> configpb.LogBackendSet |
| 444 |
2, // 4: configpb.MigrillianConfig.migration_configs:type_name -> configpb.MigrationConfigSet |
| 445 |
5, // [5:5] is the sub-list for method output_type |
| 446 |
5, // [5:5] is the sub-list for method input_type |
| 447 |
5, // [5:5] is the sub-list for extension type_name |
| 448 |
5, // [5:5] is the sub-list for extension extendee |
| 449 |
0, // [0:5] is the sub-list for field type_name |
| 450 |
} |
| 451 |
|
| 452 |
func init() { file_trillian_migrillian_configpb_config_proto_init() } |
| 453 |
func file_trillian_migrillian_configpb_config_proto_init() { |
| 454 |
if File_trillian_migrillian_configpb_config_proto != nil { |
| 455 |
return |
| 456 |
} |
| 457 |
type x struct{} |
| 458 |
out := protoimpl.TypeBuilder{ |
| 459 |
File: protoimpl.DescBuilder{ |
| 460 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 461 |
RawDescriptor: unsafe.Slice(unsafe.StringData(file_trillian_migrillian_configpb_config_proto_rawDesc), len(file_trillian_migrillian_configpb_config_proto_rawDesc)), |
| 462 |
NumEnums: 1, |
| 463 |
NumMessages: 3, |
| 464 |
NumExtensions: 0, |
| 465 |
NumServices: 0, |
| 466 |
}, |
| 467 |
GoTypes: file_trillian_migrillian_configpb_config_proto_goTypes, |
| 468 |
DependencyIndexes: file_trillian_migrillian_configpb_config_proto_depIdxs, |
| 469 |
EnumInfos: file_trillian_migrillian_configpb_config_proto_enumTypes, |
| 470 |
MessageInfos: file_trillian_migrillian_configpb_config_proto_msgTypes, |
| 471 |
}.Build() |
| 472 |
File_trillian_migrillian_configpb_config_proto = out.File |
| 473 |
file_trillian_migrillian_configpb_config_proto_goTypes = nil |
| 474 |
file_trillian_migrillian_configpb_config_proto_depIdxs = nil |
| 475 |
} |