Documentation ¶
Index ¶
- type Client
- func (c *Client) AdvertiseExitNode(ctx context.Context, enable bool) error
- func (c *Client) AdvertiseRoutes(ctx context.Context, routes []netip.Prefix) error
- func (c *Client) AllowLANAccess(ctx context.Context, allow bool) error
- func (c *Client) ExitNode(ctx context.Context, peer *ipnstate.PeerStatus) error
- func (c *Client) NetCheck(ctx context.Context, full bool) (*netcheck.Report, *tailcfg.DERPMap, error)
- func (c *Client) Prefs(ctx context.Context) (*ipn.Prefs, error)
- func (c *Client) Start(ctx context.Context) error
- func (c *Client) Status(ctx context.Context) (*ipnstate.Status, error)
- func (c *Client) Stop(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // Command is the command to call for the Tailscale CLI binary. It // defaults to "tailscale". Command string }
Client is a client for Tailscale's services. Some functionality is handled via the Go API, and some is handled via execution of the Tailscale CLI binary.
func (*Client) AdvertiseExitNode ¶ added in v0.5.0
AdvertiseExitNode enables and disables exit node advertisement for the current node.
func (*Client) AdvertiseRoutes ¶ added in v0.7.3
func (*Client) AllowLANAccess ¶ added in v0.5.0
AllowLANAccess enabled and disables the ability for the current node to get access to the regular LAN that it is connected to while an exit node is in use.
func (*Client) ExitNode ¶ added in v0.4.0
ExitNode uses the specified peer as an exit node, or unsets an existing exit node if peer is nil.
Click to show internal directories.
Click to hide internal directories.