Add method to expose container id

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
Kristoffer Dalby authored and Even Holthe committed 2022-11-25 14:49:00 +01:00
1 parent 44e37e21c2
commit d4a51b0d2a
2 files changed
+5

No files matched your search

+1
View File
@@ -20,4 +20,5 @@ type TailscaleClient interface {
WaitForReady() error
WaitForPeers(expected int) error
Ping(hostnameOrIP string) error
ID() string
}
+4
View File
@@ -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) {