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
|
2022-10-23 08:13:22 -04:00
|
|
|
Execute(command []string) (string, error)
|
2022-10-21 07:17:38 -04:00
|
|
|
Up(loginServer, authKey string) error
|
|
|
|
IPs() ([]netip.Addr, error)
|
2022-10-23 05:55:37 -04:00
|
|
|
FQDN() (string, error)
|
2022-10-21 07:17:38 -04:00
|
|
|
Status() (*ipnstate.Status, error)
|
2022-11-13 07:06:53 -05:00
|
|
|
WaitForReady() error
|
2022-10-21 07:17:38 -04:00
|
|
|
WaitForPeers(expected int) error
|
2022-10-21 08:07:46 -04:00
|
|
|
Ping(hostnameOrIP string) error
|
2022-10-21 07:17:38 -04:00
|
|
|
}
|