GRPC Core  18.0.0
Data Structures | Typedefs | Functions
grpc_core::internal Namespace Reference

Data Structures

class  ClientChannelGlobalParsedConfig
 
class  ClientChannelMethodParsedConfig
 
class  ClientChannelServiceConfigParser
 
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  ExecCtxState
 
class  ThreadState
 
class  Delete
 
class  Delete< T, kUnrefDelete >
 
class  Delete< T, kUnrefNoDelete >
 
class  Delete< T, kUnrefCallDtor >
 
class  ThreadInternalsInterface
 Base class for platform-specific thread-state. More...
 

Typedefs

typedef bool(* grpc_gce_tenancy_checker) (void)
 

Functions

void SetXdsChannelArgsForTest (grpc_channel_args *args)
 
void UnsetGlobalXdsClientForTest ()
 
void SetXdsFallbackBootstrapConfig (const char *config)
 
google_rpc_StatusStatusToProto (absl::Status status, upb_arena *arena) GRPC_MUST_USE_RESULT
 Builds a upb message, google_rpc_Status from a status This is for internal implementation & test only. More...
 
absl::Status StatusFromProto (google_rpc_Status *msg) GRPC_MUST_USE_RESULT
 Builds a status from a upb message, google_rpc_Status This is for internal implementation & test only. More...
 
uintptr_t StatusAllocPtr (absl::Status s)
 Returns ptr where the given status is copied into. More...
 
void StatusFreePtr (uintptr_t ptr)
 Frees the allocated status at ptr. More...
 
absl::Status StatusGetFromPtr (uintptr_t ptr)
 Get the status from ptr. More...
 
char * read_bios_file (const char *bios_file)
 This method is a helper function that reads a file containing system bios data. More...
 
bool check_bios_data (const char *bios_data)
 This method checks if system BIOS data contains Google-specific phrases. More...
 
void set_gce_tenancy_checker_for_testing (grpc_gce_tenancy_checker checker)
 
void grpc_flush_cached_google_default_credentials (void)
 
grpc_core::RefCountedPtr< grpc_auth_contextgrpc_alts_auth_context_from_tsi_peer (const tsi_peer *peer)
 
grpc_error_handle TlsCheckHostName (const char *peer_name, const tsi_peer *peer)
 
void alts_handshaker_client_set_grpc_caller_for_testing (alts_handshaker_client *c, alts_grpc_caller caller)
 
grpc_byte_bufferalts_handshaker_client_get_send_buffer_for_testing (alts_handshaker_client *c)
 
grpc_byte_buffer ** alts_handshaker_client_get_recv_buffer_addr_for_testing (alts_handshaker_client *c)
 
grpc_metadata_arrayalts_handshaker_client_get_initial_metadata_for_testing (alts_handshaker_client *c)
 
void alts_handshaker_client_set_recv_bytes_for_testing (alts_handshaker_client *c, grpc_slice *recv_bytes)
 
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_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)
 
void alts_handshaker_client_set_vtable_for_testing (alts_handshaker_client *c, alts_handshaker_client_vtable *vtable)
 
alts_tsi_handshakeralts_handshaker_client_get_handshaker_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)
 
grpc_closurealts_handshaker_client_get_closure_for_testing (alts_handshaker_client *c)
 
void alts_handshaker_client_ref_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)
 
bool alts_tsi_handshaker_get_has_sent_start_message_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 alts_tsi_handshaker_get_is_client_for_testing (alts_tsi_handshaker *handshaker)
 
alts_handshaker_clientalts_tsi_handshaker_get_client_for_testing (alts_tsi_handshaker *handshaker)
 Unsafe, use for testing only. More...
 
int 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. More...
 

Typedef Documentation

◆ grpc_gce_tenancy_checker

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

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 
)

◆ alts_handshaker_client_get_closure_for_testing()

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

◆ alts_handshaker_client_get_handshaker_for_testing()

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

◆ 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)

◆ 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)

◆ 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)

◆ 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 
)

◆ alts_handshaker_client_ref_for_testing()

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

◆ 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 
)

◆ 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 
)

◆ 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 
)

◆ 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 
)

◆ 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 
)

◆ 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.

◆ 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)

◆ alts_tsi_handshaker_get_is_client_for_testing()

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

◆ 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 
)

◆ 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()

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

◆ grpc_flush_cached_google_default_credentials()

void grpc_core::internal::grpc_flush_cached_google_default_credentials ( void  )

◆ 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.

◆ 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.

◆ set_gce_tenancy_checker_for_testing()

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

◆ SetXdsChannelArgsForTest()

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

◆ SetXdsFallbackBootstrapConfig()

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

◆ StatusAllocPtr()

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

Returns ptr where the given status is copied into.

This ptr can be used to get Status later and should be freed by StatusFreePtr. This shouldn't be used except migration purpose.

◆ StatusFreePtr()

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

Frees the allocated status at ptr.

This shouldn't be used except migration purpose.

◆ 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.

◆ StatusGetFromPtr()

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

Get the status from ptr.

This shouldn't be used except migration purpose.

◆ StatusToProto()

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

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

◆ TlsCheckHostName()

grpc_error_handle grpc_core::internal::TlsCheckHostName ( const char *  peer_name,
const tsi_peer peer 
)

◆ UnsetGlobalXdsClientForTest()

void grpc_core::internal::UnsetGlobalXdsClientForTest ( )