Functions | Variables
bin.run_channelz Namespace Reference

Functions

def debug_basic_setup (test_client, test_server)
 
def debug_cert (cert)
 
def debug_security_setup_negative (test_client)
 
def debug_security_setup_positive (test_client, test_server)
 
def debug_sock_tls (tls)
 
def get_deployment_pod_ips (k8s_ns, deployment_name)
 
def main (argv)
 

Variables

 _Channel = grpc_channelz.Channel
 
 _ChannelState = grpc_channelz.ChannelState
 
 _CLIENT_RPC_HOST
 
 _SECURITY
 
 _SERVER_RPC_HOST
 
 _Socket = grpc_channelz.Socket
 
 _XdsTestClient = client_app.XdsTestClient
 
 _XdsTestServer = server_app.XdsTestServer
 
 logger = logging.getLogger(__name__)
 

Function Documentation

◆ debug_basic_setup()

def bin.run_channelz.debug_basic_setup (   test_client,
  test_server 
)
Show channel and server socket pair

Definition at line 162 of file run_channelz.py.

◆ debug_cert()

def bin.run_channelz.debug_cert (   cert)

Definition at line 72 of file run_channelz.py.

◆ debug_security_setup_negative()

def bin.run_channelz.debug_security_setup_negative (   test_client)
Debug negative cases: mTLS Error, Server AuthZ error

1) mTLS Error: Server expects client mTLS cert,
   but client configured only for TLS.
2) AuthZ error: Client does not authorize server because of mismatched
   SAN name.

Definition at line 90 of file run_channelz.py.

◆ debug_security_setup_positive()

def bin.run_channelz.debug_security_setup_positive (   test_client,
  test_server 
)
Debug positive cases: mTLS, TLS, Plaintext.

Definition at line 135 of file run_channelz.py.

◆ debug_sock_tls()

def bin.run_channelz.debug_sock_tls (   tls)

Definition at line 79 of file run_channelz.py.

◆ get_deployment_pod_ips()

def bin.run_channelz.get_deployment_pod_ips (   k8s_ns,
  deployment_name 
)

Definition at line 84 of file run_channelz.py.

◆ main()

def bin.run_channelz.main (   argv)

Definition at line 173 of file run_channelz.py.

Variable Documentation

◆ _Channel

bin.run_channelz._Channel = grpc_channelz.Channel
private

Definition at line 65 of file run_channelz.py.

◆ _ChannelState

bin.run_channelz._ChannelState = grpc_channelz.ChannelState
private

Definition at line 67 of file run_channelz.py.

◆ _CLIENT_RPC_HOST

bin.run_channelz._CLIENT_RPC_HOST
private
Initial value:
1 = flags.DEFINE_string('client_rpc_host',
2  default='127.0.0.1',
3  help='Client RPC host')

Definition at line 49 of file run_channelz.py.

◆ _SECURITY

bin.run_channelz._SECURITY
private
Initial value:
1 = flags.DEFINE_enum('security',
2  default=None,
3  enum_values=[
4  'mtls', 'tls', 'plaintext', 'mtls_error',
5  'server_authz_error'
6  ],
7  help='Show info for a security setup')

Definition at line 52 of file run_channelz.py.

◆ _SERVER_RPC_HOST

bin.run_channelz._SERVER_RPC_HOST
private
Initial value:
1 = flags.DEFINE_string('server_rpc_host',
2  default='127.0.0.1',
3  help='Server RPC host')

Definition at line 46 of file run_channelz.py.

◆ _Socket

bin.run_channelz._Socket = grpc_channelz.Socket
private

Definition at line 66 of file run_channelz.py.

◆ _XdsTestClient

bin.run_channelz._XdsTestClient = client_app.XdsTestClient
private

Definition at line 69 of file run_channelz.py.

◆ _XdsTestServer

bin.run_channelz._XdsTestServer = server_app.XdsTestServer
private

Definition at line 68 of file run_channelz.py.

◆ logger

bin.run_channelz.logger = logging.getLogger(__name__)

Definition at line 44 of file run_channelz.py.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:02:58