2022-10-21 11:17:38 +00:00
|
|
|
package integration
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/netip"
|
2022-11-03 15:56:19 +00:00
|
|
|
"net/url"
|
2022-10-21 11:17:38 +00:00
|
|
|
|
|
|
|
"tailscale.com/ipn/ipnstate"
|
|
|
|
)
|
|
|
|
|
2022-12-19 18:15:31 +00:00
|
|
|
// nolint
|
2022-10-21 11:17:38 +00:00
|
|
|
type TailscaleClient interface {
|
|
|
|
Hostname() string
|
|
|
|
Shutdown() error
|
|
|
|
Version() string
|
2022-11-03 16:00:23 +00:00
|
|
|
Execute(command []string) (string, string, error)
|
2022-10-21 11:17:38 +00:00
|
|
|
Up(loginServer, authKey string) error
|
2022-11-03 15:56:19 +00:00
|
|
|
UpWithLoginURL(loginServer string) (*url.URL, error)
|
2022-10-21 11:17:38 +00:00
|
|
|
IPs() ([]netip.Addr, error)
|
2022-10-23 09:55:37 +00:00
|
|
|
FQDN() (string, error)
|
2022-10-21 11:17:38 +00:00
|
|
|
Status() (*ipnstate.Status, error)
|
2022-11-13 12:06:53 +00:00
|
|
|
WaitForReady() error
|
2022-12-19 18:15:31 +00:00
|
|
|
WaitForLogout() error
|
2022-10-21 11:17:38 +00:00
|
|
|
WaitForPeers(expected int) error
|
2022-10-21 12:07:46 +00:00
|
|
|
Ping(hostnameOrIP string) error
|
2022-11-08 15:09:52 +00:00
|
|
|
ID() string
|
2022-10-21 11:17:38 +00:00
|
|
|
}
|