libtailscale

command module
v0.0.0-...-9d45e58 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2025 License: BSD-3-Clause Imports: 16 Imported by: 0

README

libtailscale

libtailscale is a C library that embeds Tailscale into a process.

Use this library to compile Tailscale into your program and get an IP address on a tailnet, entirely from userspace.

Building

With the latest version of Go, run:

go build -buildmode=c-archive

This will produce a libtailscale.a file. Link it into your binary, and use the tailscale.h header to reference it.

It is also possible to build a shared library using

go build -buildmode=c-shared

Bugs

Please file any issues about this code or the hosted service on the issue tracker.

License

BSD 3-Clause for this repository, see LICENSE.

Documentation

Overview

A Go c-archive of the tsnet package. See tailscale.h for details.

Directories

Path Synopsis
Package tsnetctest tests the libtailscale C bindings.
Package tsnetctest tests the libtailscale C bindings.
A Go c-archive of tsnet integration/control test utilities This mirrors athe functionality in tstest without the depenency on go tests so it can be bundled as a static library and used to drive integration tests on other platforms
A Go c-archive of tsnet integration/control test utilities This mirrors athe functionality in tstest without the depenency on go tests so it can be bundled as a static library and used to drive integration tests on other platforms

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL