fix windows
This commit is contained in:
parent
d713f7ec64
commit
eb05f6ff88
|
@ -3,22 +3,14 @@
|
||||||
package googlecompute
|
package googlecompute
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
|
||||||
"context"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
|
||||||
"os/exec"
|
|
||||||
"strings"
|
|
||||||
"syscall"
|
|
||||||
"time"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func NewTunnelDriver() TunnelDriver {
|
func NewTunnelDriver() TunnelDriver {
|
||||||
return &TunnelDriverWindows{}
|
return &TunnelDriverWindows{}
|
||||||
}
|
}
|
||||||
|
|
||||||
type TunnelDriverLinux struct {
|
type TunnelDriverWindows struct {
|
||||||
cmd *exec.Cmd
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *TunnelDriverWindows) StartTunnel(cancelCtx context.Context, tempScriptFileName string) error {
|
func (t *TunnelDriverWindows) StartTunnel(cancelCtx context.Context, tempScriptFileName string) error {
|
||||||
|
|
Loading…
Reference in New Issue