Index
๐ค AI-Generated Content
This documentation was generated with AI assistance and is still being audited. Some, or potentially a lot, of this information may be inaccurate. Learn more.
pyvider.protocols.tfprotov6.handlers
¶
Functions¶
ApplyResourceChangeHandler
async
¶
Handle apply resource change request with metrics collection.
Source code in pyvider/protocols/tfprotov6/handlers/apply_resource_change.py
CallFunctionHandler
async
¶
Handles the CallFunction RPC request, acting as a robust dispatcher.
Source code in pyvider/protocols/tfprotov6/handlers/call_function.py
CloseEphemeralResourceHandler
async
¶
CloseEphemeralResourceHandler(
request: Request, context: Any
) -> pb.CloseEphemeralResource.Response
Handles closing an ephemeral resource.
Source code in pyvider/protocols/tfprotov6/handlers/close_ephemeral_resource.py
ConfigureProviderHandler
async
¶
Handles the ConfigureProvider RPC request.
This handler validates the provider configuration sent by Terraform and initializes the provider context, making it available for all subsequent component operations.
Source code in pyvider/protocols/tfprotov6/handlers/configure_provider.py
GetFunctionsHandler
async
¶
Handle GetFunctions requests by returning all registered functions. This now uses a cached result to improve performance and reduce log noise.
Source code in pyvider/protocols/tfprotov6/handlers/get_functions.py
GetMetadataHandler
async
¶
Get provider metadata with dynamically discovered resources.
Source code in pyvider/protocols/tfprotov6/handlers/get_metadata.py
GetProviderSchemaHandler
async
¶
Handles the GetProviderSchema RPC request using a robust, race-condition-free asyncio.Future to ensure the schema is computed only once.
Source code in pyvider/protocols/tfprotov6/handlers/get_provider_schema.py
ImportResourceStateHandler
async
¶
Handle import resource state request.
Source code in pyvider/protocols/tfprotov6/handlers/import_resource_state.py
MoveResourceStateHandler
async
¶
Handle move resource state request.
Source code in pyvider/protocols/tfprotov6/handlers/move_resource_state.py
OpenEphemeralResourceHandler
async
¶
Handles opening an ephemeral resource.
Source code in pyvider/protocols/tfprotov6/handlers/open_ephemeral_resource.py
PlanResourceChangeHandler
async
¶
Handle plan resource change request.
Source code in pyvider/protocols/tfprotov6/handlers/plan_resource_change.py
ReadDataSourceHandler
async
¶
Handle read data source request.
Source code in pyvider/protocols/tfprotov6/handlers/read_data_source.py
ReadResourceHandler
async
¶
Handle read resource request.
Source code in pyvider/protocols/tfprotov6/handlers/read_resource.py
RenewEphemeralResourceHandler
async
¶
RenewEphemeralResourceHandler(
request: Request, context: Any
) -> pb.RenewEphemeralResource.Response
Handles renewing an ephemeral resource's lease.
Source code in pyvider/protocols/tfprotov6/handlers/renew_ephemeral_resource.py
StopProviderHandler
async
¶
Handles the StopProvider RPC call from Terraform Core. This is the primary mechanism for Terraform to request a graceful plugin exit.
Source code in pyvider/protocols/tfprotov6/handlers/stop_provider.py
UpgradeResourceStateHandler
async
¶
Handle UpgradeResourceState requests. For now, this is a pass-through as we are not implementing schema versioning. It must return the state it was given, unmodified.
Source code in pyvider/protocols/tfprotov6/handlers/upgrade_resource_state.py
ValidateDataResourceConfigHandler
async
¶
ValidateDataResourceConfigHandler(
request: Request, context: Any
) -> pb.ValidateDataResourceConfig.Response
Handle validate data resource config request.
Source code in pyvider/protocols/tfprotov6/handlers/validate_data_resource_config.py
ValidateEphemeralResourceConfigHandler
async
¶
ValidateEphemeralResourceConfigHandler(
request: Request, context: Any
) -> pb.ValidateEphemeralResourceConfig.Response
Handles validation of an ephemeral resource's configuration.
Source code in pyvider/protocols/tfprotov6/handlers/validate_ephemeral_resource_config.py
ValidateProviderConfigHandler
async
¶
ValidateProviderConfigHandler(
request: Request, context: Any
) -> pb.ValidateProviderConfig.Response
Handle ValidateProviderConfig requests.
Source code in pyvider/protocols/tfprotov6/handlers/validate_provider_config.py
ValidateResourceConfigHandler
async
¶
ValidateResourceConfigHandler(
request: Request, context: Any
) -> pb.ValidateResourceConfig.Response
Handle validate resource config request.