Documentation
¶
Index ¶
- Constants
- Variables
- func GetMainRpcClient() *wshutil.WshRpc
- type WshServer
- func (ws *WshServer) ActivityCommand(ctx context.Context, activity wshrpc.ActivityUpdate) error
- func (ws *WshServer) BlockInfoCommand(ctx context.Context, blockId string) (*wshrpc.BlockInfoData, error)
- func (ws *WshServer) BlockJobStatusCommand(ctx context.Context, blockId string) (*wshrpc.BlockJobStatusData, error)
- func (ws *WshServer) BlocksListCommand(ctx context.Context, req wshrpc.BlocksListRequest) ([]wshrpc.BlocksListEntry, error)
- func (ws *WshServer) CommandAiCancelCommand(ctx context.Context, requestId string) error
- func (ws *WshServer) CommandAiModelsCommand(ctx context.Context, data wshrpc.CommandAiModelsRequest) (wshrpc.CommandAiModels, error)
- func (ws *WshServer) CommandAiPreviewCommand(ctx context.Context, data wshrpc.CommandAiRequest) (wshrpc.CommandAiPreview, error)
- func (ws *WshServer) CommandAiRunCommand(ctx context.Context, data wshrpc.CommandAiRequest) (wshrpc.CommandAiResult, error)
- func (ws *WshServer) CommandAiStatusCommand(ctx context.Context, data wshrpc.CommandAiStatusRequest) (wshrpc.CommandAiStatus, error)
- func (ws *WshServer) ConnConnectCommand(ctx context.Context, connRequest wshrpc.ConnRequest) error
- func (ws *WshServer) ConnDisconnectCommand(ctx context.Context, connName string) error
- func (ws *WshServer) ConnEnsureCommand(ctx context.Context, data wshrpc.ConnExtData) error
- func (ws *WshServer) ConnListCommand(ctx context.Context) ([]string, error)
- func (ws *WshServer) ConnReinstallWshCommand(ctx context.Context, data wshrpc.ConnExtData) error
- func (ws *WshServer) ConnStatusCommand(ctx context.Context) ([]wshrpc.ConnStatus, error)
- func (ws *WshServer) ControllerAppendOutputCommand(ctx context.Context, data wshrpc.CommandControllerAppendOutputData) error
- func (ws *WshServer) ControllerDestroyCommand(ctx context.Context, blockId string) error
- func (ws *WshServer) ControllerInputCommand(ctx context.Context, data wshrpc.CommandBlockInputData) error
- func (ws *WshServer) ControllerResyncCommand(ctx context.Context, data wshrpc.CommandControllerResyncData) error
- func (ws *WshServer) CreateBlockCommand(ctx context.Context, data wshrpc.CommandCreateBlockData) (*waveobj.ORef, error)
- func (ws *WshServer) CreateSubBlockCommand(ctx context.Context, data wshrpc.CommandCreateSubBlockData) (*waveobj.ORef, error)
- func (ws *WshServer) DebugTermCommand(ctx context.Context, data wshrpc.CommandDebugTermData) (*wshrpc.CommandDebugTermRtnData, error)
- func (ws *WshServer) DeleteBlockCommand(ctx context.Context, data wshrpc.CommandDeleteBlockData) error
- func (ws *WshServer) DeleteSubBlockCommand(ctx context.Context, data wshrpc.CommandDeleteBlockData) error
- func (ws *WshServer) DismissWshFailCommand(ctx context.Context, connName string) error
- func (ws *WshServer) DisposeSuggestionsCommand(ctx context.Context, widgetId string) error
- func (ws *WshServer) DurableJobCountCommand(ctx context.Context, data wshrpc.CommandDurableJobCountData) (int, error)
- func (ws *WshServer) EventPublishCommand(ctx context.Context, data wps.WaveEvent) error
- func (ws *WshServer) EventReadHistoryCommand(ctx context.Context, data wshrpc.CommandEventReadHistoryData) ([]*wps.WaveEvent, error)
- func (ws *WshServer) EventRecvCommand(ctx context.Context, data wps.WaveEvent) error
- func (ws *WshServer) EventSubCommand(ctx context.Context, data wps.SubscriptionRequest) error
- func (ws *WshServer) EventUnsubCommand(ctx context.Context, data string) error
- func (ws *WshServer) FetchSuggestionsCommand(ctx context.Context, data wshrpc.FetchSuggestionsData) (*wshrpc.FetchSuggestionsResponse, error)
- func (ws *WshServer) FileAppendCommand(ctx context.Context, data wshrpc.FileData) error
- func (ws *WshServer) FileCopyCommand(ctx context.Context, data wshrpc.CommandFileCopyData) error
- func (ws *WshServer) FileCreateCommand(ctx context.Context, data wshrpc.FileData) error
- func (ws *WshServer) FileDeleteCommand(ctx context.Context, data wshrpc.CommandDeleteFileData) error
- func (ws *WshServer) FileInfoCommand(ctx context.Context, data wshrpc.FileData) (*wshrpc.FileInfo, error)
- func (ws *WshServer) FileJoinCommand(ctx context.Context, paths []string) (*wshrpc.FileInfo, error)
- func (ws *WshServer) FileListCommand(ctx context.Context, data wshrpc.FileListData) ([]*wshrpc.FileInfo, error)
- func (ws *WshServer) FileListStreamCommand(ctx context.Context, data wshrpc.FileListData) <-chan wshrpc.RespOrErrorUnion[wshrpc.CommandRemoteListEntriesRtnData]
- func (ws *WshServer) FileMkdirCommand(ctx context.Context, data wshrpc.FileData) error
- func (ws *WshServer) FileMoveCommand(ctx context.Context, data wshrpc.CommandFileCopyData) error
- func (ws *WshServer) FileReadCommand(ctx context.Context, data wshrpc.FileData) (*wshrpc.FileData, error)
- func (ws *WshServer) FileStreamCommand(ctx context.Context, data wshrpc.CommandFileStreamData) (*wshrpc.FileInfo, error)
- func (ws *WshServer) FileWriteCommand(ctx context.Context, data wshrpc.FileData) error
- func (ws *WshServer) FindGitBashCommand(ctx context.Context, rescan bool) (string, error)
- func (ws *WshServer) GetAllBadgesCommand(ctx context.Context) ([]baseds.BadgeEvent, error)
- func (ws *WshServer) GetAllVarsCommand(ctx context.Context, data wshrpc.CommandVarData) ([]wshrpc.CommandVarResponseData, error)
- func (ws *WshServer) GetFullConfigCommand(ctx context.Context) (wconfig.FullConfigType, error)
- func (ws *WshServer) GetJwtPublicKeyCommand(ctx context.Context) (string, error)
- func (ws *WshServer) GetMetaCommand(ctx context.Context, data wshrpc.CommandGetMetaData) (waveobj.MetaMapType, error)
- func (ws *WshServer) GetRTInfoCommand(ctx context.Context, data wshrpc.CommandGetRTInfoData) (*waveobj.ObjRTInfo, error)
- func (ws *WshServer) GetSecretsCommand(ctx context.Context, names []string) (map[string]string, error)
- func (ws *WshServer) GetSecretsLinuxStorageBackendCommand(ctx context.Context) (string, error)
- func (ws *WshServer) GetSecretsNamesCommand(ctx context.Context) ([]string, error)
- func (ws *WshServer) GetVarCommand(ctx context.Context, data wshrpc.CommandVarData) (*wshrpc.CommandVarResponseData, error)
- func (ws *WshServer) GitStatusCommand(ctx context.Context, data wshrpc.CommandGitStatusData) (*wshrpc.GitStatusResponse, error)
- func (ws *WshServer) JobCmdExitedCommand(ctx context.Context, data wshrpc.CommandJobCmdExitedData) error
- func (ws *WshServer) JobControllerAttachJobCommand(ctx context.Context, data wshrpc.CommandJobControllerAttachJobData) error
- func (ws *WshServer) JobControllerConnectedJobsCommand(ctx context.Context) ([]string, error)
- func (ws *WshServer) JobControllerDeleteJobCommand(ctx context.Context, jobId string) error
- func (ws *WshServer) JobControllerDetachJobCommand(ctx context.Context, jobId string) error
- func (ws *WshServer) JobControllerDisconnectJobCommand(ctx context.Context, jobId string) error
- func (ws *WshServer) JobControllerExitJobCommand(ctx context.Context, jobId string) error
- func (ws *WshServer) JobControllerListCommand(ctx context.Context) ([]*waveobj.Job, error)
- func (ws *WshServer) JobControllerReconnectJobCommand(ctx context.Context, jobId string) error
- func (ws *WshServer) JobControllerReconnectJobsForConnCommand(ctx context.Context, connName string) error
- func (ws *WshServer) JobControllerStartJobCommand(ctx context.Context, data wshrpc.CommandJobControllerStartJobData) (string, error)
- func (ws *WshServer) MacOSVersionCommand(ctx context.Context) (string, error)
- func (ws *WshServer) MessageCommand(ctx context.Context, data wshrpc.CommandMessageData) error
- func (ws *WshServer) NotifySystemResumeCommand(ctx context.Context) error
- func (ws *WshServer) PathCommand(ctx context.Context, data wshrpc.PathCommandData) (string, error)
- func (ws *WshServer) PortForwardListCommand(ctx context.Context, data wshrpc.CommandPortForwardListData) ([]wshrpc.PortForwardInfo, error)
- func (ws *WshServer) PortForwardStartCommand(ctx context.Context, data wshrpc.CommandPortForwardStartData) (*wshrpc.PortForwardInfo, error)
- func (ws *WshServer) PortForwardStopCommand(ctx context.Context, data wshrpc.CommandPortForwardStopData) error
- func (ws *WshServer) RecordTEventCommand(ctx context.Context, data telemetrydata.TEvent) error
- func (ws *WshServer) RemoteFileInfoCommand(ctx context.Context, path string) (*wshrpc.FileInfo, error)
- func (ws *WshServer) RemoteFileStreamCommand(ctx context.Context, data wshrpc.CommandRemoteFileStreamData) (*wshrpc.FileInfo, error)
- func (ws *WshServer) RemoteListEntriesCommand(ctx context.Context, data wshrpc.CommandRemoteListEntriesData) chan wshrpc.RespOrErrorUnion[wshrpc.CommandRemoteListEntriesRtnData]
- func (ws *WshServer) ResolveIdsCommand(ctx context.Context, data wshrpc.CommandResolveIdsData) (wshrpc.CommandResolveIdsRtnData, error)
- func (ws *WshServer) RunCompletionGenCommand(ctx context.Context, data wshrpc.CommandRunCompletionGenData) (wshrpc.CommandRunCompletionGenRtnData, error)
- func (ws *WshServer) SetConfigCommand(ctx context.Context, data wshrpc.MetaSettingsType) error
- func (ws *WshServer) SetConnectionsConfigCommand(ctx context.Context, data wshrpc.ConnConfigRequest) error
- func (ws *WshServer) SetMetaCommand(ctx context.Context, data wshrpc.CommandSetMetaData) error
- func (ws *WshServer) SetRTInfoCommand(ctx context.Context, data wshrpc.CommandSetRTInfoData) error
- func (ws *WshServer) SetSecretsCommand(ctx context.Context, secrets map[string]*string) error
- func (ws *WshServer) SetVarCommand(ctx context.Context, data wshrpc.CommandVarData) error
- func (ws *WshServer) StreamTestCommand(ctx context.Context) chan wshrpc.RespOrErrorUnion[int]
- func (ws *WshServer) TestCommand(ctx context.Context, data string) error
- func (ws *WshServer) TestMultiArgCommand(ctx context.Context, arg1 string, arg2 int, arg3 bool) (string, error)
- func (ws *WshServer) UpdateSavedPortServiceCommand(ctx context.Context, data wshrpc.CommandUpdateSavedPortServiceData) ([]wconfig.SavedPortService, error)
- func (ws *WshServer) UpdateTabNameCommand(ctx context.Context, tabId string, newName string) error
- func (ws *WshServer) UpdateWorkspaceTabIdsCommand(ctx context.Context, workspaceId string, tabIds []string) error
- func (ws *WshServer) WaitForRouteCommand(ctx context.Context, data wshrpc.CommandWaitForRouteData) (bool, error)
- func (ws *WshServer) WaveFileReadStreamCommand(ctx context.Context, data wshrpc.CommandWaveFileReadStreamData) (*wshrpc.WaveFileInfo, error)
- func (ws *WshServer) WaveInfoCommand(ctx context.Context) (*wshrpc.WaveInfoData, error)
- func (ws *WshServer) WorkspaceListCommand(ctx context.Context) ([]wshrpc.WorkspaceInfoData, error)
- func (ws *WshServer) WriteTempFileCommand(ctx context.Context, data wshrpc.CommandWriteTempFileData) (string, error)
- func (ws *WshServer) WshActivityCommand(ctx context.Context, data map[string]int) error
- func (*WshServer) WshServerImpl()
- func (ws *WshServer) WslDefaultDistroCommand(ctx context.Context) (string, error)
- func (ws *WshServer) WslListCommand(ctx context.Context) ([]string, error)
- func (ws *WshServer) WslStatusCommand(ctx context.Context) ([]wshrpc.ConnStatus, error)
Constants ¶
const ( SimpleId_This = "this" SimpleId_Block = "block" SimpleId_Tab = "tab" SimpleId_Ws = "ws" SimpleId_Workspace = "workspace" SimpleId_Client = "client" SimpleId_Global = "global" SimpleId_Temp = "temp" )
const ( DefaultOutputChSize = 32 DefaultInputChSize = 32 )
const GitStatusDefaultTimeoutMs = 5000
const GitStatusMaxTimeoutMs = 15000
Variables ¶
var InvalidWslDistroNames = []string{"docker-desktop", "docker-desktop-data"}
var WshServerImpl = WshServer{}
Functions ¶
func GetMainRpcClient ¶
returns the wavesrv main rpc client singleton
Types ¶
type WshServer ¶
type WshServer struct{}
func (*WshServer) ActivityCommand ¶
func (*WshServer) BlockInfoCommand ¶
func (*WshServer) BlockJobStatusCommand ¶
func (*WshServer) BlocksListCommand ¶
func (ws *WshServer) BlocksListCommand( ctx context.Context, req wshrpc.BlocksListRequest) ([]wshrpc.BlocksListEntry, error)
BlocksListCommand returns every block visible in the requested scope (current workspace by default).
func (*WshServer) CommandAiCancelCommand ¶ added in v1.2.0
func (*WshServer) CommandAiModelsCommand ¶ added in v1.2.0
func (ws *WshServer) CommandAiModelsCommand(ctx context.Context, data wshrpc.CommandAiModelsRequest) (wshrpc.CommandAiModels, error)
func (*WshServer) CommandAiPreviewCommand ¶ added in v1.2.0
func (ws *WshServer) CommandAiPreviewCommand(ctx context.Context, data wshrpc.CommandAiRequest) (wshrpc.CommandAiPreview, error)
func (*WshServer) CommandAiRunCommand ¶ added in v1.2.0
func (ws *WshServer) CommandAiRunCommand(ctx context.Context, data wshrpc.CommandAiRequest) (wshrpc.CommandAiResult, error)
CommandAiRunCommand reports engine problems in the result's status rather than as an error, so the frontend can show sign-in or setup guidance.
func (*WshServer) CommandAiStatusCommand ¶ added in v1.2.0
func (ws *WshServer) CommandAiStatusCommand(ctx context.Context, data wshrpc.CommandAiStatusRequest) (wshrpc.CommandAiStatus, error)
func (*WshServer) ConnConnectCommand ¶
func (*WshServer) ConnDisconnectCommand ¶
func (*WshServer) ConnEnsureCommand ¶
func (*WshServer) ConnListCommand ¶
func (*WshServer) ConnReinstallWshCommand ¶
func (*WshServer) ConnStatusCommand ¶
func (*WshServer) ControllerAppendOutputCommand ¶
func (*WshServer) ControllerDestroyCommand ¶
func (*WshServer) ControllerInputCommand ¶
func (*WshServer) ControllerResyncCommand ¶
func (*WshServer) CreateBlockCommand ¶
func (*WshServer) CreateSubBlockCommand ¶
func (*WshServer) DebugTermCommand ¶
func (ws *WshServer) DebugTermCommand(ctx context.Context, data wshrpc.CommandDebugTermData) (*wshrpc.CommandDebugTermRtnData, error)
func (*WshServer) DeleteBlockCommand ¶
func (*WshServer) DeleteSubBlockCommand ¶
func (*WshServer) DismissWshFailCommand ¶
*
- Dismisses the WshFail Command in runtime memory on the backend
func (*WshServer) DisposeSuggestionsCommand ¶
func (*WshServer) DurableJobCountCommand ¶ added in v0.5.0
func (*WshServer) EventPublishCommand ¶
func (*WshServer) EventReadHistoryCommand ¶
func (*WshServer) EventRecvCommand ¶
func (*WshServer) EventSubCommand ¶
func (*WshServer) EventUnsubCommand ¶
func (*WshServer) FetchSuggestionsCommand ¶
func (ws *WshServer) FetchSuggestionsCommand(ctx context.Context, data wshrpc.FetchSuggestionsData) (*wshrpc.FetchSuggestionsResponse, error)
func (*WshServer) FileAppendCommand ¶
func (*WshServer) FileCopyCommand ¶
func (*WshServer) FileCreateCommand ¶
func (*WshServer) FileDeleteCommand ¶
func (*WshServer) FileInfoCommand ¶
func (*WshServer) FileJoinCommand ¶
func (*WshServer) FileListCommand ¶
func (*WshServer) FileListStreamCommand ¶
func (ws *WshServer) FileListStreamCommand(ctx context.Context, data wshrpc.FileListData) <-chan wshrpc.RespOrErrorUnion[wshrpc.CommandRemoteListEntriesRtnData]
func (*WshServer) FileMkdirCommand ¶
func (*WshServer) FileMoveCommand ¶
func (*WshServer) FileReadCommand ¶
func (*WshServer) FileStreamCommand ¶
func (*WshServer) FileWriteCommand ¶
func (*WshServer) FindGitBashCommand ¶
func (*WshServer) GetAllBadgesCommand ¶
func (*WshServer) GetAllVarsCommand ¶
func (ws *WshServer) GetAllVarsCommand(ctx context.Context, data wshrpc.CommandVarData) ([]wshrpc.CommandVarResponseData, error)
func (*WshServer) GetFullConfigCommand ¶
func (*WshServer) GetJwtPublicKeyCommand ¶
func (*WshServer) GetMetaCommand ¶
func (ws *WshServer) GetMetaCommand(ctx context.Context, data wshrpc.CommandGetMetaData) (waveobj.MetaMapType, error)
func (*WshServer) GetRTInfoCommand ¶
func (*WshServer) GetSecretsCommand ¶
func (*WshServer) GetSecretsLinuxStorageBackendCommand ¶
func (*WshServer) GetSecretsNamesCommand ¶
func (*WshServer) GetVarCommand ¶
func (ws *WshServer) GetVarCommand(ctx context.Context, data wshrpc.CommandVarData) (*wshrpc.CommandVarResponseData, error)
func (*WshServer) GitStatusCommand ¶ added in v0.4.66
func (ws *WshServer) GitStatusCommand(ctx context.Context, data wshrpc.CommandGitStatusData) (*wshrpc.GitStatusResponse, error)
func (*WshServer) JobCmdExitedCommand ¶
func (*WshServer) JobControllerAttachJobCommand ¶
func (*WshServer) JobControllerConnectedJobsCommand ¶
func (*WshServer) JobControllerDeleteJobCommand ¶
func (*WshServer) JobControllerDetachJobCommand ¶
func (*WshServer) JobControllerDisconnectJobCommand ¶
func (*WshServer) JobControllerExitJobCommand ¶
func (*WshServer) JobControllerListCommand ¶
func (*WshServer) JobControllerReconnectJobCommand ¶
func (*WshServer) JobControllerReconnectJobsForConnCommand ¶
func (*WshServer) JobControllerStartJobCommand ¶
func (*WshServer) MacOSVersionCommand ¶
func (*WshServer) MessageCommand ¶
for testing
func (*WshServer) NotifySystemResumeCommand ¶
func (*WshServer) PathCommand ¶
func (*WshServer) PortForwardListCommand ¶ added in v1.0.0
func (ws *WshServer) PortForwardListCommand(ctx context.Context, data wshrpc.CommandPortForwardListData) ([]wshrpc.PortForwardInfo, error)
func (*WshServer) PortForwardStartCommand ¶ added in v1.0.0
func (ws *WshServer) PortForwardStartCommand(ctx context.Context, data wshrpc.CommandPortForwardStartData) (*wshrpc.PortForwardInfo, error)
func (*WshServer) PortForwardStopCommand ¶ added in v1.0.0
func (*WshServer) RecordTEventCommand ¶
func (*WshServer) RemoteFileInfoCommand ¶
func (*WshServer) RemoteFileStreamCommand ¶
func (*WshServer) RemoteListEntriesCommand ¶ added in v0.5.0
func (ws *WshServer) RemoteListEntriesCommand(ctx context.Context, data wshrpc.CommandRemoteListEntriesData) chan wshrpc.RespOrErrorUnion[wshrpc.CommandRemoteListEntriesRtnData]
remote hosts walk local (file://) folder uploads through the main server's default route
func (*WshServer) ResolveIdsCommand ¶
func (ws *WshServer) ResolveIdsCommand(ctx context.Context, data wshrpc.CommandResolveIdsData) (wshrpc.CommandResolveIdsRtnData, error)
func (*WshServer) RunCompletionGenCommand ¶
func (ws *WshServer) RunCompletionGenCommand(ctx context.Context, data wshrpc.CommandRunCompletionGenData) (wshrpc.CommandRunCompletionGenRtnData, error)
RunCompletionGenCommand runs a Fig completion generator (e.g. "git branch" for `git checkout <tab>`) and returns its raw output for the frontend to post-process. Generator commands come from curated, vendored (MIT) Fig specs - not arbitrary user input - and run without a shell, in the prompt's cwd, with a hard timeout.
func (*WshServer) SetConfigCommand ¶
func (*WshServer) SetConnectionsConfigCommand ¶
func (*WshServer) SetMetaCommand ¶
func (*WshServer) SetRTInfoCommand ¶
func (*WshServer) SetSecretsCommand ¶
func (*WshServer) SetVarCommand ¶
func (*WshServer) StreamTestCommand ¶
for testing
func (*WshServer) TestCommand ¶
func (*WshServer) TestMultiArgCommand ¶
func (*WshServer) UpdateSavedPortServiceCommand ¶ added in v1.6.0
func (ws *WshServer) UpdateSavedPortServiceCommand(ctx context.Context, data wshrpc.CommandUpdateSavedPortServiceData) ([]wconfig.SavedPortService, error)
func (*WshServer) UpdateTabNameCommand ¶
func (*WshServer) UpdateWorkspaceTabIdsCommand ¶
func (*WshServer) WaitForRouteCommand ¶
func (*WshServer) WaveFileReadStreamCommand ¶
func (ws *WshServer) WaveFileReadStreamCommand(ctx context.Context, data wshrpc.CommandWaveFileReadStreamData) (*wshrpc.WaveFileInfo, error)
func (*WshServer) WaveInfoCommand ¶
func (*WshServer) WorkspaceListCommand ¶
func (*WshServer) WriteTempFileCommand ¶
func (*WshServer) WshActivityCommand ¶
func (*WshServer) WshServerImpl ¶
func (*WshServer) WshServerImpl()