2022-10-21 13:17:38 +02:00
|
|
|
package integration
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/netip"
|
|
|
|
|
|
|
|
"tailscale.com/ipn/ipnstate"
|
|
|
|
)
|
|
|
|
|
|
|
|
type TailscaleClient interface {
|
|
|
|
Hostname() string
|
|
|
|
Shutdown() error
|
|
|
|
Version() string
|
2022-10-23 14:13:22 +02:00
|
|
|
Execute(command []string) (string, error)
|
2022-10-21 13:17:38 +02:00
|
|
|
Up(loginServer, authKey string) error
|
|
|
|
IPs() ([]netip.Addr, error)
|
2022-10-23 11:55:37 +02:00
|
|
|
FQDN() (string, error)
|
2022-10-21 13:17:38 +02:00
|
|
|
Status() (*ipnstate.Status, error)
|
|
|
|
WaitForPeers(expected int) error
|
2022-10-21 14:07:46 +02:00
|
|
|
Ping(hostnameOrIP string) error
|
2022-10-21 13:17:38 +02:00
|
|
|
}
|