summaryrefslogtreecommitdiff
path: root/pkg/varlinkapi
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-01-08 16:58:50 +0100
committerGitHub <noreply@github.com>2020-01-08 16:58:50 +0100
commitc6ad42a176c943aa96a8c053682196cd38fd6a1a (patch)
treeef71ccbda94462f1bee19e8153c361751813df8a /pkg/varlinkapi
parent27caffbb240725255485deaaecd548663adbf1fd (diff)
parentbcf5753276fcb7280924b46c7c49ef3e2388c9b0 (diff)
downloadpodman-c6ad42a176c943aa96a8c053682196cd38fd6a1a.tar.gz
podman-c6ad42a176c943aa96a8c053682196cd38fd6a1a.tar.bz2
podman-c6ad42a176c943aa96a8c053682196cd38fd6a1a.zip
Merge pull request #4816 from vrothberg/lint
Fix golint errors
Diffstat (limited to 'pkg/varlinkapi')
-rw-r--r--pkg/varlinkapi/virtwriter/virtwriter.go10
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")