tailscale.comtailscale.com/cmd/tailscaled/childproc Index | Files

package childproc

import "tailscale.com/cmd/tailscaled/childproc"

Package childproc allows other packages to register "tailscaled be-child" child process hook code. This avoids duplicating build tags in the tailscaled package. Instead, the code that needs to fork/exec the self executable (when it's tailscaled) can instead register the code they want to run.

Index

Variables

var Code = map[string]func([]string) error{}

Functions

func Add

func Add(typ string, f func(args []string) error)

Add registers code f to run as 'tailscaled be-child <typ> [args]'.

Source Files

childproc.go

Version
v1.84.1 (latest)
Published
May 29, 2025
Platform
linux/amd64
Last checked
6 hours ago

Tools for package owners.