mirror of
https://github.com/juanfont/headscale.git
synced 2025-11-01 21:47:45 +09:00
integration: rework retry for waiting for node sync
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
committed by
Kristoffer Dalby
parent
9d236571f4
commit
3b16b75fe6
@@ -4,6 +4,7 @@ import (
|
||||
"io"
|
||||
"net/netip"
|
||||
"net/url"
|
||||
"time"
|
||||
|
||||
"github.com/juanfont/headscale/hscontrol/types"
|
||||
"github.com/juanfont/headscale/hscontrol/util"
|
||||
@@ -40,9 +41,9 @@ type TailscaleClient interface {
|
||||
DebugDERPRegion(region string) (*ipnstate.DebugDERPRegionReport, error)
|
||||
GetNodePrivateKey() (*key.NodePrivate, error)
|
||||
Netcheck() (*netcheck.Report, error)
|
||||
WaitForNeedsLogin() error
|
||||
WaitForRunning() error
|
||||
WaitForPeers(expected int) error
|
||||
WaitForNeedsLogin(timeout time.Duration) error
|
||||
WaitForRunning(timeout time.Duration) error
|
||||
WaitForPeers(expected int, timeout, retryInterval time.Duration) error
|
||||
Ping(hostnameOrIP string, opts ...tsic.PingOption) error
|
||||
Curl(url string, opts ...tsic.CurlOption) (string, error)
|
||||
Traceroute(netip.Addr) (util.Traceroute, error)
|
||||
|
||||
Reference in New Issue
Block a user