Classes | Typedefs | Functions
grpc_core::internal Namespace Reference

Classes

class  ClientChannelGlobalParsedConfig
 
class  ClientChannelMethodParsedConfig
 
class  ClientChannelServiceConfigParser
 
class  Delete
 
class  Delete< T, kUnrefCallDtor >
 
class  Delete< T, kUnrefDelete >
 
class  Delete< T, kUnrefNoDelete >
 
class  ExecCtxState
 
class  RetryGlobalConfig
 
class  RetryMethodConfig
 
class  RetryServiceConfigParser
 
class  ServerRetryThrottleData
 Tracks retry throttling data for an individual server name. More...
 
class  ServerRetryThrottleMap
 Global map of server name to retry throttle data. More...
 
class  StatusCodeSet
 A set of grpc_status_code values. More...
 
class  ThreadInternalsInterface
 Base class for platform-specific thread-state. More...
 
class  ThreadState
 

Typedefs

typedef bool(* grpc_gce_tenancy_checker) (void)
 

Functions

void alts_handshaker_client_check_fields_for_testing (alts_handshaker_client *c, tsi_handshaker_on_next_done_cb cb, void *user_data, bool has_sent_start_message, grpc_slice *recv_bytes)
 
grpc_closurealts_handshaker_client_get_closure_for_testing (alts_handshaker_client *c)
 
alts_tsi_handshakeralts_handshaker_client_get_handshaker_for_testing (alts_handshaker_client *c)
 
grpc_metadata_arrayalts_handshaker_client_get_initial_metadata_for_testing (alts_handshaker_client *c)
 
grpc_byte_buffer ** alts_handshaker_client_get_recv_buffer_addr_for_testing (alts_handshaker_client *c)
 
grpc_byte_bufferalts_handshaker_client_get_send_buffer_for_testing (alts_handshaker_client *c)
 
void alts_handshaker_client_on_status_received_for_testing (alts_handshaker_client *c, grpc_status_code status, grpc_error_handle error)
 
void alts_handshaker_client_ref_for_testing (alts_handshaker_client *c)
 
void alts_handshaker_client_set_cb_for_testing (alts_handshaker_client *c, tsi_handshaker_on_next_done_cb cb)
 
void alts_handshaker_client_set_fields_for_testing (alts_handshaker_client *c, alts_tsi_handshaker *handshaker, tsi_handshaker_on_next_done_cb cb, void *user_data, grpc_byte_buffer *recv_buffer, grpc_status_code status)
 
void alts_handshaker_client_set_grpc_caller_for_testing (alts_handshaker_client *c, alts_grpc_caller caller)
 
void alts_handshaker_client_set_recv_bytes_for_testing (alts_handshaker_client *c, grpc_slice *recv_bytes)
 
void alts_handshaker_client_set_vtable_for_testing (alts_handshaker_client *c, alts_handshaker_client_vtable *vtable)
 
alts_handshaker_clientalts_tsi_handshaker_get_client_for_testing (alts_tsi_handshaker *handshaker)
 
bool alts_tsi_handshaker_get_has_sent_start_message_for_testing (alts_tsi_handshaker *handshaker)
 
bool alts_tsi_handshaker_get_is_client_for_testing (alts_tsi_handshaker *handshaker)
 
void alts_tsi_handshaker_set_client_vtable_for_testing (alts_tsi_handshaker *handshaker, alts_handshaker_client_vtable *vtable)
 
bool check_bios_data (const char *bios_data)
 
RefCountedPtr< grpc_auth_contextgrpc_alts_auth_context_from_tsi_peer (const tsi_peer *peer)
 
void grpc_flush_cached_google_default_credentials (void)
 
int grpc_gcp_rpc_protocol_version_compare (const grpc_gcp_rpc_protocol_versions_version *v1, const grpc_gcp_rpc_protocol_versions_version *v2)
 
char * read_bios_file (const char *bios_file)
 
void set_gce_tenancy_checker_for_testing (grpc_gce_tenancy_checker checker)
 
void SetXdsChannelArgsForTest (grpc_channel_args *args)
 
void SetXdsFallbackBootstrapConfig (const char *config)
 
uintptr_t StatusAllocHeapPtr (absl::Status s)
 
void StatusFreeHeapPtr (uintptr_t ptr)
 Frees the allocated status at heap ptr. More...
 
absl::Status StatusFromProto (google_rpc_Status *msg)
 
absl::Status StatusGetFromHeapPtr (uintptr_t ptr)
 Get the status from a heap ptr. More...
 
absl::Status StatusMoveFromHeapPtr (uintptr_t ptr)
 Move the status from a heap ptr. (GetFrom & FreeHeap) More...
 
