github.com/google/cloudprober@v0.11.3/validators/integrity/proto/config.proto (about)

     1  syntax = "proto2";
     2  
     3  package cloudprober.validators.integrity;
     4  
     5  option go_package = "github.com/google/cloudprober/validators/integrity/proto";
     6  
     7  message Validator {
     8    // Validate the data integrity of the response using a pattern that is
     9    // repeated throughout the length of the response, with last len(response) %
    10    // len(pattern) bytes being zero bytes.
    11    //
    12    // For example if response length is 100 bytes and pattern length is 8 bytes,
    13    // first 96 bytes of the response should be pattern repeated 12 times, and
    14    // last 4 bytes should be set to zero byte ('\0')
    15    oneof pattern {
    16      // Pattern string for pattern repetition based integrity checks.
    17      // For example, cloudprobercloudprobercloudprober...
    18      string pattern_string = 1;
    19  
    20      // Pattern is derived from the first few bytes of the payload. This is
    21      // useful when pattern is not known in advance, for example cloudprober's
    22      // ping probe repeates the timestamp (8 bytes) in the packet payload.
    23      // An error is returned if response is smaller than pattern_num_bytes.
    24      int32 pattern_num_bytes = 2;
    25    }
    26  }