Namespaces | Functions
cli_credentials.cc File Reference
#include "test/cpp/util/cli_credentials.h"
#include "absl/flags/flag.h"
#include <grpc/slice.h>
#include <grpc/support/log.h>
#include <grpcpp/impl/codegen/slice.h>
#include "src/core/lib/iomgr/load_file.h"
Include dependency graph for cli_credentials.cc:

Go to the source code of this file.

Namespaces

 grpc
 
 grpc::testing
 

Functions

 ABSL_FLAG (std::string, call_creds, "", "Call credentials to use: none (default), or access_token=<token>. If " "provided, the call creds are composited on top of channel creds.")
 
 ABSL_FLAG (std::string, channel_creds_type, "", "The channel creds type: insecure, ssl, gdc (Google Default Credentials), " "alts, or local.")
 
 ABSL_FLAG (std::string, local_connect_type, "local_tcp", "The type of local connections for which local channel credentials will " "be applied. Should be local_tcp or uds.")
 
 ABSL_FLAG (std::string, ssl_client_cert, "", "If not empty, load this PEM formatted client certificate file. Requires " "use of --ssl_client_key.")
 
 ABSL_FLAG (std::string, ssl_client_key, "", "If not empty, load this PEM formatted private key. Requires use of " "--ssl_client_cert")
 
 ABSL_FLAG (std::string, ssl_target, "", "If not empty, treat the server host name as this for ssl/tls certificate " "validation.")
 
 ABSL_RETIRED_FLAG (bool, enable_ssl, false, "Replaced by --channel_creds_type=ssl.")
 
 ABSL_RETIRED_FLAG (bool, use_auth, false, "Replaced by --channel_creds_type=gdc.")
 
 ABSL_RETIRED_FLAG (std::string, access_token, "", "Replaced by --call_creds=access_token=<token>.")
 

Function Documentation

◆ ABSL_FLAG() [1/6]

ABSL_FLAG ( std::string  ,
call_creds  ,
""  ,
"Call credentials to use: none   default,
or  access_token = <token>. If " "provided,
the call creds are composited on top of channel creds."   
)

◆ ABSL_FLAG() [2/6]

ABSL_FLAG ( std::string  ,
channel_creds_type  ,
""  ,
"The channel creds type:  insecure,
ssl  ,
gdc(Google Default Credentials)  ,
" "  alts,
or local."   
)

◆ ABSL_FLAG() [3/6]

ABSL_FLAG ( std::string  ,
local_connect_type  ,
"local_tcp"  ,
"The type of local connections for which local channel credentials will " "be applied. Should be local_tcp or uds."   
)

◆ ABSL_FLAG() [4/6]

ABSL_FLAG ( std::string  ,
ssl_client_cert  ,
""  ,
"If not  empty,
load this PEM formatted client certificate file. Requires " "use of --ssl_client_key."   
)

◆ ABSL_FLAG() [5/6]

ABSL_FLAG ( std::string  ,
ssl_client_key  ,
""  ,
"If not  empty,
load this PEM formatted private key. Requires use of " "--ssl_client_cert"   
)

◆ ABSL_FLAG() [6/6]

ABSL_FLAG ( std::string  ,
ssl_target  ,
""  ,
"If not  empty,
treat the server host name as this for ssl/tls certificate " "validation."   
)

◆ ABSL_RETIRED_FLAG() [1/3]

ABSL_RETIRED_FLAG ( bool  ,
enable_ssl  ,
false   
)

◆ ABSL_RETIRED_FLAG() [2/3]

ABSL_RETIRED_FLAG ( bool  ,
use_auth  ,
false   
)

◆ ABSL_RETIRED_FLAG() [3/3]

ABSL_RETIRED_FLAG ( std::string  ,
access_token  ,
""   
)


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:06