Versions in this module Expand all Collapse all v0 v0.7.9 Feb 21, 2024 v0.7.8 Feb 21, 2024 v0.7.7 Nov 29, 2023 v0.7.6 Apr 14, 2023 Changes in this version + type Manifest struct + DisplayName string + Import string v0.7.5 Mar 10, 2023 Changes in this version + const CMDTypePlayer + const CMDTypeShell + const DefaultBlockSize + const FileTaskCancel + const FileTaskDone + const FileTaskFailed + const FileTaskRunning + const PollSize + const TaskTickerInterval + func RunTaskWithQuit(client *transport.Client, cmd string, quitCh chan bool, writer io.Writer) (err error) + type Command struct + Params string + Sudo bool + Type string + WindowSize WindowSize + type FTaskResp struct + Current string + Dest string + File string + Id string + Percent float32 + Speed string + Status string + Total string + type Manager struct + func NewManager(cfg *config.Conf) *Manager + func (m *Manager) CancelTask(key string) + func (m *Manager) GetAllPluginSchema() []Schema + func (m *Manager) GetFileList() *utils.SafeMap + func (m *Manager) GetSSHList() *cache.Cache + func (m *Manager) GetStatus(host *models.Host) bool + func (m *Manager) Init() *Manager + func (m *Manager) NewClient(host *models.Host) (*transport.Client, error) + func (m *Manager) NewClientWithSftp(host *models.Host) (*transport.Client, error) + func (m *Manager) NewStep(typ string) buildin.Step + func (m *Manager) ParseSteps(params string) ([]buildin.Step, error) + func (m *Manager) RegisterFileListSub(key string, notifyCh chan []FTaskResp) + func (m *Manager) ReloadAllFilePlugins(pluginPath string) + func (m *Manager) RemoveCache(host *models.Host) + func (m *Manager) RemoveFileListSub(key string) + func (m *Manager) UpdateTaskStatus(task *TaskItem, status string) + func (m *Manager) UploadFileStream(c *transport.Client, remote string, addr string, tmp *TempFile, ...) + type Player struct + Steps []buildin.Step + func NewPlayer(client *transport.Client, steps []buildin.Step, sudo bool, size *WindowSize) *Player + func (p *Player) Run(ctx context.Context) ([]byte, error) + type Result struct + Addr string + HostId int + HostName string + Msg string + Seq int + Status bool + type Schema struct + Desc string + Schema interface{} + Type string + type TaskItem struct + CSize int64 + Cancel context.CancelFunc + FileName string + Host string + RSize int64 + Status string + Total int64 + type TempFile struct + Name string + Num int32 + Path string + Size int + type WindowSize struct + Cols int + Rows int