tailscale

package
v0.0.0-...-47ed896 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Rig

func Rig(address string, options ...Option) rig.Option

Rig returns a rig.Option that configures a Tailscale server.

Types

type Option

type Option func(*config) error

func Dir

func Dir(dir string) Option

func Funnel

func Funnel() Option

Funnel tells Tailscale to allow public IPs to connect to your service.

func HookUp

func HookUp(fn func(*tsnet.Server, *ipnstate.Status) error) Option

HookUp adds a function that will be called when the Tailscale connection is established and authorized. This is particularly useful for getting the public IP address of the Tailscale server and its FQDN. If the hook returns an error, the Tailscale connection will be closed.

func Hostname

func Hostname(hostname string) Option

Hostname specifies the name of your Tailscale host. Defaults to the system hostname.

func Logf

func Logf(f func(format string, args ...interface{})) Option

Logf sets the logging function for the Tailscale server. Tailscale is EXTREMELY chatty. The default is to log to the standard logger.

func NoTLS

func NoTLS() Option

NoTLS tells Tailscale to not use TLS. This is incompatible with Funnel.

Jump to

Keyboard shortcuts

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