diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2020-01-08 15:36:49 +0100 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2020-01-08 15:44:30 +0100 |
commit | bcf5753276fcb7280924b46c7c49ef3e2388c9b0 (patch) | |
tree | 511169adc2cc82e2613d59b56e21876bd756a801 /pkg/varlinkapi | |
parent | 2311e5ff8acf866f2919829b9e2157b6d2c20d1e (diff) | |
download | podman-bcf5753276fcb7280924b46c7c49ef3e2388c9b0.tar.gz podman-bcf5753276fcb7280924b46c7c49ef3e2388c9b0.tar.bz2 podman-bcf5753276fcb7280924b46c7c49ef3e2388c9b0.zip |
fix lint - pkg/varlinkapi/virtwriter
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'pkg/varlinkapi')
-rw-r--r-- | pkg/varlinkapi/virtwriter/virtwriter.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pkg/varlinkapi/virtwriter/virtwriter.go b/pkg/varlinkapi/virtwriter/virtwriter.go index dd171943f..d96e82a3f 100644 --- a/pkg/varlinkapi/virtwriter/virtwriter.go +++ b/pkg/varlinkapi/virtwriter/virtwriter.go @@ -27,13 +27,13 @@ const ( TerminalResize SocketDest = iota // Quit and detach Quit SocketDest = iota - // Quit from the client + // HangUpFromClient hangs up from the client HangUpFromClient SocketDest = iota ) -// ClientHangup signifies that the client wants to drop its -// connection from the server -var ClientHangup = errors.New("client hangup") +// ErrClientHangup signifies that the client wants to drop its connection from +// the server. +var ErrClientHangup = errors.New("client hangup") // IntToSocketDest returns a socketdest based on integer input func IntToSocketDest(i int) SocketDest { @@ -177,7 +177,7 @@ func Reader(r *bufio.Reader, output, errput, input io.Writer, resize chan remote // // reproducer: echo hello | (podman-remote run -i alpine cat) time.Sleep(1 * time.Second) - return ClientHangup + return ErrClientHangup default: // Something really went wrong return errors.New("unknown multiplex destination") |