github.com/google/cloudprober@v0.11.3/probes/grpc/proto/config.proto (about)

     1  syntax = "proto2";
     2  
     3  package cloudprober.probes.grpc;
     4  
     5  import "github.com/google/cloudprober/common/oauth/proto/config.proto";
     6  
     7  option go_package = "github.com/google/cloudprober/probes/grpc/proto";
     8  
     9  message ProbeConf {
    10    // Optional oauth config. For GOOGLE_DEFAULT_CREDENTIALS, use:
    11    // oauth_config: { bearer_token { gce_service_account: "default" } }
    12    optional oauth.Config oauth_config = 1;
    13  
    14    // ALTS is a gRPC security method supported by some Google services.
    15    // If enabled, peers, with the help of a handshaker service (e.g. metadata
    16    // server of GCE instances), use credentials attached to the service accounts
    17    // to authenticate each other. See
    18    // https://cloud.google.com/security/encryption-in-transit/#service_integrity_encryption
    19    // for more details.
    20    message ALTSConfig {
    21      // If provided, ALTS verifies that peer is using one of the given service
    22      // accounts.
    23      repeated string target_service_account = 1;
    24  
    25      // Handshaker service address. Default is to use the local metadata server.
    26      // For most of the ALTS use cases, default address should be okay.
    27      optional string handshaker_service_address = 2;
    28    }
    29    // If alts_config is provided, gRPC client uses ALTS for authentication and
    30    // encryption. For default alts configs, use:
    31    // alts_config: {}
    32    optional ALTSConfig alts_config = 2;
    33  
    34    enum MethodType {
    35      ECHO = 1;
    36      READ = 2;
    37      WRITE = 3;
    38    }
    39    optional MethodType method = 3 [default = ECHO];
    40  
    41    optional int32 blob_size = 4 [default = 1024];
    42    optional int32 num_conns = 5 [default = 2];
    43    optional bool keep_alive = 6 [default = true];
    44  
    45    // If connect_timeout is not specified, reuse probe timeout.
    46    optional int32 connect_timeout_msec = 7;
    47  }