logman/main.go

19 lines
424 B
Go
Raw Normal View History

2019-08-13 09:48:47 -05:00
package main
import "fmt"
2019-08-14 17:31:13 -05:00
2019-08-13 09:48:47 -05:00
func main() {
2019-08-13 10:01:26 -05:00
//fmt.Println("Hello!")
//var config Configuration
config := initializeConfig("config.yaml")
sshConn, sshConfig := initializeConnection(config)
2019-08-14 17:31:13 -05:00
clientConns := sshConn.dialConnection(sshConfig)
2019-08-16 18:45:01 -05:00
fmt.Println(clientConns)
clientSessions := sshConn.openSession(clientConns)
fmt.Println(clientSessions)
2019-08-16 18:45:01 -05:00
success := sshConn.executeTarFile(clientSessions)
fmt.Println(success)
2019-08-13 09:48:47 -05:00
}