MCPcopy Create free account

hub / github.com/tailscale/tailcat / functions

Functions179 in github.com/tailscale/tailcat

↓ 1 callersFunctionfetchWasm
()
web/app.js:95
↓ 1 callersFunctionfindChromium
()
web/wasm_test.go:73
↓ 1 callersFunctionfindRegionIDFromSubstring
or returns 0 on no match
cmd/tailcat/tailcat.go:1167
↓ 1 callersFunctiongenKey
()
cmd/tailcat/tailcat.go:981
↓ 1 callersFunctiongetHostKeys
getHostKeys returns the SSH host key signers, generating an ed25519 key in ~/.config/tailcat/ssh/ if one doesn't exist.
tailcat_ssh.go:315
↓ 1 callersFunctionhashSink
(conn)
web/app.js:240
↓ 1 callersFunctionhex
(digest)
web/app.js:58
↓ 1 callersFunctionhostKeyFileOrCreate
(keyDir string)
tailcat_ssh.go:349
↓ 1 callersMethodinitLocked
initLocked builds the client's network stack (WireGuard engine and netstack) on first use, with defaults for unset config fields. It does no network a
tailcat.go:1463
↓ 1 callersFunctionloginShell
loginShell returns the user's login shell.
tailcat_ssh.go:289
↓ 1 callersFunctionnodeHasAddr
nodeHasAddr reports whether ip is one of n's tailcat addresses.
tailcat.go:1149
↓ 1 callersFunctionnodePublicAsDiscoPublic
nodePublicAsDiscoPublic converts a NodePublic to a DiscoPublic by reusing the same raw key bytes. This is used in tailcat where the server's node publ
tailcat.go:1838
↓ 1 callersMethodonMeow
onMeow handles a MeowPing from the client with node key src and disco key discoPub, adding it as a WireGuard peer. It reports whether the client is al
tailcat.go:1260
↓ 1 callersFunctionparsePortSet
(s string)
cmd/tailcat/tailcat.go:865
↓ 1 callersFunctionpickDERPMapURL
()
web/app.js:21
↓ 1 callersMethodping
ping sends a single meow ping and waits for the meowed ack. The client must be started.
tailcat.go:1660
↓ 1 callersFunctionpingUntil
pingUntil retries the meow/meowed handshake until it succeeds or ctx expires. The first pings can be lost while either side's DERP connection is still
web/main_js.go:185
↓ 1 callersFunctionportRanges
portRanges coalesces the ascending-sorted ports into contiguous port ranges.
cmd/tailcat/tailcat.go:922
↓ 1 callersFunctionreceiveText
(conn, li, progress)
web/app.js:205
↓ 1 callersFunctionrenumberRegion
renumberRegion returns a copy of dm with its single region 1 renumbered to newID. Tests pass an arbitrary ID (at most the DERP maximum of 999) so that
web/wasm_test.go:120
↓ 1 callersFunctionrunDevDERP
(logf logger.Logf)
cmd/tailcat/tailcat.go:933
↓ 1 callersFunctionrunWithPTY
runWithPTY runs cmd attached to a pseudo-terminal.
tailcat_ssh.go:110
↓ 1 callersFunctionrunWithPipes
runWithPipes runs cmd with stdin/stdout/stderr pipes (no PTY).
tailcat_ssh.go:207
↓ 1 callersFunctionsendStream
(addr, size, readChunk, progressEl)
web/app.js:264
↓ 1 callersFunctionserver
(logf logger.Logf)
cmd/tailcat/tailcat.go:674
↓ 1 callersFunctionsetupSSHEnv
(t *testing.T)
tailcat_ssh_test.go:29
↓ 1 callersMethodsshClient
sshClient dials the server's SSH port and returns a connected gossh.Client.
tailcat_ssh_test.go:62
↓ 1 callersFunctionsshKeyDir
()
tailcat_ssh.go:331
↓ 1 callersFunctionstartListener
()
web/app.js:136
↓ 1 callersFunctiontailcatDial
tailcatDial connects to a tailcat server and dials one TCP stream over the tunnel. It takes one options object argument: { addr: string, /
web/main_js.go:136
↓ 1 callersFunctiontailcatListen
tailcatListen starts a tailcat server in the browser. It takes one options object argument: { derpMapURL: string, // absolute URL of the JS
web/main_js.go:55
↓ 1 callersFunctiontcpipStackOf
tcpipStackOf returns ns's unexported gVisor *stack.Stack. TODO(bradfitz): add an exported accessor to wgengine/netstack.Impl upstream and delete this
tailcat.go:584
↓ 1 callersFunctionversionString
versionString returns the version set at release build time, falling back to the module version from the Go build info.
cmd/tailcat/tailcat.go:186
MethodClose
()
tailcat.go:248
MethodGet
(url string)
tailcat.go:823
MethodGet
(url string)
cmd/tailcat/tailcat.go:328
MethodHandleTailscaleSSHConn
(c net.Conn)
tailcat_ssh_stub.go:16
MethodHandleTailscaleSSHConn
HandleTailscaleSSHConn handles an incoming TCP connection as an SSH session. Authentication is not required — the WireGuard tunnel provides identity.
tailcat_ssh.go:46
MethodMarshalBinary
MarshalBinary implements encoding.BinaryMarshaler for CBOR serialization, encoding the raw 32-byte key without the "nodekey:" text prefix.
tailcat.go:171
FunctionNewClient
NewClient returns a client that will connect to the server identified by the given token. It is shorthand for &Client{Server: server}; see [Client] fo
tailcat.go:1455
FunctionPickBestRegion
PickBestRegion is a stub for js/wasm, where netcheck's STUN probes are unavailable (browsers can't send raw UDP). It always returns 0, which makes [Co
pickregion_js.go:19
MethodPut
(url string, data []byte, etag string)
tailcat.go:830
MethodPut
(url string, data []byte, etag string)
cmd/tailcat/tailcat.go:347
MethodStart
()
tailcat.go:1161
MethodStatus
()
tailcat.go:1322
FunctionSupportsSSHServer
SupportsSSHServer reports whether the platform supports running the built-in auth-free SSH server.
tailcat_ssh.go:36
FunctionTestBrowserReceives
TestBrowserReceives has the browser listen and a Go tailcat client send it random bytes, netcat style, verifying the browser received exactly what was
web/wasm_test.go:224
FunctionTestBrowserReceivesTextUI
TestBrowserReceivesTextUI has the browser listen with the regular interface (not the test-mode hash sink), sends it text from a Go tailcat client, cli
web/wasm_test.go:466
FunctionTestBrowserSends
TestBrowserSends has a Go tailcat server listen and the browser dial it and send random bytes, verifying the server received exactly what the browser
web/wasm_test.go:322
FunctionTestBrowserSendsTextUI
TestBrowserSendsTextUI drives the send form like a user: it types an address and a message into the page, clicks "Send text", and verifies a Go tailca
web/wasm_test.go:404
FunctionTestClassifySOCKSAddr
(t *testing.T)
cmd/tailcat/socks_test.go:25
FunctionTestConnBlob
(t *testing.T)
tailcat_test.go:284
FunctionTestFetchDERPMapMemoryCache
TestFetchDERPMapMemoryCache verifies the default in-memory DERP map cache: a second fetch of the same URL within the freshness window makes no network
tailcat_test.go:428
FunctionTestHalfClose
TestHalfClose tests that a client's write shutdown (CloseWrite) propagates through the server's TCP proxying as a half-close rather than tearing down
tailcat_test.go:120
FunctionTestHandler
(t *testing.T)
webdemo/webdemo_test.go:34
FunctionTestHandlerIncompleteDist
(t *testing.T)
webdemo/webdemo_test.go:26
FunctionTestNormalizeListenAddrPort
(t *testing.T)
cmd/tailcat/socks_test.go:226
FunctionTestPipeMode
TestPipeMode runs the built tailcat binary in its two stdin/stdout pipe modes against a local DERP server, emulating a pipeline like "tailcat | tar -z
cmd/tailcat/pipe_test.go:30
FunctionTestSOCKSClientKey
TestSOCKSClientKey verifies that "tailcat socks" presents the --key client identity rather than a fresh ephemeral node key, by connecting to a server
cmd/tailcat/socks_test.go:155
FunctionTestSSHDestHost
(t *testing.T)
cmd/tailcat/ssh_test.go:37
FunctionTestSSHProxyCommandDERPMap
(t *testing.T)
cmd/tailcat/ssh_test.go:15
FunctionTestSSHSuite
(t *testing.T)
tailcat_ssh_test.go:83
FunctionTestServerCloseClosesActiveConnections
(t *testing.T)
tailcat_test.go:219
FunctionTestTailcat
(t *testing.T)
tailcat_test.go:38
FunctionTestWireFieldNames
TestWireFieldNames verifies that every field of every wire type has a CBOR field name matching wireFieldNames, so that the same Go field name always g
wire_test.go:43
FunctionTestWireRegionRoundTrip
TestWireRegionRoundTrip tests the mapping between the upstream tailcfg DERP types (as fetched from the control plane's DERP map) and tailcat's wire ty
wire_test.go:84
MethodUnmarshalBinary
UnmarshalBinary implements encoding.BinaryUnmarshaler for CBOR deserialization.
tailcat.go:176
FunctionclientSSHMode
(logf logger.Logf)
cmd/tailcat/ssh_stub.go:16
FunctionlookupNetIP
lookupNetIP resolves host using the local resolver, for [classifySOCKSAddr].
cmd/tailcat/tailcat.go:596
Functionmain
()
cmd/tailcat/tailcat.go:196
Functionmain
()
cmd/tailcat-webdist/tailcat-webdist.go:25
Functionmain
()
cmd/tailcat-web/tailcat-web.go:31
Functionmain
()
web/main_js.go:28
FunctiononConnection
(conn)
web/app.js:157
MethodonEngineStatus
onEngineStatus is the wgengine status callback. It watches for changes to our magicsock UDP endpoints (learned via STUN and from local interfaces) and
tailcat.go:1083
MethodpeerAllowedIPs
peerAllowedIPs returns the prefixes that the peer with public key k is allowed to originate traffic from. It is the engine's per-peer WireGuard config
tailcat.go:1020
MethodpeerForIP
peerForIP is the [wgengine.Engine.SetPeerForIPFunc] callback, mapping a tailcat IPv6 address to its node in the network map. The engine uses it to fin
tailcat.go:1059
FunctionsessionHandler
sessionHandler handles a single SSH session (shell or exec).
tailcat_ssh.go:67
Functiontransform
(chunk, controller)
web/app.js:74
← previous101–179 of 179, ranked by callers