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