Documentation ¶
Index ¶
- Constants
- func RunTaskWithQuit(client *transport.Client, cmd string, quitCh chan bool, writer io.Writer) (err error)
- type Command
- type FTaskResp
- type 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, id string, conf []byte) (types.Step, error)
- func (m *Manager) ParseSteps(params string) ([]types.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 Manifest
- type Player
- type Result
- type Schema
- type TaskItem
- type TempFile
- type WindowSize
Constants ¶
View Source
const ( TaskTickerInterval = 2 DefaultBlockSize = 65535 FileTaskRunning = "running" FileTaskDone = "done" FileTaskFailed = "failed" FileTaskCancel = "cancel" )
View Source
const ( CMDTypeShell = "cmd" CMDTypePlayer = "player" PollSize = 2000 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) CancelTask ¶
func (*Manager) GetAllPluginSchema ¶
func (*Manager) GetFileList ¶
func (*Manager) GetSSHList ¶
func (*Manager) NewClientWithSftp ¶
NewClientWithSftp 创建新的ssh client并创建sftp客户端
func (*Manager) RegisterFileListSub ¶
func (*Manager) ReloadAllFilePlugins ¶
func (*Manager) RemoveCache ¶
func (*Manager) RemoveFileListSub ¶
func (*Manager) UpdateTaskStatus ¶
type WindowSize ¶
Click to show internal directories.
Click to hide internal directories.