tshelper

package
v0.0.0-...-52eac44 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(hostname string) *tsnet.Server

func WaitForTailscaleIP

func WaitForTailscaleIP(ctx context.Context, ts *tsnet.Server) (v4, v6 netip.Addr, err error)

Types

type Listeners

type Listeners struct {
	Server *tsnet.Server

	Ssh, Http net.Listener

	Client *local.Client
}

func NewListeners

func NewListeners(ts *tsnet.Server, sshPort, httpPort int) (Listeners, error)

func (Listeners) Close

func (l Listeners) Close() error

func (Listeners) WaitForTailscaleIP

func (l Listeners) WaitForTailscaleIP(ctx context.Context) (v4, v6 netip.Addr, err error)

Jump to

Keyboard shortcuts

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