sshtask

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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 ...

func NewTask

func NewTask(taskType TaskType, configFlags *configflags.ConfigFlags) *Task

NewTask ...

func (*Task) BatchRun

func (t *Task) BatchRun()

BatchRun ...

func (*Task) HandleOutput

func (t *Task) HandleOutput()

HandleOutput ...

func (*Task) RunSSH

func (t *Task) RunSSH(addr string) (string, error)

RunSSH implements batchssh.Task

func (*Task) SetCommand

func (t *Task) SetCommand(command string)

SetCommand ...

func (*Task) SetCopyfileOrScript

func (t *Task) SetCopyfileOrScript(file string)

SetCopyfileOrScript ...

func (*Task) SetFileOptions added in v0.4.0

func (t *Task) SetFileOptions(destPath string, remove bool)

SetFileOptions ...

func (*Task) SetHosts

func (t *Task) SetHosts(hosts []string)

SetHosts ...

func (*Task) Start

func (t *Task) Start()

Start task.

type TaskType

type TaskType int

TaskType ...

const (
	CommandTask TaskType = iota
	ScriptTask
	PushTask
)

...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