Documentation ¶
Index ¶
- type ConnectState
- type TailscaleClient
- func (tsc *TailscaleClient) AddSplitDestinations(destinations []string)
- func (tsc *TailscaleClient) Connect(space userspace.SpaceNode, useSpaceDNS, egressViaSpace bool) error
- func (tsc *TailscaleClient) Disconnect() error
- func (tsc *TailscaleClient) GetStatus() string
- func (tsc *TailscaleClient) Write(p []byte) (n int, err error)
- type TailscaleDaemon
- func (tsd *TailscaleDaemon) BytesTransmitted() (int64, int64, error)
- func (tsd *TailscaleDaemon) CacheDNSNames(dnsNames []string) ([]string, error)
- func (tsd *TailscaleDaemon) ConfigureTLS(host string, tc *tls.Config) error
- func (tsd *TailscaleDaemon) ExcludeRoute(pfx netip.Prefix) bool
- func (tsd *TailscaleDaemon) IgnoreSetsockoptInt() bool
- func (tsd *TailscaleDaemon) ResolvedDNSNames() []ipnlocal.MyCSDNSMapping
- func (tsd *TailscaleDaemon) Start() error
- func (tsd *TailscaleDaemon) Stop()
- func (tsd *TailscaleDaemon) Write(p []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectState ¶
type ConnectState int
const ( Connecting ConnectState = iota Connected Authenticating Authorizing WaitingForExitNode NotConnected )
type TailscaleClient ¶
type TailscaleClient struct {
// contains filtered or unexported fields
}
func NewTailscaleClient ¶
func NewTailscaleClient( tunDevName string, spaceDeviceName string, spaceNodes *mycscloud.SpaceNodes, ) (*TailscaleClient, error)
func (*TailscaleClient) AddSplitDestinations ¶
func (tsc *TailscaleClient) AddSplitDestinations(destinations []string)
func (*TailscaleClient) Connect ¶
func (tsc *TailscaleClient) Connect( space userspace.SpaceNode, useSpaceDNS, egressViaSpace bool, ) error
func (*TailscaleClient) Disconnect ¶
func (tsc *TailscaleClient) Disconnect() error
func (*TailscaleClient) GetStatus ¶
func (tsc *TailscaleClient) GetStatus() string
type TailscaleDaemon ¶
type TailscaleDaemon struct { *tailscale_common.TailscaleDaemon // contains filtered or unexported fields }
func NewTailscaleDaemon ¶
func NewTailscaleDaemon( statePath string, spaceNodes *mycscloud.SpaceNodes, monitorService *monitors.MonitorService, ) *TailscaleDaemon
func (*TailscaleDaemon) BytesTransmitted ¶
func (tsd *TailscaleDaemon) BytesTransmitted() (int64, int64, error)
func (*TailscaleDaemon) CacheDNSNames ¶
func (tsd *TailscaleDaemon) CacheDNSNames(dnsNames []string) ([]string, error)
func (*TailscaleDaemon) ConfigureTLS ¶
func (tsd *TailscaleDaemon) ConfigureTLS(host string, tc *tls.Config) error
hook in - tailscale.com/net/tlsdial/tlsdial.go
func (*TailscaleDaemon) ExcludeRoute ¶
func (tsd *TailscaleDaemon) ExcludeRoute(pfx netip.Prefix) bool
hook in - tailscale.com/wgengine/router/router_userspace_bsd.go
func (*TailscaleDaemon) IgnoreSetsockoptInt ¶
func (tsd *TailscaleDaemon) IgnoreSetsockoptInt() bool
hook in - tailscale.com/net/netns/netns_darwin_tailscaled.go
func (*TailscaleDaemon) ResolvedDNSNames ¶
func (tsd *TailscaleDaemon) ResolvedDNSNames() []ipnlocal.MyCSDNSMapping
hook in - tailscale.com/ipn/ipnlocal/local.go
func (*TailscaleDaemon) Start ¶
func (tsd *TailscaleDaemon) Start() error
func (*TailscaleDaemon) Stop ¶
func (tsd *TailscaleDaemon) Stop()
Click to show internal directories.
Click to hide internal directories.