Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseConfig ¶
func ParseConfig() error
Types ¶
type DownloadAction ¶
type ServerInfo ¶
type ServerInfo struct { Host string `json:"host,omitempty" mapstructure:"host"` User string `json:"user,omitempty" mapstructure:"user"` Port int `json:"port,omitempty" mapstructure:"port"` Password string `json:"password,omitempty" mapstructure:"password"` SSHKey string `json:"ssh_key,omitempty" mapstructure:"ssh_key"` }
type Task ¶
type Task []TaskAction
type TaskAction ¶
type TaskAction struct { LocalShell string `json:"local_shell,omitempty" mapstructure:"local_shell"` RemoteShell string `json:"remote_shell,omitempty" mapstructure:"remote_shell"` Upload UploadAction `json:"upload,omitempty"` Download DownloadAction `json:"download,omitempty"` Run []string `json:"run,omitempty"` }
type UploadAction ¶
Click to show internal directories.
Click to hide internal directories.