-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
m.gavrilenko
committed
May 4, 2021
1 parent
20b6df7
commit cd4148d
Showing
7 changed files
with
1,155 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
*.dll | ||
*.so | ||
*.dylib | ||
*.idea | ||
|
||
# Test binary, built with `go test -c` | ||
*.test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package sshExecutor | ||
|
||
// Ssh term sizes | ||
const ( | ||
xTermHeight = 80 | ||
xTermWidth = 40 | ||
) | ||
|
||
// Params for scp file sending | ||
type FilePathParams struct { | ||
RootFolder string | ||
FolderName string | ||
FolderRights string | ||
FileName string | ||
FileRights string | ||
Content string | ||
} | ||
|
||
// Params for ssh connection | ||
type ConnectParams struct { | ||
Host string | ||
Port string | ||
User string | ||
Psw string | ||
} |
Oops, something went wrong.