sshtask

package
v0.0.0-...-5dcfad9 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 20 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) CheckErr

func (t *Task) CheckErr() error

CheckErr ...

func (*Task) HandleOutput

func (t *Task) HandleOutput()

HandleOutput ...

func (*Task) ListHosts

func (t *Task) ListHosts() ([]string, error)

ListHosts ...

func (*Task) RunSSH

func (t *Task) RunSSH(host *batchssh.Host) (string, error)

RunSSH implements batchssh.Task

func (*Task) SetCommand

func (t *Task) SetCommand(command string)

SetCommand ...

func (*Task) SetFetchFiles

func (t *Task) SetFetchFiles(files []string)

SetFetchFiles ...

func (*Task) SetFetchOptions

func (t *Task) SetFetchOptions(destPath, tmpDir string)

SetFetchOptions ...

func (*Task) SetPushOptions

func (t *Task) SetPushOptions(destPath string, allowOverwrite bool)

SetPushOptions ...

func (*Task) SetPushfiles

func (t *Task) SetPushfiles(files, zipFiles []string)

SetPushfiles ...

func (*Task) SetScriptFile

func (t *Task) SetScriptFile(sciptFile string)

SetScriptFile ...

func (*Task) SetScriptOptions

func (t *Task) SetScriptOptions(destPath string, remove, allowOverwrite bool)

SetScriptOptions ...

func (*Task) SetTargetHosts

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

SetTargetHosts ...

func (*Task) Start

func (t *Task) Start()

Start task.

type TaskType

type TaskType int

TaskType ...

const (
	CommandTask TaskType = iota
	ScriptTask
	PushTask
	FetchTask
)

...

Jump to

Keyboard shortcuts

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