teleport/lib
Andrew Lytvynov bdd388e0d0 Fix remaining staticcheck findings in lib/...
Fixed findings:
```
lib/sshutils/server_test.go:163:2: SA4006: this value of `clt` is never used (staticcheck)
	clt, err := ssh.Dial("tcp", srv.Addr(), &cc)
	^
lib/sshutils/server_test.go:91:3: SA5001: should check returned error before deferring ch.Close() (staticcheck)
		defer ch.Close()
		^
lib/shell/shell_test.go:33:2: SA4006: this value of `shell` is never used (staticcheck)
	shell, err = GetLoginShell("non-existent-user")
	^
lib/cgroup/cgroup_test.go:111:2: SA9003: empty branch (staticcheck)
	if err != nil {
	^
lib/cgroup/cgroup_test.go:119:2: SA5001: should check returned error before deferring service.Close() (staticcheck)
	defer service.Close()
	^
lib/client/keystore_test.go:138:2: SA4006: this value of `keyCopy` is never used (staticcheck)
	keyCopy, err = s.store.GetKey("host.a", "bob")
	^
lib/client/api.go:1604:3: SA4004: the surrounding loop is unconditionally terminated (staticcheck)
		return makeProxyClient(sshClient, m), nil
		^
lib/backend/test/suite.go:156:2: SA4006: this value of `err` is never used (staticcheck)
	result, err = s.B.GetRange(ctx, prefix("/prefix/c/c1"), backend.RangeEnd(prefix("/prefix/c/cz")), backend.NoLimit)
	^
lib/utils/timeout_test.go:84:2: SA1019: t.Dial is deprecated: Use DialContext instead, which allows the transport to cancel dials as soon as they are no longer needed. If both are set, DialContext takes priority.  (staticcheck)
	t.Dial = func(network string, addr string) (net.Conn, error) {
	^
lib/utils/websocketwriter.go:83:3: SA4006: this value of `err` is never used (staticcheck)
		utf8, err = w.encoder.String(string(data))
		^
lib/utils/loadbalancer_test.go:134:2: SA4006: this value of `out` is never used (staticcheck)
	out, err = Roundtrip(frontend.String())
	^
lib/utils/loadbalancer_test.go:209:2: SA4006: this value of `out` is never used (staticcheck)
	out, err = RoundtripWithConn(conn)
	^
lib/srv/forward/sshserver.go:582:3: SA4004: the surrounding loop is unconditionally terminated (staticcheck)
		return
		^
lib/service/service.go:347:4: SA4006: this value of `err` is never used (staticcheck)
			i, err = auth.GenerateIdentity(process.localAuth, id, principals, dnsNames)
			^
lib/service/signals.go:60:3: SA1016: syscall.SIGKILL cannot be trapped (did you mean syscall.SIGTERM?) (staticcheck)
		syscall.SIGKILL, // fast shutdown
		^
lib/config/configuration_test.go:184:2: SA4006: this value of `conf` is never used (staticcheck)
	conf, err = ReadFromFile(s.configFileBadContent)
	^
lib/config/configuration.go:129:2: SA5001: should check returned error before deferring reader.Close() (staticcheck)
	defer reader.Close()
	^
lib/kube/kubeconfig/kubeconfig_test.go:227:2: SA4006: this value of `err` is never used (staticcheck)
	tlsCert, err := ca.GenerateCertificate(tlsca.CertificateRequest{
	^
lib/srv/sess.go:720:3: SA4006: this value of `err` is never used (staticcheck)
		result, err := s.term.Wait()
		^
lib/multiplexer/multiplexer_test.go:169:11: SA1006: printf-style function with dynamic format string and no further arguments should use print-style function instead (staticcheck)
	_, err = fmt.Fprintf(conn, proxyLine.String())
	        ^
lib/multiplexer/multiplexer_test.go:221:11: SA1006: printf-style function with dynamic format string and no further arguments should use print-style function instead (staticcheck)
	_, err = fmt.Fprintf(conn, proxyLine.String())
	        ^
```
2020-04-28 15:17:44 +00:00
..
asciitable Updated "tctl tokens ..." command. 2018-09-04 10:16:29 -07:00
auth support access-request update delegators 2020-04-23 14:57:09 -07:00
backend Fix remaining staticcheck findings in lib/... 2020-04-28 15:17:44 +00:00
bpf synchronize bpf watch map reads 2020-04-01 11:41:44 -07:00
cache cache event fanout & reversetunnel improvements 2020-04-23 14:03:52 -07:00
cgroup Fix remaining staticcheck findings in lib/... 2020-04-28 15:17:44 +00:00
client Fix remaining staticcheck findings in lib/... 2020-04-28 15:17:44 +00:00
config Fix remaining staticcheck findings in lib/... 2020-04-28 15:17:44 +00:00
defaults Merge Teleport V4.3 UI branch to master (#3583) 2020-04-15 15:35:26 -04:00
events Fix staticcheck findings in lib/events/... 2020-04-28 15:17:44 +00:00
fixtures Use roles and traits in certificate for RBAC. 2019-09-03 13:44:20 -07:00
httplib Enable more Go linters: varcheck,bodyclose,structcheck 2020-04-24 15:52:43 +00:00
kube Fix remaining staticcheck findings in lib/... 2020-04-28 15:17:44 +00:00
limiter Initial implementation of Kubernetes support 2018-06-03 12:55:13 -07:00
modules Add --k8s-users flag to tctl users add 2020-04-24 16:23:18 +00:00
multiplexer Fix remaining staticcheck findings in lib/... 2020-04-28 15:17:44 +00:00
pam Fix memory leak and pass variables to PAM. 2020-02-06 11:15:44 -08:00
reversetunnel cache event fanout & reversetunnel improvements 2020-04-23 14:03:52 -07:00
secret Allow tsh to connect to legacy clusters. 2019-06-24 13:39:31 -07:00
service Fix remaining staticcheck findings in lib/... 2020-04-28 15:17:44 +00:00
services Fix staticcheck findings in lib/services/... 2020-04-28 15:17:44 +00:00
session Merge Teleport V4.3 UI branch to master (#3583) 2020-04-15 15:35:26 -04:00
shell Fix remaining staticcheck findings in lib/... 2020-04-28 15:17:44 +00:00
srv Fix remaining staticcheck findings in lib/... 2020-04-28 15:17:44 +00:00
sshca Create single instance of keygen per process. Use cache of precomputed 2018-02-15 21:23:30 +00:00
sshutils Fix remaining staticcheck findings in lib/... 2020-04-28 15:17:44 +00:00
system Map error to errno value and log it 2018-03-26 23:28:58 +02:00
teleagent Migrate to golang/dep for dependency management 2017-08-22 15:30:30 -07:00
tlsca Enable linters: deadcode,goimports,govet,typecheck 2020-04-17 17:46:51 +00:00
utils Fix remaining staticcheck findings in lib/... 2020-04-28 15:17:44 +00:00
web Fix staticcheck findings in lib/web/... 2020-04-28 15:17:44 +00:00
wrappers Merge Teleport V4.3 UI branch to master (#3583) 2020-04-15 15:35:26 -04:00
runtimeflags.go Correct various typos 2017-10-20 10:20:26 +02:00