From cfaa36e51afb6c1400065f041201a77c6c66136c Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Tue, 8 Nov 2022 15:09:52 +0000 Subject: [PATCH] Add method to expose container id Signed-off-by: Kristoffer Dalby --- integration/tailscale.go | 1 + integration/tsic/tsic.go | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/integration/tailscale.go b/integration/tailscale.go index 6b51193a..c560c4fd 100644 --- a/integration/tailscale.go +++ b/integration/tailscale.go @@ -20,4 +20,5 @@ type TailscaleClient interface { WaitForReady() error WaitForPeers(expected int) error Ping(hostnameOrIP string) error + ID() string } diff --git a/integration/tsic/tsic.go b/integration/tsic/tsic.go index d79f7ba6..5e576658 100644 --- a/integration/tsic/tsic.go +++ b/integration/tsic/tsic.go @@ -176,6 +176,10 @@ func (t *TailscaleInContainer) Version() string { return t.version } +func (t *TailscaleInContainer) ID() string { + return t.container.Container.ID +} + func (t *TailscaleInContainer) Execute( command []string, ) (string, string, error) {