2022-10-21 07:17:38 -04:00
|
|
|
package integration
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/netip"
|
|
|
|
|
|
|
|
"tailscale.com/ipn/ipnstate"
|
|
|
|
)
|
|
|
|
|
|
|
|
type TailscaleClient interface {
|
|
|
|
Hostname() string
|
|
|
|
Shutdown() error
|
|
|
|
Version() string
|
|
|
|
Up(loginServer, authKey string) error
|
|
|
|
IPs() ([]netip.Addr, error)
|
|
|
|
Status() (*ipnstate.Status, error)
|
|
|
|
WaitForPeers(expected int) error
|
2022-10-21 08:07:46 -04:00
|
|
|
Ping(hostnameOrIP string) error
|
2022-10-21 07:17:38 -04:00
|
|
|
}
|