waft.warp_client.linux_warp_client_handler module

class waft.warp_client.linux_warp_client_handler.LinuxWarpClientHandler(node: BaseNode)

Bases: UnixWarpClientHandler

Class to interact with WARP client on Linux operating systems

app_data_path: PurePath = PurePosixPath('/var/lib/cloudflare-warp')
property install_manager

Return install manager object for given node class

read_registration_secret() dict

Read the stored WARP registration secret details.

Returns:

JSON-formatted WARP registration secret details

Return type:

dict

set_service_environment_variable(variable: str, value: str | int)

Set Environment variable for the WARP client service

Parameters:
  • variable – name of the environment variable to set

  • value – Value to which to set the environment variable

tunnel_connected() bool

Check to see if WARP is routing the connection through the tunnel

property warp_cli: WarpCliBase

Returns a WarpCli instance for the appropriate node