Documentation
¶
Index ¶
- Variables
- type ClientFS
- type ClientTerminal
- type NopFS
- type NopTerminal
- func (NopTerminal) CreateTerminal(_ context.Context, _ acp.CreateTerminalRequest) (acp.CreateTerminalResponse, error)
- func (NopTerminal) KillTerminalCommand(_ context.Context, _ acp.KillTerminalCommandRequest) (acp.KillTerminalCommandResponse, error)
- func (NopTerminal) ReleaseTerminal(_ context.Context, _ acp.ReleaseTerminalRequest) (acp.ReleaseTerminalResponse, error)
- func (NopTerminal) TerminalOutput(_ context.Context, _ acp.TerminalOutputRequest) (acp.TerminalOutputResponse, error)
- func (NopTerminal) WaitForTerminalExit(_ context.Context, _ acp.WaitForTerminalExitRequest) (acp.WaitForTerminalExitResponse, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ClientFS ¶
type ClientFS interface {
// ReadTextFile 读文本文件
ReadTextFile(ctx context.Context, params acp.ReadTextFileRequest) (acp.ReadTextFileResponse, error)
// WriteTextFile 写文本文件
WriteTextFile(ctx context.Context, params acp.WriteTextFileRequest) (acp.WriteTextFileResponse, error)
}
ClientFS ACP 客户端文件系统
type ClientTerminal ¶
type ClientTerminal interface {
// CreateTerminal 创建终端
CreateTerminal(ctx context.Context, params acp.CreateTerminalRequest) (acp.CreateTerminalResponse, error)
// TerminalOutput 获取终端输出
TerminalOutput(ctx context.Context, params acp.TerminalOutputRequest) (acp.TerminalOutputResponse, error)
// ReleaseTerminal 释放终端
ReleaseTerminal(ctx context.Context, params acp.ReleaseTerminalRequest) (acp.ReleaseTerminalResponse, error)
// WaitForTerminalExit 等待终端结束
WaitForTerminalExit(ctx context.Context, params acp.WaitForTerminalExitRequest) (acp.WaitForTerminalExitResponse, error)
// KillTerminalCommand 杀终端
KillTerminalCommand(ctx context.Context, params acp.KillTerminalCommandRequest) (acp.KillTerminalCommandResponse, error)
}
ClientTerminal ACP 客户端终端
type NopFS ¶
type NopFS struct{}
NopFS 无文件系统
func (NopFS) ReadTextFile ¶
func (NopFS) ReadTextFile(_ context.Context, _ acp.ReadTextFileRequest) (acp.ReadTextFileResponse, error)
ReadTextFile 读文本文件
func (NopFS) WriteTextFile ¶
func (NopFS) WriteTextFile(_ context.Context, _ acp.WriteTextFileRequest) (acp.WriteTextFileResponse, error)
WriteTextFile 写文本文件
type NopTerminal ¶
type NopTerminal struct{}
NopTerminal 无终端
func (NopTerminal) CreateTerminal ¶
func (NopTerminal) CreateTerminal(_ context.Context, _ acp.CreateTerminalRequest) (acp.CreateTerminalResponse, error)
CreateTerminal 创建终端
func (NopTerminal) KillTerminalCommand ¶
func (NopTerminal) KillTerminalCommand( _ context.Context, _ acp.KillTerminalCommandRequest, ) (acp.KillTerminalCommandResponse, error)
KillTerminalCommand 杀终端
func (NopTerminal) ReleaseTerminal ¶
func (NopTerminal) ReleaseTerminal( _ context.Context, _ acp.ReleaseTerminalRequest, ) (acp.ReleaseTerminalResponse, error)
ReleaseTerminal 释放终端
func (NopTerminal) TerminalOutput ¶
func (NopTerminal) TerminalOutput(_ context.Context, _ acp.TerminalOutputRequest) (acp.TerminalOutputResponse, error)
TerminalOutput 获取终端输出
func (NopTerminal) WaitForTerminalExit ¶
func (NopTerminal) WaitForTerminalExit( _ context.Context, _ acp.WaitForTerminalExitRequest, ) (acp.WaitForTerminalExitResponse, error)
WaitForTerminalExit 等待终端结束
Click to show internal directories.
Click to hide internal directories.