Skip to content

Commit

Permalink
New Feature: docker#1342 Get an internal IP of cloud hosted machine (…
Browse files Browse the repository at this point in the history
…actual implementation for GCE, placeholders for the rest currently)

Signed-off-by: Andrew Grande <[email protected]>
  • Loading branch information
aperepel committed Jun 12, 2015
1 parent 7441c9d commit c688180
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion commands/scp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (d ScpFakeDriver) GetIP() (string, error) {
return "12.34.56.78", nil
}

func (d *ScpFakeDriver) GetPrivateIP() (string, error) {
func (d ScpFakeDriver) GetPrivateIP() (string, error) {
return "", errors.New("not implemented")
}

Expand Down
5 changes: 5 additions & 0 deletions drivers/hyperv/hyperv_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package hyperv
import (
"archive/tar"
"bytes"
"errors"
"fmt"
"io/ioutil"
"os"
Expand Down Expand Up @@ -436,6 +437,10 @@ func (d *Driver) GetIP() (string, error) {
return resp[0], nil
}

func (d *Driver) GetPrivateIP() (string, error) {
return "", errors.New("not implemented")
}

func (d *Driver) publicSSHKeyPath() string {
return d.GetSSHKeyPath() + ".pub"
}
Expand Down

0 comments on commit c688180

Please sign in to comment.