aboutsummaryrefslogtreecommitdiff
path: root/ssh_client.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-12-10 03:23:02 +0700
committerShulhan <ms@kilabit.info>2023-12-14 20:23:47 +0700
commitf1bcd6e27e9cbf541b9f6d76944bb491aede370a (patch)
tree7349319155d7f8321afc9df08c3ed4ef71bbfcea /ssh_client.go
parent87b79dbd1da7acc73456b3fbfe59a40b59bf116f (diff)
downloadawwan-f1bcd6e27e9cbf541b9f6d76944bb491aede370a.tar.xz
all: changes based on reports from linter revive
Better to fix and follow the reported warnings rather than adding configuration file to add an exception.
Diffstat (limited to 'ssh_client.go')
-rw-r--r--ssh_client.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/ssh_client.go b/ssh_client.go
index 519a19c..766e40b 100644
--- a/ssh_client.go
+++ b/ssh_client.go
@@ -30,12 +30,12 @@ type sshClient struct {
dirTmp string
}
-// newSshClient create new clients using the SSH config section.
+// newSSHClient create new clients using the SSH config section.
//
// Once connection established, the client create new temporary directory on
// server at dirTmp for sudoGet or sudoPut operations.
-func newSshClient(req *ExecRequest, section *config.Section, dirTmp string) (sshc *sshClient, err error) {
- var logp = `newSshClient`
+func newSSHClient(req *ExecRequest, section *config.Section, dirTmp string) (sshc *sshClient, err error) {
+ var logp = `newSSHClient`
req.mlog.Outf(`--- SSH connection: %s@%s:%s`,
section.User(), section.Hostname(), section.Port())