Skip to content

Commit

Permalink
Add method to expose container id
Browse files Browse the repository at this point in the history
Signed-off-by: Kristoffer Dalby <[email protected]>
  • Loading branch information
kradalby committed Nov 26, 2022
1 parent d207c30 commit cfaa36e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions integration/tailscale.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ type TailscaleClient interface {
WaitForReady() error
WaitForPeers(expected int) error
Ping(hostnameOrIP string) error
ID() string
}
4 changes: 4 additions & 0 deletions integration/tsic/tsic.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit cfaa36e

Please sign in to comment.