tsnet

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package tsnet adapts embedded Tailscale runtimes to Tailpath exporter snapshots.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

type Source struct {
	// contains filtered or unexported fields
}

Source reads the passive runtime status of one embedded Tailscale identity.

func New

func New(server *tailscaletsnet.Server) (*Source, error)

New obtains a LocalClient from server and returns a Source for that embedded identity. Tailscale may start an unstarted server while obtaining its LocalClient; the application remains responsible for all server lifecycle.

func NewLocalClient

func NewLocalClient(client *local.Client) (*Source, error)

NewLocalClient returns a Source backed by an existing embedded LocalAPI client without changing the associated server lifecycle.

func (*Source) Snapshot

func (s *Source) Snapshot(ctx context.Context) (exporter.Snapshot, error)

Snapshot reads one passive LocalAPI status snapshot. It does not dial or probe peers and does not alter Tailscale preferences.

Jump to

Keyboard shortcuts

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