Skip to content

Commit

Permalink
Merge branch 'rowanjacobs-socks5-proxy-library'
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek Richard committed Oct 25, 2017
2 parents e6db21b + 2760b35 commit 7304aa2
Show file tree
Hide file tree
Showing 19 changed files with 362 additions and 63 deletions.
65 changes: 35 additions & 30 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions bosh/boshfakes/fake_director.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

152 changes: 152 additions & 0 deletions bosh/boshfakes/fake_proxy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions bosh/boshfakes/fake_runner.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions bosh/cli_coordinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"io/ioutil"
"os"

"github.com/cloudfoundry/bosh-deployment-resource/bosh/proxy"
"github.com/cloudfoundry/bosh-deployment-resource/concourse"

boshcmd "github.com/cloudfoundry/bosh-cli/cmd"
Expand All @@ -19,13 +18,19 @@ import (
goflags "github.com/jessevdk/go-flags"
)

//go:generate counterfeiter . Proxy
type Proxy interface {
Start(string, string) error
Addr() (string, error)
}

type CLICoordinator struct {
source concourse.Source
out io.Writer
proxy proxy.Proxy
proxy Proxy
}

func NewCLICoordinator(source concourse.Source, out io.Writer, proxy proxy.Proxy) CLICoordinator {
func NewCLICoordinator(source concourse.Source, out io.Writer, proxy Proxy) CLICoordinator {
return CLICoordinator{
source: source,
out: out,
Expand Down
Loading

0 comments on commit 7304aa2

Please sign in to comment.