Skip to main content

Crate lzc_sdk

Crate lzc_sdk 

Source
Expand description

Rust SDK for LazyCat application and device APIs.

Modules§

proto

Structs§

ApiGateway
Complete client composition for the LazyCat runtime API gateway.
Application
Identity encoded in a LazyCat application client certificate.
AuthToken
Secret device API token and its server-provided deadline.
AuthenticatedService
Tower service that injects a cached device auth token into every gRPC call.
ClientCredentials
CredentialPaths
Files that make up a LazyCat application client identity.
DeviceProxy
Complete authenticated client composition for a LazyCat device API.
DeviceProxyStatus
Named status helpers exposed by a device proxy.
HServerClient
Client for the HPortalSys service mounted in LazyCat applications.
RemoteNetstack
Async LazyCat RemoteSocks network stack.
RemoteSocksEndpoint
Validated RemoteSocks server endpoint returned by HPortalSys.
RemoteTcpListener
TCP listener implemented with the two-stage SOCKS BIND command.
RemoteTcpStream
TCP stream transported through a LazyCat RemoteSocks proxy.
RemoteUdpSocket
UDP socket transported through standard or extended LazyCat RemoteSocks.
ServiceStatus
Availability and optional device-provided reason for a local service.
ServiceStatusQuerier
Query helper bound to one generated service name.
ServiceStatusRegistry
Query helper for arbitrary local service names.
TokenProvider
Single-flight provider for cached LazyCat device API tokens.

Enums§

Error
Errors returned by the LazyCat SDK compatibility layer.
RemoteLocation
Physical network location where HPortalSys should expose RemoteSocks.
ServiceState
Public service availability state used across device API versions.
SocksAddress
An RFC 1928 SOCKS address or LazyCat custom-network address.

Constants§

APP_CERT_PATH
Runtime application certificate path used by LazyCat applications.
APP_KEY_PATH
Runtime application private-key path used by LazyCat applications.
CA_PATH
Runtime box certificate path used by LazyCat applications.
PORTAL_SOCKET_PATH
HPortalSys Unix socket mounted into LazyCat applications.
REAL_UID_METADATA_KEY
Go-compatible spelling of the deprecated real-user metadata field.
RUNTIME_SOCKET_PATH
Runtime API Unix socket mounted into LazyCat applications.

Functions§

connect_api
Connect to the LazyCat runtime API using the mounted application identity.
connect_api_with
Connect to the LazyCat runtime API using preloaded credentials.
peer_application
Extract the authenticated LazyCat application identity from a server request.
query_service_address
Query the source IP selected by the kernel for reaching host.lzcapp.
request_auth_token
Request a fresh auth token over an unauthenticated mTLS channel.
with_real_uid
Append the deprecated real-user metadata field to a gRPC request.