tailscale: Add runtime exit node API
This commit is contained in:
@@ -5,6 +5,7 @@ import "context"
|
||||
type TailscaleEndpoint interface {
|
||||
SubscribeTailscaleStatus(ctx context.Context, fn func(*TailscaleEndpointStatus)) error
|
||||
StartTailscalePing(ctx context.Context, peerIP string, fn func(*TailscalePingResult)) error
|
||||
SetTailscaleExitNode(ctx context.Context, stableID string) error
|
||||
}
|
||||
|
||||
type TailscalePingResult struct {
|
||||
@@ -22,6 +23,7 @@ type TailscaleEndpointStatus struct {
|
||||
NetworkName string
|
||||
MagicDNSSuffix string
|
||||
Self *TailscalePeer
|
||||
ExitNode *TailscalePeer
|
||||
UserGroups []*TailscaleUserGroup
|
||||
}
|
||||
|
||||
@@ -34,6 +36,7 @@ type TailscaleUserGroup struct {
|
||||
}
|
||||
|
||||
type TailscalePeer struct {
|
||||
StableID string
|
||||
HostName string
|
||||
DNSName string
|
||||
OS string
|
||||
|
||||
Reference in New Issue
Block a user