github.com/mre-fog/trillianxx@v1.1.2-0.20180615153820-ae375a99d36a/examples/ct/ctmapper/ctmapperpb/ct_mapper.proto (about)

     1  // Copyright 2016 Google Inc. 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  syntax = "proto3";
    16  
    17  package ctmapperpb;
    18  
    19  // MapperMetadata represents the state of the CT Mapper after it
    20  // completes a run of loading the Map from the CT Log being watched.
    21  // It is effectively a cursor over the source CT Log.
    22  message MapperMetadata {
    23    // LogID of the CT log source.
    24    bytes source_log_id = 1;
    25    // Log Index in the source log of the highest entry mapped
    26    // in an earlier run.
    27    int64 highest_fully_completed_seq = 2;
    28  }
    29  
    30  // EntryList represents a mapping stored in the Map after a source
    31  // CT Log has been fetched and mapped.  It holds the entry indices
    32  // from the Log for all certificates and all pre-certificates that
    33  // reference a particular domain.
    34  message EntryList {
    35    // The domain referenced by entries in the mapped CT Log.
    36    string domain = 1;
    37    // All log indexes of mapped Log entries referencing domain in
    38    // X.509 certs.
    39    repeated int64 cert_index = 2;
    40    // All log indexes of mapped Log entries referencing domain in
    41    // pre-certs.
    42    repeated int64 precert_index = 3;
    43  }