tailscale

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client represents a Tailscale client for managing VPN connections

func NewClient

func NewClient() *Client

NewClient creates a new Tailscale client

func (*Client) Connect

func (c *Client) Connect(authKey string) error

Connect connects to Tailscale using the provided auth key

func (*Client) Disconnect

func (c *Client) Disconnect() error

Disconnect disconnects from Tailscale

func (*Client) GetIP

func (c *Client) GetIP() (string, error)

GetIP returns the Tailscale IP address

func (*Client) GetStatus

func (c *Client) GetStatus() (string, error)

GetStatus returns the current Tailscale status

func (*Client) IsConnected

func (c *Client) IsConnected() (bool, error)

IsConnected checks if Tailscale is connected and active

func (*Client) IsInstalled

func (c *Client) IsInstalled() bool

IsInstalled checks if Tailscale is installed on the system

func (*Client) ListPeers

func (c *Client) ListPeers() ([]string, error)

ListPeers returns a list of connected peers

func (*Client) Ping

func (c *Client) Ping(peer string) error

Ping pings a peer in the Tailscale network

Jump to

Keyboard shortcuts

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