Documentation
¶
Index ¶
- func CheckServerSSH(host string, config *ssh.ClientConfig, checks []CheckSSHServer) (int, map[string]CheckSSHResult)
- func CreateSSHKeysSSHConfig(username string, pubkeyfile string) *ssh.ClientConfig
- func CreateUserPasswordSSHConfig(username string, password string) *ssh.ClientConfig
- func ExecSSH(host string, config *ssh.ClientConfig, command string) (string, string, int)
- func ExecuteCommand(command string, args []string, env []string) (string, string, int)
- func GitClone(url string, branch string, folder string) int
- func GitCloneSSH(url string, branch string, folder string, idrsa string) int
- func GitLastCommit(url string, branch string) (string, int)
- func GitLastCommitSSH(url string, branch string, idrsa string) (string, int)
- func SFTPCopyLocalToRemote(host string, config *ssh.ClientConfig, src string, to string) int
- func SFTPCopyRemoteToLocal(host string, config *ssh.ClientConfig, src string, to string) int
- func StartPipe(bucle bool, pipe ...*RepoPipe)
- type CheckSSHResult
- type CheckSSHServer
- type Operation
- type RepoPipe
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckServerSSH ¶
func CheckServerSSH(host string, config *ssh.ClientConfig, checks []CheckSSHServer) (int, map[string]CheckSSHResult)
func CreateSSHKeysSSHConfig ¶
func CreateSSHKeysSSHConfig(username string, pubkeyfile string) *ssh.ClientConfig
func CreateUserPasswordSSHConfig ¶
func CreateUserPasswordSSHConfig(username string, password string) *ssh.ClientConfig
func ExecuteCommand ¶
func GitLastCommitSSH ¶
func SFTPCopyLocalToRemote ¶
func SFTPCopyRemoteToLocal ¶
Types ¶
type CheckSSHServer ¶
type RepoPipe ¶
type RepoPipe struct {
Action func(*map[string]interface{})
}
func PipeWaitForCommit ¶
Click to show internal directories.
Click to hide internal directories.