summaryrefslogtreecommitdiff
path: root/pkg/adapter/client_unix.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-06-21 14:36:55 +0200
committerGitHub <noreply@github.com>2019-06-21 14:36:55 +0200
commit54920601ae69ca9b22bda75882425b88cd99efea (patch)
treeeeb534900d899aa86daeabdc5ac1ee6d4128b730 /pkg/adapter/client_unix.go
parentc3b75b232800d2d9bee2e1975cd6e0d35509791c (diff)
parent484b4a7c4b26a9dcccee3c79ef912b721f638747 (diff)
downloadpodman-54920601ae69ca9b22bda75882425b88cd99efea.tar.gz
podman-54920601ae69ca9b22bda75882425b88cd99efea.tar.bz2
podman-54920601ae69ca9b22bda75882425b88cd99efea.zip
Merge pull request #3386 from baude/windowsbridge
add windows bridge format
Diffstat (limited to 'pkg/adapter/client_unix.go')
-rw-r--r--pkg/adapter/client_unix.go18
1 files changed, 2 insertions, 16 deletions
diff --git a/pkg/adapter/client_unix.go b/pkg/adapter/client_unix.go
index e0406567c..4781acd06 100644
--- a/pkg/adapter/client_unix.go
+++ b/pkg/adapter/client_unix.go
@@ -7,24 +7,10 @@ import (
"fmt"
"github.com/containers/libpod/cmd/podman/remoteclientconfig"
- "github.com/pkg/errors"
)
-// newBridgeConnection creates a bridge type endpoint with username, destination, and log-level
-func newBridgeConnection(formattedBridge string, remoteConn *remoteclientconfig.RemoteConnection, logLevel string) (*Endpoint, error) {
- endpoint := Endpoint{
- Type: BridgeConnection,
- }
-
- if len(formattedBridge) < 1 && remoteConn == nil {
- return nil, errors.New("bridge connections must either be created by string or remoteconnection")
- }
- if len(formattedBridge) > 0 {
- endpoint.Connection = formattedBridge
- return &endpoint, nil
- }
- endpoint.Connection = fmt.Sprintf(
+func formatDefaultBridge(remoteConn *remoteclientconfig.RemoteConnection, logLevel string) string {
+ return fmt.Sprintf(
`ssh -T %s@%s -- /usr/bin/varlink -A \'/usr/bin/podman --log-level=%s varlink \\\$VARLINK_ADDRESS\' bridge`,
remoteConn.Username, remoteConn.Destination, logLevel)
- return &endpoint, nil
}