Documentation
¶
Index ¶
- type Task
- func (t *Task) CheckErr() error
- func (t *Task) ListHosts() ([]string, error)
- func (t *Task) SSH(host *batchssh.Host) (string, error)
- func (t *Task) SetCommand(command string)
- func (t *Task) SetFetchFiles(files []string)
- func (t *Task) SetFetchOptions(destPath, tmpDir string, enableZipFiles bool)
- func (t *Task) SetPushOptions(destPath string, allowOverwrite, enableZip bool)
- func (t *Task) SetPushfiles(files, zipFiles []string)
- func (t *Task) SetScriptFile(sciptFile string)
- func (t *Task) SetScriptOptions(destPath string, remove, allowOverwrite bool)
- func (t *Task) SetTargetHosts(hosts []string)
- func (t *Task) Start()
- type TaskType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
Task is a ssh task for one or more hosts.
func NewTask ¶
func NewTask(taskType TaskType, configFlags *configflags.ConfigFlags) *Task
NewTask create a new task.
func (*Task) SetCommand ¶
func (*Task) SetFetchFiles ¶ added in v1.4.0
func (*Task) SetFetchOptions ¶ added in v1.4.1
func (*Task) SetPushOptions ¶ added in v1.4.1
func (*Task) SetPushfiles ¶ added in v1.4.0
func (*Task) SetScriptFile ¶ added in v0.6.1
func (*Task) SetScriptOptions ¶ added in v0.5.0
func (*Task) SetTargetHosts ¶ added in v1.5.0
Click to show internal directories.
Click to hide internal directories.