shell

package
v5.9.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2018 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetParamsFromShell

func GetParamsFromShell(shell string, keyMap map[string]string) map[string]string
keyMap := map[string]string{
	 "param_key" : "shell_key"
}

func MakeRsyncCmd

func MakeRsyncCmd(sou string, dst string, excludeFrom string, timeout int) string

func NewCmd

func NewCmd(cmdStr string) *exec.Cmd

func RunCmdBindTerminal

func RunCmdBindTerminal(cmdStr string)

Types

type ShellResult

type ShellResult struct {
	Ok     bool
	Output []byte
}

func Rsync

func Rsync(sou string, dst string, excludeFrom string, sshUser string, timeout int) *ShellResult

func RunAsUser

func RunAsUser(cmdStr string, username string) *ShellResult

func RunCmd

func RunCmd(cmdStr string) *ShellResult

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL