Expand description
Rust SDK for LazyCat application and device APIs.
Modules§
Structs§
- ApiGateway
- Complete client composition for the
LazyCatruntime API gateway. - Application
- Identity encoded in a
LazyCatapplication client certificate. - Auth
Token - Secret device API token and its server-provided deadline.
- Authenticated
Service - Tower service that injects a cached device auth token into every gRPC call.
- Client
Credentials - Credential
Paths - Files that make up a
LazyCatapplication client identity. - Device
Proxy - Complete authenticated client composition for a
LazyCatdevice API. - Device
Proxy Status - Named status helpers exposed by a device proxy.
- HServer
Client - Client for the
HPortalSysservice mounted inLazyCatapplications. - Remote
Netstack - Async
LazyCatRemoteSocksnetwork stack. - Remote
Socks Endpoint - Validated
RemoteSocksserver endpoint returned byHPortalSys. - Remote
TcpListener - TCP listener implemented with the two-stage SOCKS BIND command.
- Remote
TcpStream - TCP stream transported through a
LazyCatRemoteSocksproxy. - Remote
UdpSocket - UDP socket transported through standard or extended
LazyCatRemoteSocks. - Service
Status - Availability and optional device-provided reason for a local service.
- Service
Status Querier - Query helper bound to one generated service name.
- Service
Status Registry - Query helper for arbitrary local service names.
- Token
Provider - Single-flight provider for cached
LazyCatdevice API tokens.
Enums§
- Error
- Errors returned by the
LazyCatSDK compatibility layer. - Remote
Location - Physical network location where
HPortalSysshould exposeRemoteSocks. - Service
State - Public service availability state used across device API versions.
- Socks
Address - An RFC 1928 SOCKS address or
LazyCatcustom-network address.
Constants§
- APP_
CERT_ PATH - Runtime application certificate path used by
LazyCatapplications. - APP_
KEY_ PATH - Runtime application private-key path used by
LazyCatapplications. - CA_PATH
- Runtime box certificate path used by
LazyCatapplications. - PORTAL_
SOCKET_ PATH HPortalSysUnix socket mounted intoLazyCatapplications.- REAL_
UID_ METADATA_ KEY - Go-compatible spelling of the deprecated real-user metadata field.
- RUNTIME_
SOCKET_ PATH - Runtime API Unix socket mounted into
LazyCatapplications.
Functions§
- connect_
api - Connect to the
LazyCatruntime API using the mounted application identity. - connect_
api_ with - Connect to the
LazyCatruntime API using preloaded credentials. - peer_
application - Extract the authenticated
LazyCatapplication 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.