diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-03-08 18:48:26 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-03-08 18:48:26 +0100 |
| commit | 36d1c4540af3ef058d68092e41af05aa4a8c5eca (patch) | |
| tree | 3657a5920e4b100749ccb9d2d555652e7b7e28e9 /vm/vmimpl/vmimpl.go | |
| parent | 63ef857906766b3cafe4aebc43bc38edf42096c3 (diff) | |
all: fix gometalinter warnings
Fix typos, non-canonical code, remove dead code, etc.
Diffstat (limited to 'vm/vmimpl/vmimpl.go')
| -rw-r--r-- | vm/vmimpl/vmimpl.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vm/vmimpl/vmimpl.go b/vm/vmimpl/vmimpl.go index 2e3833d89..4565d173e 100644 --- a/vm/vmimpl/vmimpl.go +++ b/vm/vmimpl/vmimpl.go @@ -33,7 +33,7 @@ type Instance interface { // Run runs cmd inside of the VM (think of ssh cmd). // outc receives combined cmd and kernel console output. - // errc receives either command Wait return error or vmimpl.TimeoutErr. + // errc receives either command Wait return error or vmimpl.ErrTimeout. // Command is terminated after timeout. Send on the stop chan can be used to terminate it earlier. Run(timeout time.Duration, stop <-chan bool, command string) (outc <-chan []byte, errc <-chan error, err error) @@ -50,8 +50,8 @@ type Env struct { Arch string // target arch Workdir string Image string - SshKey string - SshUser string + SSHKey string + SSHUser string Debug bool Config []byte // json-serialized VM-type-specific config } @@ -87,7 +87,7 @@ func Register(typ string, ctor ctorFunc) { var ( // Close to interrupt all pending operations in all VMs. Shutdown = make(chan struct{}) - TimeoutErr = errors.New("timeout") + ErrTimeout = errors.New("timeout") ctors = make(map[string]ctorFunc) ) |