google_rpc_StatusStatusToProto (const absl::Status &status, upb_Arena *arena)
 
void UnsetGlobalXdsClientForTest ()
 

Typedef Documentation

◆ grpc_gce_tenancy_checker

typedef bool(* grpc_core::internal::grpc_gce_tenancy_checker) (void)

Definition at line 91 of file google_default_credentials.h.

Function Documentation

◆ alts_handshaker_client_check_fields_for_testing()

void grpc_core::internal::alts_handshaker_client_check_fields_for_testing ( alts_handshaker_client c,
tsi_handshaker_on_next_done_cb  cb,
void *  user_data,
bool  has_sent_start_message,
grpc_slice recv_bytes 
)

Definition at line 790 of file alts_handshaker_client.cc.

◆ alts_handshaker_client_get_closure_for_testing()

grpc_closure * grpc_core::internal::alts_handshaker_client_get_closure_for_testing ( alts_handshaker_client c)

Definition at line 830 of file alts_handshaker_client.cc.

◆ alts_handshaker_client_get_handshaker_for_testing()

alts_tsi_handshaker * grpc_core::internal::alts_handshaker_client_get_handshaker_for_testing ( alts_handshaker_client c)

Definition at line 814 of file alts_handshaker_client.cc.

◆ alts_handshaker_client_get_initial_metadata_for_testing()

grpc_metadata_array * grpc_core::internal::alts_handshaker_client_get_initial_metadata_for_testing ( alts_handshaker_client c)

Definition at line 760 of file alts_handshaker_client.cc.

◆ alts_handshaker_client_get_recv_buffer_addr_for_testing()

grpc_byte_buffer ** grpc_core::internal::alts_handshaker_client_get_recv_buffer_addr_for_testing ( alts_handshaker_client c)

Definition at line 752 of file alts_handshaker_client.cc.

◆ alts_handshaker_client_get_send_buffer_for_testing()

grpc_byte_buffer * grpc_core::internal::alts_handshaker_client_get_send_buffer_for_testing ( alts_handshaker_client c)

Definition at line 744 of file alts_handshaker_client.cc.

◆ alts_handshaker_client_on_status_received_for_testing()

void grpc_core::internal::alts_handshaker_client_on_status_received_for_testing ( alts_handshaker_client c,
grpc_status_code  status,
grpc_error_handle  error 
)

Definition at line 844 of file alts_handshaker_client.cc.

◆ alts_handshaker_client_ref_for_testing()

void grpc_core::internal::alts_handshaker_client_ref_for_testing ( alts_handshaker_client c)

Definition at line 838 of file alts_handshaker_client.cc.

◆ alts_handshaker_client_set_cb_for_testing()

void grpc_core::internal::alts_handshaker_client_set_cb_for_testing ( alts_handshaker_client c,
tsi_handshaker_on_next_done_cb  cb 
)

Definition at line 822 of file alts_handshaker_client.cc.

◆ alts_handshaker_client_set_fields_for_testing()

void grpc_core::internal::alts_handshaker_client_set_fields_for_testing ( alts_handshaker_client c,
alts_tsi_handshaker handshaker,
tsi_handshaker_on_next_done_cb  cb,
void *  user_data,
grpc_byte_buffer recv_buffer,
grpc_status_code  status 
)

Definition at line 776 of file alts_handshaker_client.cc.

◆ alts_handshaker_client_set_grpc_caller_for_testing()

void grpc_core::internal::alts_handshaker_client_set_grpc_caller_for_testing ( alts_handshaker_client c,
alts_grpc_caller  caller 
)

Definition at line 736 of file alts_handshaker_client.cc.

◆ alts_handshaker_client_set_recv_bytes_for_testing()

void grpc_core::internal::alts_handshaker_client_set_recv_bytes_for_testing ( alts_handshaker_client c,
grpc_slice recv_bytes 
)

Definition at line 768 of file alts_handshaker_client.cc.

◆ alts_handshaker_client_set_vtable_for_testing()

void grpc_core::internal::alts_handshaker_client_set_vtable_for_testing ( alts_handshaker_client c,
alts_handshaker_client_vtable vtable 
)

Definition at line 805 of file alts_handshaker_client.cc.

◆ alts_tsi_handshaker_get_client_for_testing()

alts_handshaker_client * grpc_core::internal::alts_tsi_handshaker_get_client_for_testing ( alts_tsi_handshaker handshaker)

Unsafe, use for testing only.

Definition at line 707 of file alts_tsi_handshaker.cc.

◆ alts_tsi_handshaker_get_has_sent_start_message_for_testing()

bool grpc_core::internal::alts_tsi_handshaker_get_has_sent_start_message_for_testing ( alts_tsi_handshaker handshaker)

