Documentation
¶
Index ¶
- func SSHConnect(mgr *ssh.Manager) ...
- func SSHConnectSchema() *structpb.Struct
- func SSHDisconnect(mgr *ssh.Manager) ...
- func SSHDisconnectSchema() *structpb.Struct
- func SSHDownload(mgr *ssh.Manager) ...
- func SSHDownloadSchema() *structpb.Struct
- func SSHExec(mgr *ssh.Manager) ...
- func SSHExecSchema() *structpb.Struct
- func SSHInteractiveClose(iMgr *ssh.InteractiveManager) ...
- func SSHInteractiveCloseSchema() *structpb.Struct
- func SSHInteractiveOpen(sshMgr *ssh.Manager, iMgr *ssh.InteractiveManager) ...
- func SSHInteractiveOpenSchema() *structpb.Struct
- func SSHInteractiveSend(iMgr *ssh.InteractiveManager) ...
- func SSHInteractiveSendSchema() *structpb.Struct
- func SSHInteractiveStream(iMgr *ssh.InteractiveManager) ...
- func SSHInteractiveStreamSchema() *structpb.Struct
- func SSHListRemote(mgr *ssh.Manager) ...
- func SSHListRemoteSchema() *structpb.Struct
- func SSHListSessions(mgr *ssh.Manager) ...
- func SSHListSessionsSchema() *structpb.Struct
- func SSHUpload(mgr *ssh.Manager) ...
- func SSHUploadSchema() *structpb.Struct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SSHConnect ¶
func SSHConnect(mgr *ssh.Manager) func(ctx context.Context, req *pluginv1.ToolRequest) (*pluginv1.ToolResponse, error)
SSHConnect returns a tool handler that connects to an SSH server.
func SSHConnectSchema ¶
SSHConnectSchema returns the JSON Schema for the ssh_connect tool.
func SSHDisconnect ¶
func SSHDisconnect(mgr *ssh.Manager) func(ctx context.Context, req *pluginv1.ToolRequest) (*pluginv1.ToolResponse, error)
SSHDisconnect returns a tool handler that disconnects an SSH session.
func SSHDisconnectSchema ¶
SSHDisconnectSchema returns the JSON Schema for the ssh_disconnect tool.
func SSHDownload ¶
func SSHDownload(mgr *ssh.Manager) func(ctx context.Context, req *pluginv1.ToolRequest) (*pluginv1.ToolResponse, error)
SSHDownload returns a tool handler that downloads a file from a remote server via SFTP.
func SSHDownloadSchema ¶
SSHDownloadSchema returns the JSON Schema for the ssh_download tool.
func SSHExec ¶
func SSHExec(mgr *ssh.Manager) func(ctx context.Context, req *pluginv1.ToolRequest) (*pluginv1.ToolResponse, error)
SSHExec returns a tool handler that executes a command on a remote server.
func SSHExecSchema ¶
SSHExecSchema returns the JSON Schema for the ssh_exec tool.
func SSHInteractiveClose ¶ added in v1.0.5
func SSHInteractiveClose(iMgr *ssh.InteractiveManager) func(ctx context.Context, req *pluginv1.ToolRequest) (*pluginv1.ToolResponse, error)
SSHInteractiveClose returns a tool handler that closes an interactive SSH session.
func SSHInteractiveCloseSchema ¶ added in v1.0.5
SSHInteractiveCloseSchema returns the JSON Schema for the ssh_interactive_close tool.
func SSHInteractiveOpen ¶ added in v1.0.5
func SSHInteractiveOpen(sshMgr *ssh.Manager, iMgr *ssh.InteractiveManager) func(ctx context.Context, req *pluginv1.ToolRequest) (*pluginv1.ToolResponse, error)
SSHInteractiveOpen returns a tool handler that opens an interactive SSH shell with PTY allocation on an existing SSH connection.
func SSHInteractiveOpenSchema ¶ added in v1.0.5
SSHInteractiveOpenSchema returns the JSON Schema for the ssh_interactive_open tool.
func SSHInteractiveSend ¶ added in v1.0.5
func SSHInteractiveSend(iMgr *ssh.InteractiveManager) func(ctx context.Context, req *pluginv1.ToolRequest) (*pluginv1.ToolResponse, error)
SSHInteractiveSend returns a tool handler that writes input to an interactive SSH session's stdin.
func SSHInteractiveSendSchema ¶ added in v1.0.5
SSHInteractiveSendSchema returns the JSON Schema for the ssh_interactive_send tool.
func SSHInteractiveStream ¶ added in v1.0.5
func SSHInteractiveStream(iMgr *ssh.InteractiveManager) func(ctx context.Context, req *pluginv1.StreamStart, chunks chan<- []byte) error
SSHInteractiveStream returns a streaming tool handler that subscribes to an interactive SSH session's output and pushes each chunk through the streaming channel. The stream runs until the context is cancelled or the session closes.
func SSHInteractiveStreamSchema ¶ added in v1.0.5
SSHInteractiveStreamSchema returns the JSON Schema for the ssh_interactive_stream streaming tool.
func SSHListRemote ¶
func SSHListRemote(mgr *ssh.Manager) func(ctx context.Context, req *pluginv1.ToolRequest) (*pluginv1.ToolResponse, error)
SSHListRemote returns a tool handler that lists files on a remote server via SFTP.
func SSHListRemoteSchema ¶
SSHListRemoteSchema returns the JSON Schema for the ssh_list_remote tool.
func SSHListSessions ¶
func SSHListSessions(mgr *ssh.Manager) func(ctx context.Context, req *pluginv1.ToolRequest) (*pluginv1.ToolResponse, error)
SSHListSessions returns a tool handler that lists active SSH sessions.
func SSHListSessionsSchema ¶
SSHListSessionsSchema returns the JSON Schema for the ssh_list_sessions tool.
func SSHUpload ¶
func SSHUpload(mgr *ssh.Manager) func(ctx context.Context, req *pluginv1.ToolRequest) (*pluginv1.ToolResponse, error)
SSHUpload returns a tool handler that uploads a file to a remote server via SFTP.
func SSHUploadSchema ¶
SSHUploadSchema returns the JSON Schema for the ssh_upload tool.
Types ¶
This section is empty.