Imports github.com/gorilla/websocket github.com/pkg/errors github.com/rancher/types/config/dialer github.com/sirupsen/logrus Standard library imports bufio context encoding/binary errors fmt io io/ioutil math/rand net net/http os strings sync sync/atomic time