Definition at line 689 of file alts_tsi_handshaker.cc.

◆ alts_tsi_handshaker_get_is_client_for_testing()

bool grpc_core::internal::alts_tsi_handshaker_get_is_client_for_testing ( alts_tsi_handshaker handshaker)

Definition at line 701 of file alts_tsi_handshaker.cc.

◆ alts_tsi_handshaker_set_client_vtable_for_testing()

void grpc_core::internal::alts_tsi_handshaker_set_client_vtable_for_testing ( alts_tsi_handshaker handshaker,
alts_handshaker_client_vtable vtable 
)

Definition at line 695 of file alts_tsi_handshaker.cc.

◆ check_bios_data()

bool grpc_core::internal::check_bios_data ( const char *  bios_data)

This method checks if system BIOS data contains Google-specific phrases. Exposed for testing only.

  • bios_data: a buffer containing system BIOS data.

It returns true if the BIOS data contains Google-specific phrases, and false otherwise.

◆ grpc_alts_auth_context_from_tsi_peer()

RefCountedPtr< grpc_auth_context > grpc_core::internal::grpc_alts_auth_context_from_tsi_peer ( const tsi_peer peer)

Definition at line 204 of file alts_security_connector.cc.

◆ grpc_flush_cached_google_default_credentials()

void grpc_core::internal::grpc_flush_cached_google_default_credentials ( void  )

Definition at line 475 of file google_default_credentials.cc.

◆ grpc_gcp_rpc_protocol_version_compare()

int grpc_core::internal::grpc_gcp_rpc_protocol_version_compare ( const grpc_gcp_rpc_protocol_versions_version v1,
const grpc_gcp_rpc_protocol_versions_version v2 
)

Exposed for testing only. The method returns 0 if v1 = v2, returns 1 if v1 > v2, returns -1 if v1 < v2.

Definition at line 177 of file transport_security_common_api.cc.

◆ read_bios_file()

char * grpc_core::internal::read_bios_file ( const char *  bios_file)

This method is a helper function that reads a file containing system bios data. Exposed for testing only.

  • bios_file: a file containing BIOS data used to determine GCE tenancy information.

It returns a buffer containing the data read from the file.

Definition at line 57 of file check_gcp_environment.cc.

◆ set_gce_tenancy_checker_for_testing()

void grpc_core::internal::set_gce_tenancy_checker_for_testing ( grpc_gce_tenancy_checker  checker)

Definition at line 471 of file google_default_credentials.cc.

◆ SetXdsChannelArgsForTest()

void grpc_core::internal::SetXdsChannelArgsForTest ( grpc_channel_args args)

Definition at line 2513 of file xds_client.cc.

◆ SetXdsFallbackBootstrapConfig()

void grpc_core::internal::SetXdsFallbackBootstrapConfig ( const char *  config)

Definition at line 2523 of file xds_client.cc.

◆ StatusAllocHeapPtr()

uintptr_t grpc_core::internal::StatusAllocHeapPtr ( absl::Status  s)

Returns ptr that is allocated in the heap memory and the given status is copied into. This ptr can be used to get Status later and should be freed by StatusFreeHeapPtr. This can be 0 in case of OkStatus.

Definition at line 421 of file status_helper.cc.

◆ StatusFreeHeapPtr()

void grpc_core::internal::StatusFreeHeapPtr ( uintptr_t  ptr)

Frees the allocated status at heap ptr.

Definition at line 427 of file status_helper.cc.

◆ StatusFromProto()

absl::Status grpc_core::internal::StatusFromProto ( google_rpc_Status msg)

Builds a status from a upb message, google_rpc_Status This is for internal implementation & test only

Definition at line 398 of file status_helper.cc.

◆ StatusGetFromHeapPtr()

absl::Status grpc_core::internal::StatusGetFromHeapPtr ( uintptr_t  ptr)

Get the status from a heap ptr.

Definition at line 432 of file status_helper.cc.

◆ StatusMoveFromHeapPtr()

absl::Status grpc_core::internal::StatusMoveFromHeapPtr ( uintptr_t  ptr)

Move the status from a heap ptr. (GetFrom & FreeHeap)

Definition at line 440 of file status_helper.cc.

◆ StatusToProto()

google_rpc_Status * grpc_core::internal::StatusToProto ( const absl::Status status,
upb_Arena arena 
)

Builds a upb message, google_rpc_Status from a status This is for internal implementation & test only

Definition at line 353 of file status_helper.cc.

◆ UnsetGlobalXdsClientForTest()

void grpc_core::internal::UnsetGlobalXdsClientForTest ( )

Definition at line 2518 of file xds_client.cc.



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