Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterGatewayServer(s grpc.ServiceRegistrar, srv GatewayServer)
- type AddDependencyRequest
- func (*AddDependencyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddDependencyRequest) GetPackageName() string
- func (x *AddDependencyRequest) GetService() string
- func (x *AddDependencyRequest) GetVersion() string
- func (*AddDependencyRequest) ProtoMessage()
- func (x *AddDependencyRequest) ProtoReflect() protoreflect.Message
- func (x *AddDependencyRequest) Reset()
- func (x *AddDependencyRequest) String() string
- type AddDependencyResponse
- func (*AddDependencyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AddDependencyResponse) GetError() string
- func (x *AddDependencyResponse) GetInstalledVersion() string
- func (x *AddDependencyResponse) GetSuccess() bool
- func (*AddDependencyResponse) ProtoMessage()
- func (x *AddDependencyResponse) ProtoReflect() protoreflect.Message
- func (x *AddDependencyResponse) Reset()
- func (x *AddDependencyResponse) String() string
- type ApplyEditRequest
- func (*ApplyEditRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ApplyEditRequest) GetDryRun() bool
- func (x *ApplyEditRequest) GetFile() string
- func (x *ApplyEditRequest) GetFind() string
- func (x *ApplyEditRequest) GetFixMode() v0.FixMode
- func (x *ApplyEditRequest) GetReplace() string
- func (x *ApplyEditRequest) GetService() string
- func (*ApplyEditRequest) ProtoMessage()
- func (x *ApplyEditRequest) ProtoReflect() protoreflect.Message
- func (x *ApplyEditRequest) Reset()
- func (x *ApplyEditRequest) String() string
- type ApplyEditResponse
- func (*ApplyEditResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ApplyEditResponse) GetAfterSha256() string
- func (x *ApplyEditResponse) GetBeforeSha256() string
- func (x *ApplyEditResponse) GetChanged() bool
- func (x *ApplyEditResponse) GetContent() string
- func (x *ApplyEditResponse) GetError() string
- func (x *ApplyEditResponse) GetFixActions() []string
- func (x *ApplyEditResponse) GetOutput() string
- func (x *ApplyEditResponse) GetStrategy() string
- func (x *ApplyEditResponse) GetSuccess() bool
- func (x *ApplyEditResponse) GetWrote() bool
- func (*ApplyEditResponse) ProtoMessage()
- func (x *ApplyEditResponse) ProtoReflect() protoreflect.Message
- func (x *ApplyEditResponse) Reset()
- func (x *ApplyEditResponse) String() string
- type AvailableCommand
- func (*AvailableCommand) Descriptor() ([]byte, []int)deprecated
- func (x *AvailableCommand) GetAliases() []string
- func (x *AvailableCommand) GetDescription() string
- func (x *AvailableCommand) GetDestructive() bool
- func (x *AvailableCommand) GetName() string
- func (x *AvailableCommand) GetPlugin() string
- func (x *AvailableCommand) GetTags() []string
- func (x *AvailableCommand) GetUsage() string
- func (*AvailableCommand) ProtoMessage()
- func (x *AvailableCommand) ProtoReflect() protoreflect.Message
- func (x *AvailableCommand) Reset()
- func (x *AvailableCommand) String() string
- type BatchApplyEditsRequest
- func (*BatchApplyEditsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BatchApplyEditsRequest) GetEdits() []*ApplyEditRequest
- func (*BatchApplyEditsRequest) ProtoMessage()
- func (x *BatchApplyEditsRequest) ProtoReflect() protoreflect.Message
- func (x *BatchApplyEditsRequest) Reset()
- func (x *BatchApplyEditsRequest) String() string
- type BatchApplyEditsResponse
- func (*BatchApplyEditsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BatchApplyEditsResponse) GetFailed() int32
- func (x *BatchApplyEditsResponse) GetResults() []*EditResult
- func (x *BatchApplyEditsResponse) GetSucceeded() int32
- func (*BatchApplyEditsResponse) ProtoMessage()
- func (x *BatchApplyEditsResponse) ProtoReflect() protoreflect.Message
- func (x *BatchApplyEditsResponse) Reset()
- func (x *BatchApplyEditsResponse) String() string
- type BuildError
- func (*BuildError) Descriptor() ([]byte, []int)deprecated
- func (x *BuildError) GetColumn() int32
- func (x *BuildError) GetFile() string
- func (x *BuildError) GetLine() int32
- func (x *BuildError) GetMessage() string
- func (x *BuildError) GetSeverity() string
- func (*BuildError) ProtoMessage()
- func (x *BuildError) ProtoReflect() protoreflect.Message
- func (x *BuildError) Reset()
- func (x *BuildError) String() string
- type BuildRequest
- type BuildResponse
- func (*BuildResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BuildResponse) GetErrors() []*BuildError
- func (x *BuildResponse) GetOutput() string
- func (x *BuildResponse) GetSuccess() bool
- func (*BuildResponse) ProtoMessage()
- func (x *BuildResponse) ProtoReflect() protoreflect.Message
- func (x *BuildResponse) Reset()
- func (x *BuildResponse) String() string
- type Check
- func (*Check) Descriptor() ([]byte, []int)deprecated
- func (x *Check) GetCheckType() isCheck_CheckType
- func (x *Check) GetCommand() *CommandCheck
- func (x *Check) GetHttp() *HttpCheck
- func (x *Check) GetName() string
- func (x *Check) GetPluginBuild() *PluginCheck
- func (x *Check) GetPluginLint() *PluginCheck
- func (x *Check) GetPluginTest() *PluginCheck
- func (*Check) ProtoMessage()
- func (x *Check) ProtoReflect() protoreflect.Message
- func (x *Check) Reset()
- func (x *Check) String() string
- type CheckResult
- func (*CheckResult) Descriptor() ([]byte, []int)deprecated
- func (x *CheckResult) GetError() string
- func (x *CheckResult) GetName() string
- func (x *CheckResult) GetOutput() string
- func (x *CheckResult) GetPassed() bool
- func (*CheckResult) ProtoMessage()
- func (x *CheckResult) ProtoReflect() protoreflect.Message
- func (x *CheckResult) Reset()
- func (x *CheckResult) String() string
- type Check_Command
- type Check_Http
- type Check_PluginBuild
- type Check_PluginLint
- type Check_PluginTest
- type CloseTerminalRequest
- func (*CloseTerminalRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CloseTerminalRequest) GetTerminalId() string
- func (*CloseTerminalRequest) ProtoMessage()
- func (x *CloseTerminalRequest) ProtoReflect() protoreflect.Message
- func (x *CloseTerminalRequest) Reset()
- func (x *CloseTerminalRequest) String() string
- type CloseTerminalResponse
- type CommandCheck
- func (*CommandCheck) Descriptor() ([]byte, []int)deprecated
- func (x *CommandCheck) GetExpectedExitCode() int32
- func (x *CommandCheck) GetOutputContains() string
- func (x *CommandCheck) GetRun() string
- func (*CommandCheck) ProtoMessage()
- func (x *CommandCheck) ProtoReflect() protoreflect.Message
- func (x *CommandCheck) Reset()
- func (x *CommandCheck) String() string
- type CreateFileRequest
- func (*CreateFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateFileRequest) GetContent() string
- func (x *CreateFileRequest) GetOverwrite() bool
- func (x *CreateFileRequest) GetPath() string
- func (x *CreateFileRequest) GetService() string
- func (*CreateFileRequest) ProtoMessage()
- func (x *CreateFileRequest) ProtoReflect() protoreflect.Message
- func (x *CreateFileRequest) Reset()
- func (x *CreateFileRequest) String() string
- type CreateFileResponse
- func (*CreateFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateFileResponse) GetError() string
- func (x *CreateFileResponse) GetSuccess() bool
- func (*CreateFileResponse) ProtoMessage()
- func (x *CreateFileResponse) ProtoReflect() protoreflect.Message
- func (x *CreateFileResponse) Reset()
- func (x *CreateFileResponse) String() string
- type DeleteFileRequest
- func (*DeleteFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteFileRequest) GetPath() string
- func (x *DeleteFileRequest) GetService() string
- func (*DeleteFileRequest) ProtoMessage()
- func (x *DeleteFileRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteFileRequest) Reset()
- func (x *DeleteFileRequest) String() string
- type DeleteFileResponse
- func (*DeleteFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteFileResponse) GetError() string
- func (x *DeleteFileResponse) GetSuccess() bool
- func (*DeleteFileResponse) ProtoMessage()
- func (x *DeleteFileResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteFileResponse) Reset()
- func (x *DeleteFileResponse) String() string
- type Dependency
- func (*Dependency) Descriptor() ([]byte, []int)deprecated
- func (x *Dependency) GetDirect() bool
- func (x *Dependency) GetName() string
- func (x *Dependency) GetVersion() string
- func (*Dependency) ProtoMessage()
- func (x *Dependency) ProtoReflect() protoreflect.Message
- func (x *Dependency) Reset()
- func (x *Dependency) String() string
- type EditResult
- func (*EditResult) Descriptor() ([]byte, []int)deprecated
- func (x *EditResult) GetError() string
- func (x *EditResult) GetFile() string
- func (x *EditResult) GetService() string
- func (x *EditResult) GetStrategy() string
- func (x *EditResult) GetSuccess() bool
- func (*EditResult) ProtoMessage()
- func (x *EditResult) ProtoReflect() protoreflect.Message
- func (x *EditResult) Reset()
- func (x *EditResult) String() string
- type FileInfo
- func (*FileInfo) Descriptor() ([]byte, []int)deprecated
- func (x *FileInfo) GetIsDirectory() bool
- func (x *FileInfo) GetPath() string
- func (x *FileInfo) GetSizeBytes() int64
- func (*FileInfo) ProtoMessage()
- func (x *FileInfo) ProtoReflect() protoreflect.Message
- func (x *FileInfo) Reset()
- func (x *FileInfo) String() string
- type FixRequest
- func (*FixRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FixRequest) GetDryRun() bool
- func (x *FixRequest) GetMode() v0.FixMode
- func (x *FixRequest) GetPath() string
- func (x *FixRequest) GetService() string
- func (*FixRequest) ProtoMessage()
- func (x *FixRequest) ProtoReflect() protoreflect.Message
- func (x *FixRequest) Reset()
- func (x *FixRequest) String() string
- type FixResponse
- func (*FixResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FixResponse) GetActions() []string
- func (x *FixResponse) GetAfterSha256() string
- func (x *FixResponse) GetBeforeSha256() string
- func (x *FixResponse) GetChanged() bool
- func (x *FixResponse) GetContent() string
- func (x *FixResponse) GetError() string
- func (x *FixResponse) GetOutput() string
- func (x *FixResponse) GetSuccess() bool
- func (x *FixResponse) GetWrote() bool
- func (*FixResponse) ProtoMessage()
- func (x *FixResponse) ProtoReflect() protoreflect.Message
- func (x *FixResponse) Reset()
- func (x *FixResponse) String() string
- type GatewayClient
- type GatewayServer
- type Gateway_AttachTerminalClient
- type Gateway_AttachTerminalServer
- type Gateway_SubscribeWorkspaceChangesClient
- type Gateway_SubscribeWorkspaceChangesServer
- type GetProjectInfoRequest
- func (*GetProjectInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetProjectInfoRequest) GetService() string
- func (*GetProjectInfoRequest) ProtoMessage()
- func (x *GetProjectInfoRequest) ProtoReflect() protoreflect.Message
- func (x *GetProjectInfoRequest) Reset()
- func (x *GetProjectInfoRequest) String() string
- type GetProjectInfoResponse
- func (*GetProjectInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetProjectInfoResponse) GetDependencies() []*Dependency
- func (x *GetProjectInfoResponse) GetError() string
- func (x *GetProjectInfoResponse) GetFileHashes() map[string]string
- func (x *GetProjectInfoResponse) GetLanguage() string
- func (x *GetProjectInfoResponse) GetLanguageVersion() string
- func (x *GetProjectInfoResponse) GetModule() string
- func (x *GetProjectInfoResponse) GetPackages() []*PackageInfo
- func (*GetProjectInfoResponse) ProtoMessage()
- func (x *GetProjectInfoResponse) ProtoReflect() protoreflect.Message
- func (x *GetProjectInfoResponse) Reset()
- func (x *GetProjectInfoResponse) String() string
- type GitCommitInfo
- func (*GitCommitInfo) Descriptor() ([]byte, []int)deprecated
- func (x *GitCommitInfo) GetAuthor() string
- func (x *GitCommitInfo) GetDate() string
- func (x *GitCommitInfo) GetHash() string
- func (x *GitCommitInfo) GetMessage() string
- func (x *GitCommitInfo) GetShortHash() string
- func (*GitCommitInfo) ProtoMessage()
- func (x *GitCommitInfo) ProtoReflect() protoreflect.Message
- func (x *GitCommitInfo) Reset()
- func (x *GitCommitInfo) String() string
- type GitCommitRequest
- func (*GitCommitRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GitCommitRequest) GetMessage() string
- func (x *GitCommitRequest) GetPaths() []string
- func (*GitCommitRequest) ProtoMessage()
- func (x *GitCommitRequest) ProtoReflect() protoreflect.Message
- func (x *GitCommitRequest) Reset()
- func (x *GitCommitRequest) String() string
- type GitCommitResponse
- func (*GitCommitResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GitCommitResponse) GetError() string
- func (x *GitCommitResponse) GetHash() string
- func (x *GitCommitResponse) GetSuccess() bool
- func (*GitCommitResponse) ProtoMessage()
- func (x *GitCommitResponse) ProtoReflect() protoreflect.Message
- func (x *GitCommitResponse) Reset()
- func (x *GitCommitResponse) String() string
- type GitDiffRequest
- func (*GitDiffRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GitDiffRequest) GetPath() string
- func (x *GitDiffRequest) GetService() string
- func (x *GitDiffRequest) GetStaged() bool
- func (*GitDiffRequest) ProtoMessage()
- func (x *GitDiffRequest) ProtoReflect() protoreflect.Message
- func (x *GitDiffRequest) Reset()
- func (x *GitDiffRequest) String() string
- type GitDiffResponse
- func (*GitDiffResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GitDiffResponse) GetDiff() string
- func (x *GitDiffResponse) GetError() string
- func (*GitDiffResponse) ProtoMessage()
- func (x *GitDiffResponse) ProtoReflect() protoreflect.Message
- func (x *GitDiffResponse) Reset()
- func (x *GitDiffResponse) String() string
- type GitFileStatus
- func (*GitFileStatus) Descriptor() ([]byte, []int)deprecated
- func (x *GitFileStatus) GetPath() string
- func (x *GitFileStatus) GetStaged() bool
- func (x *GitFileStatus) GetStatus() string
- func (*GitFileStatus) ProtoMessage()
- func (x *GitFileStatus) ProtoReflect() protoreflect.Message
- func (x *GitFileStatus) Reset()
- func (x *GitFileStatus) String() string
- type GitLogRequest
- func (*GitLogRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GitLogRequest) GetCount() int32
- func (x *GitLogRequest) GetService() string
- func (*GitLogRequest) ProtoMessage()
- func (x *GitLogRequest) ProtoReflect() protoreflect.Message
- func (x *GitLogRequest) Reset()
- func (x *GitLogRequest) String() string
- type GitLogResponse
- func (*GitLogResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GitLogResponse) GetCommits() []*GitCommitInfo
- func (x *GitLogResponse) GetError() string
- func (*GitLogResponse) ProtoMessage()
- func (x *GitLogResponse) ProtoReflect() protoreflect.Message
- func (x *GitLogResponse) Reset()
- func (x *GitLogResponse) String() string
- type GitStatusRequest
- type GitStatusResponse
- func (*GitStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GitStatusResponse) GetBranch() string
- func (x *GitStatusResponse) GetError() string
- func (x *GitStatusResponse) GetFiles() []*GitFileStatus
- func (*GitStatusResponse) ProtoMessage()
- func (x *GitStatusResponse) ProtoReflect() protoreflect.Message
- func (x *GitStatusResponse) Reset()
- func (x *GitStatusResponse) String() string
- type HttpCheck
- func (*HttpCheck) Descriptor() ([]byte, []int)deprecated
- func (x *HttpCheck) GetBody() string
- func (x *HttpCheck) GetBodyContains() string
- func (x *HttpCheck) GetExpectedStatus() int32
- func (x *HttpCheck) GetMethod() string
- func (x *HttpCheck) GetPath() string
- func (*HttpCheck) ProtoMessage()
- func (x *HttpCheck) ProtoReflect() protoreflect.Message
- func (x *HttpCheck) Reset()
- func (x *HttpCheck) String() string
- type LintRequest
- type LintResponse
- func (*LintResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LintResponse) GetErrors() []*BuildError
- func (x *LintResponse) GetOutput() string
- func (x *LintResponse) GetSuccess() bool
- func (*LintResponse) ProtoMessage()
- func (x *LintResponse) ProtoReflect() protoreflect.Message
- func (x *LintResponse) Reset()
- func (x *LintResponse) String() string
- type ListAllCommandsRequest
- type ListAllCommandsResponse
- func (*ListAllCommandsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListAllCommandsResponse) GetCommands() []*AvailableCommand
- func (*ListAllCommandsResponse) ProtoMessage()
- func (x *ListAllCommandsResponse) ProtoReflect() protoreflect.Message
- func (x *ListAllCommandsResponse) Reset()
- func (x *ListAllCommandsResponse) String() string
- type ListDependenciesRequest
- func (*ListDependenciesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListDependenciesRequest) GetService() string
- func (*ListDependenciesRequest) ProtoMessage()
- func (x *ListDependenciesRequest) ProtoReflect() protoreflect.Message
- func (x *ListDependenciesRequest) Reset()
- func (x *ListDependenciesRequest) String() string
- type ListDependenciesResponse
- func (*ListDependenciesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListDependenciesResponse) GetDependencies() []*Dependency
- func (x *ListDependenciesResponse) GetError() string
- func (*ListDependenciesResponse) ProtoMessage()
- func (x *ListDependenciesResponse) ProtoReflect() protoreflect.Message
- func (x *ListDependenciesResponse) Reset()
- func (x *ListDependenciesResponse) String() string
- type ListFilesRequest
- func (*ListFilesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListFilesRequest) GetExtensions() []string
- func (x *ListFilesRequest) GetPath() string
- func (x *ListFilesRequest) GetRecursive() bool
- func (x *ListFilesRequest) GetService() string
- func (*ListFilesRequest) ProtoMessage()
- func (x *ListFilesRequest) ProtoReflect() protoreflect.Message
- func (x *ListFilesRequest) Reset()
- func (x *ListFilesRequest) String() string
- type ListFilesResponse
- func (*ListFilesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListFilesResponse) GetFiles() []*FileInfo
- func (*ListFilesResponse) ProtoMessage()
- func (x *ListFilesResponse) ProtoReflect() protoreflect.Message
- func (x *ListFilesResponse) Reset()
- func (x *ListFilesResponse) String() string
- type ListServicesRequest
- type ListServicesResponse
- func (*ListServicesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListServicesResponse) GetServices() []*ServiceInfo
- func (*ListServicesResponse) ProtoMessage()
- func (x *ListServicesResponse) ProtoReflect() protoreflect.Message
- func (x *ListServicesResponse) Reset()
- func (x *ListServicesResponse) String() string
- type ListTerminalsRequest
- type ListTerminalsResponse
- func (*ListTerminalsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListTerminalsResponse) GetTerminals() []*TerminalInfo
- func (*ListTerminalsResponse) ProtoMessage()
- func (x *ListTerminalsResponse) ProtoReflect() protoreflect.Message
- func (x *ListTerminalsResponse) Reset()
- func (x *ListTerminalsResponse) String() string
- type MoveFileRequest
- func (*MoveFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MoveFileRequest) GetNewPath() string
- func (x *MoveFileRequest) GetOldPath() string
- func (x *MoveFileRequest) GetService() string
- func (x *MoveFileRequest) GetUpdateImports() bool
- func (*MoveFileRequest) ProtoMessage()
- func (x *MoveFileRequest) ProtoReflect() protoreflect.Message
- func (x *MoveFileRequest) Reset()
- func (x *MoveFileRequest) String() string
- type MoveFileResponse
- func (*MoveFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MoveFileResponse) GetError() string
- func (x *MoveFileResponse) GetSuccess() bool
- func (x *MoveFileResponse) GetUpdatedFiles() []string
- func (*MoveFileResponse) ProtoMessage()
- func (x *MoveFileResponse) ProtoReflect() protoreflect.Message
- func (x *MoveFileResponse) Reset()
- func (x *MoveFileResponse) String() string
- type OpenTerminalRequest
- func (*OpenTerminalRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OpenTerminalRequest) GetCols() uint32
- func (x *OpenTerminalRequest) GetRows() uint32
- func (x *OpenTerminalRequest) GetShell() string
- func (x *OpenTerminalRequest) GetWorkingDir() string
- func (*OpenTerminalRequest) ProtoMessage()
- func (x *OpenTerminalRequest) ProtoReflect() protoreflect.Message
- func (x *OpenTerminalRequest) Reset()
- func (x *OpenTerminalRequest) String() string
- type OpenTerminalResponse
- func (*OpenTerminalResponse) Descriptor() ([]byte, []int)deprecated
- func (x *OpenTerminalResponse) GetShell() string
- func (x *OpenTerminalResponse) GetTerminalId() string
- func (x *OpenTerminalResponse) GetWorkingDir() string
- func (*OpenTerminalResponse) ProtoMessage()
- func (x *OpenTerminalResponse) ProtoReflect() protoreflect.Message
- func (x *OpenTerminalResponse) Reset()
- func (x *OpenTerminalResponse) String() string
- type PackageInfo
- func (*PackageInfo) Descriptor() ([]byte, []int)deprecated
- func (x *PackageInfo) GetDoc() string
- func (x *PackageInfo) GetFiles() []string
- func (x *PackageInfo) GetImports() []string
- func (x *PackageInfo) GetName() string
- func (x *PackageInfo) GetRelativePath() string
- func (*PackageInfo) ProtoMessage()
- func (x *PackageInfo) ProtoReflect() protoreflect.Message
- func (x *PackageInfo) Reset()
- func (x *PackageInfo) String() string
- type PluginCheck
- type ReadFileRequest
- func (*ReadFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReadFileRequest) GetPath() string
- func (x *ReadFileRequest) GetService() string
- func (*ReadFileRequest) ProtoMessage()
- func (x *ReadFileRequest) ProtoReflect() protoreflect.Message
- func (x *ReadFileRequest) Reset()
- func (x *ReadFileRequest) String() string
- type ReadFileResponse
- func (*ReadFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReadFileResponse) GetContent() string
- func (x *ReadFileResponse) GetExists() bool
- func (*ReadFileResponse) ProtoMessage()
- func (x *ReadFileResponse) ProtoReflect() protoreflect.Message
- func (x *ReadFileResponse) Reset()
- func (x *ReadFileResponse) String() string
- type RemoveDependencyRequest
- func (*RemoveDependencyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveDependencyRequest) GetPackageName() string
- func (x *RemoveDependencyRequest) GetService() string
- func (*RemoveDependencyRequest) ProtoMessage()
- func (x *RemoveDependencyRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveDependencyRequest) Reset()
- func (x *RemoveDependencyRequest) String() string
- type RemoveDependencyResponse
- func (*RemoveDependencyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveDependencyResponse) GetError() string
- func (x *RemoveDependencyResponse) GetSuccess() bool
- func (*RemoveDependencyResponse) ProtoMessage()
- func (x *RemoveDependencyResponse) ProtoReflect() protoreflect.Message
- func (x *RemoveDependencyResponse) Reset()
- func (x *RemoveDependencyResponse) String() string
- type ResizeTerminalRequest
- func (*ResizeTerminalRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ResizeTerminalRequest) GetCols() uint32
- func (x *ResizeTerminalRequest) GetRows() uint32
- func (x *ResizeTerminalRequest) GetTerminalId() string
- func (*ResizeTerminalRequest) ProtoMessage()
- func (x *ResizeTerminalRequest) ProtoReflect() protoreflect.Message
- func (x *ResizeTerminalRequest) Reset()
- func (x *ResizeTerminalRequest) String() string
- type ResizeTerminalResponse
- type RunChecksRequest
- func (*RunChecksRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RunChecksRequest) GetChecks() []*Check
- func (x *RunChecksRequest) GetService() string
- func (*RunChecksRequest) ProtoMessage()
- func (x *RunChecksRequest) ProtoReflect() protoreflect.Message
- func (x *RunChecksRequest) Reset()
- func (x *RunChecksRequest) String() string
- type RunChecksResponse
- func (*RunChecksResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RunChecksResponse) GetResults() []*CheckResult
- func (*RunChecksResponse) ProtoMessage()
- func (x *RunChecksResponse) ProtoReflect() protoreflect.Message
- func (x *RunChecksResponse) Reset()
- func (x *RunChecksResponse) String() string
- type RunCommandRequest
- func (*RunCommandRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RunCommandRequest) GetArgs() []string
- func (x *RunCommandRequest) GetCommand() string
- func (x *RunCommandRequest) GetService() string
- func (x *RunCommandRequest) GetStdin() []byte
- func (x *RunCommandRequest) GetTimeoutSeconds() int32
- func (x *RunCommandRequest) GetWorkingDir() string
- func (*RunCommandRequest) ProtoMessage()
- func (x *RunCommandRequest) ProtoReflect() protoreflect.Message
- func (x *RunCommandRequest) Reset()
- func (x *RunCommandRequest) String() string
- type RunCommandResponse
- func (*RunCommandResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RunCommandResponse) GetExitCode() int32
- func (x *RunCommandResponse) GetStderr() string
- func (x *RunCommandResponse) GetStdout() string
- func (*RunCommandResponse) ProtoMessage()
- func (x *RunCommandResponse) ProtoReflect() protoreflect.Message
- func (x *RunCommandResponse) Reset()
- func (x *RunCommandResponse) String() string
- type SearchMatch
- func (*SearchMatch) Descriptor() ([]byte, []int)deprecated
- func (x *SearchMatch) GetContextAfter() []string
- func (x *SearchMatch) GetContextBefore() []string
- func (x *SearchMatch) GetFile() string
- func (x *SearchMatch) GetLine() int32
- func (x *SearchMatch) GetText() string
- func (*SearchMatch) ProtoMessage()
- func (x *SearchMatch) ProtoReflect() protoreflect.Message
- func (x *SearchMatch) Reset()
- func (x *SearchMatch) String() string
- type SearchRequest
- func (*SearchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchRequest) GetCaseInsensitive() bool
- func (x *SearchRequest) GetContextLines() int32
- func (x *SearchRequest) GetExclude() []string
- func (x *SearchRequest) GetExtensions() []string
- func (x *SearchRequest) GetLiteral() bool
- func (x *SearchRequest) GetMaxResults() int32
- func (x *SearchRequest) GetPath() string
- func (x *SearchRequest) GetPattern() string
- func (x *SearchRequest) GetService() string
- func (*SearchRequest) ProtoMessage()
- func (x *SearchRequest) ProtoReflect() protoreflect.Message
- func (x *SearchRequest) Reset()
- func (x *SearchRequest) String() string
- type SearchResponse
- func (*SearchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchResponse) GetMatches() []*SearchMatch
- func (x *SearchResponse) GetTotalMatches() int32
- func (x *SearchResponse) GetTruncated() bool
- func (*SearchResponse) ProtoMessage()
- func (x *SearchResponse) ProtoReflect() protoreflect.Message
- func (x *SearchResponse) Reset()
- func (x *SearchResponse) String() string
- type ServiceInfo
- func (*ServiceInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceInfo) GetLanguage() string
- func (x *ServiceInfo) GetName() string
- func (x *ServiceInfo) GetPort() int32
- func (x *ServiceInfo) GetType() string
- func (*ServiceInfo) ProtoMessage()
- func (x *ServiceInfo) ProtoReflect() protoreflect.Message
- func (x *ServiceInfo) Reset()
- func (x *ServiceInfo) String() string
- type SubscribeWorkspaceChangesRequest
- func (*SubscribeWorkspaceChangesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubscribeWorkspaceChangesRequest) GetAfter() *WorkspaceChangeCursor
- func (x *SubscribeWorkspaceChangesRequest) GetService() string
- func (*SubscribeWorkspaceChangesRequest) ProtoMessage()
- func (x *SubscribeWorkspaceChangesRequest) ProtoReflect() protoreflect.Message
- func (x *SubscribeWorkspaceChangesRequest) Reset()
- func (x *SubscribeWorkspaceChangesRequest) String() string
- type TerminalInfo
- func (*TerminalInfo) Descriptor() ([]byte, []int)deprecated
- func (x *TerminalInfo) GetShell() string
- func (x *TerminalInfo) GetStatus() string
- func (x *TerminalInfo) GetTerminalId() string
- func (x *TerminalInfo) GetWorkingDir() string
- func (*TerminalInfo) ProtoMessage()
- func (x *TerminalInfo) ProtoReflect() protoreflect.Message
- func (x *TerminalInfo) Reset()
- func (x *TerminalInfo) String() string
- type TerminalInput
- func (*TerminalInput) Descriptor() ([]byte, []int)deprecated
- func (x *TerminalInput) GetData() []byte
- func (x *TerminalInput) GetTerminalId() string
- func (*TerminalInput) ProtoMessage()
- func (x *TerminalInput) ProtoReflect() protoreflect.Message
- func (x *TerminalInput) Reset()
- func (x *TerminalInput) String() string
- type TerminalOutput
- func (*TerminalOutput) Descriptor() ([]byte, []int)deprecated
- func (x *TerminalOutput) GetData() []byte
- func (x *TerminalOutput) GetDone() bool
- func (x *TerminalOutput) GetExitCode() int32
- func (x *TerminalOutput) GetTerminalId() string
- func (*TerminalOutput) ProtoMessage()
- func (x *TerminalOutput) ProtoReflect() protoreflect.Message
- func (x *TerminalOutput) Reset()
- func (x *TerminalOutput) String() string
- type TestRequest
- type TestResponse
- func (*TestResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TestResponse) GetCoveragePct() float32
- func (x *TestResponse) GetFailures() []string
- func (x *TestResponse) GetOutput() string
- func (x *TestResponse) GetSuccess() bool
- func (x *TestResponse) GetTestsFailed() int32
- func (x *TestResponse) GetTestsPassed() int32
- func (x *TestResponse) GetTestsRun() int32
- func (x *TestResponse) GetTestsSkipped() int32
- func (*TestResponse) ProtoMessage()
- func (x *TestResponse) ProtoReflect() protoreflect.Message
- func (x *TestResponse) Reset()
- func (x *TestResponse) String() string
- type UnimplementedGatewayServer
- func (UnimplementedGatewayServer) AddDependency(context.Context, *AddDependencyRequest) (*AddDependencyResponse, error)
- func (UnimplementedGatewayServer) ApplyEdit(context.Context, *ApplyEditRequest) (*ApplyEditResponse, error)
- func (UnimplementedGatewayServer) AttachTerminal(grpc.BidiStreamingServer[TerminalInput, TerminalOutput]) error
- func (UnimplementedGatewayServer) BatchApplyEdits(context.Context, *BatchApplyEditsRequest) (*BatchApplyEditsResponse, error)
- func (UnimplementedGatewayServer) Build(context.Context, *BuildRequest) (*BuildResponse, error)
- func (UnimplementedGatewayServer) CloseTerminal(context.Context, *CloseTerminalRequest) (*CloseTerminalResponse, error)
- func (UnimplementedGatewayServer) CreateFile(context.Context, *CreateFileRequest) (*CreateFileResponse, error)
- func (UnimplementedGatewayServer) DeleteFile(context.Context, *DeleteFileRequest) (*DeleteFileResponse, error)
- func (UnimplementedGatewayServer) Fix(context.Context, *FixRequest) (*FixResponse, error)
- func (UnimplementedGatewayServer) GetProjectInfo(context.Context, *GetProjectInfoRequest) (*GetProjectInfoResponse, error)
- func (UnimplementedGatewayServer) GitCommit(context.Context, *GitCommitRequest) (*GitCommitResponse, error)
- func (UnimplementedGatewayServer) GitDiff(context.Context, *GitDiffRequest) (*GitDiffResponse, error)
- func (UnimplementedGatewayServer) GitLog(context.Context, *GitLogRequest) (*GitLogResponse, error)
- func (UnimplementedGatewayServer) GitStatus(context.Context, *GitStatusRequest) (*GitStatusResponse, error)
- func (UnimplementedGatewayServer) Lint(context.Context, *LintRequest) (*LintResponse, error)
- func (UnimplementedGatewayServer) ListAllCommands(context.Context, *ListAllCommandsRequest) (*ListAllCommandsResponse, error)
- func (UnimplementedGatewayServer) ListDependencies(context.Context, *ListDependenciesRequest) (*ListDependenciesResponse, error)
- func (UnimplementedGatewayServer) ListFiles(context.Context, *ListFilesRequest) (*ListFilesResponse, error)
- func (UnimplementedGatewayServer) ListServices(context.Context, *ListServicesRequest) (*ListServicesResponse, error)
- func (UnimplementedGatewayServer) ListTerminals(context.Context, *ListTerminalsRequest) (*ListTerminalsResponse, error)
- func (UnimplementedGatewayServer) MoveFile(context.Context, *MoveFileRequest) (*MoveFileResponse, error)
- func (UnimplementedGatewayServer) OpenTerminal(context.Context, *OpenTerminalRequest) (*OpenTerminalResponse, error)
- func (UnimplementedGatewayServer) ReadFile(context.Context, *ReadFileRequest) (*ReadFileResponse, error)
- func (UnimplementedGatewayServer) RemoveDependency(context.Context, *RemoveDependencyRequest) (*RemoveDependencyResponse, error)
- func (UnimplementedGatewayServer) ResizeTerminal(context.Context, *ResizeTerminalRequest) (*ResizeTerminalResponse, error)
- func (UnimplementedGatewayServer) RunChecks(context.Context, *RunChecksRequest) (*RunChecksResponse, error)
- func (UnimplementedGatewayServer) RunCommand(context.Context, *RunCommandRequest) (*RunCommandResponse, error)
- func (UnimplementedGatewayServer) Search(context.Context, *SearchRequest) (*SearchResponse, error)
- func (UnimplementedGatewayServer) SubscribeWorkspaceChanges(*SubscribeWorkspaceChangesRequest, ...) error
- func (UnimplementedGatewayServer) Test(context.Context, *TestRequest) (*TestResponse, error)
- func (UnimplementedGatewayServer) WriteFile(context.Context, *WriteFileRequest) (*WriteFileResponse, error)
- type UnsafeGatewayServer
- type WorkspaceChange
- func (*WorkspaceChange) Descriptor() ([]byte, []int)deprecated
- func (x *WorkspaceChange) GetOperation() WorkspaceChangeOperation
- func (x *WorkspaceChange) GetPath() string
- func (x *WorkspaceChange) GetPreviousPath() string
- func (x *WorkspaceChange) GetReason() string
- func (*WorkspaceChange) ProtoMessage()
- func (x *WorkspaceChange) ProtoReflect() protoreflect.Message
- func (x *WorkspaceChange) Reset()
- func (x *WorkspaceChange) String() string
- type WorkspaceChangeCursor
- func (*WorkspaceChangeCursor) Descriptor() ([]byte, []int)deprecated
- func (x *WorkspaceChangeCursor) GetSequence() uint64
- func (x *WorkspaceChangeCursor) GetSourceId() string
- func (*WorkspaceChangeCursor) ProtoMessage()
- func (x *WorkspaceChangeCursor) ProtoReflect() protoreflect.Message
- func (x *WorkspaceChangeCursor) Reset()
- func (x *WorkspaceChangeCursor) String() string
- type WorkspaceChangeEvent
- func (*WorkspaceChangeEvent) Descriptor() ([]byte, []int)deprecated
- func (x *WorkspaceChangeEvent) GetChanges() []*WorkspaceChange
- func (x *WorkspaceChangeEvent) GetObservedAt() *timestamppb.Timestamp
- func (x *WorkspaceChangeEvent) GetSequence() uint64
- func (x *WorkspaceChangeEvent) GetSourceId() string
- func (*WorkspaceChangeEvent) ProtoMessage()
- func (x *WorkspaceChangeEvent) ProtoReflect() protoreflect.Message
- func (x *WorkspaceChangeEvent) Reset()
- func (x *WorkspaceChangeEvent) String() string
- type WorkspaceChangeOperation
- func (WorkspaceChangeOperation) Descriptor() protoreflect.EnumDescriptor
- func (x WorkspaceChangeOperation) Enum() *WorkspaceChangeOperation
- func (WorkspaceChangeOperation) EnumDescriptor() ([]byte, []int)deprecated
- func (x WorkspaceChangeOperation) Number() protoreflect.EnumNumber
- func (x WorkspaceChangeOperation) String() string
- func (WorkspaceChangeOperation) Type() protoreflect.EnumType
- type WriteFileRequest
- func (*WriteFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WriteFileRequest) GetContent() string
- func (x *WriteFileRequest) GetPath() string
- func (x *WriteFileRequest) GetService() string
- func (*WriteFileRequest) ProtoMessage()
- func (x *WriteFileRequest) ProtoReflect() protoreflect.Message
- func (x *WriteFileRequest) Reset()
- func (x *WriteFileRequest) String() string
- type WriteFileResponse
- func (*WriteFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WriteFileResponse) GetError() string
- func (x *WriteFileResponse) GetSuccess() bool
- func (*WriteFileResponse) ProtoMessage()
- func (x *WriteFileResponse) ProtoReflect() protoreflect.Message
- func (x *WriteFileResponse) Reset()
- func (x *WriteFileResponse) String() string
Constants ¶
const ( Gateway_ListServices_FullMethodName = "/mind.gateway.v1.Gateway/ListServices" Gateway_ReadFile_FullMethodName = "/mind.gateway.v1.Gateway/ReadFile" Gateway_WriteFile_FullMethodName = "/mind.gateway.v1.Gateway/WriteFile" Gateway_ListFiles_FullMethodName = "/mind.gateway.v1.Gateway/ListFiles" Gateway_SubscribeWorkspaceChanges_FullMethodName = "/mind.gateway.v1.Gateway/SubscribeWorkspaceChanges" Gateway_DeleteFile_FullMethodName = "/mind.gateway.v1.Gateway/DeleteFile" Gateway_MoveFile_FullMethodName = "/mind.gateway.v1.Gateway/MoveFile" Gateway_CreateFile_FullMethodName = "/mind.gateway.v1.Gateway/CreateFile" Gateway_Fix_FullMethodName = "/mind.gateway.v1.Gateway/Fix" Gateway_ApplyEdit_FullMethodName = "/mind.gateway.v1.Gateway/ApplyEdit" Gateway_BatchApplyEdits_FullMethodName = "/mind.gateway.v1.Gateway/BatchApplyEdits" Gateway_Search_FullMethodName = "/mind.gateway.v1.Gateway/Search" Gateway_Build_FullMethodName = "/mind.gateway.v1.Gateway/Build" Gateway_Lint_FullMethodName = "/mind.gateway.v1.Gateway/Lint" Gateway_Test_FullMethodName = "/mind.gateway.v1.Gateway/Test" Gateway_RunCommand_FullMethodName = "/mind.gateway.v1.Gateway/RunCommand" Gateway_ListAllCommands_FullMethodName = "/mind.gateway.v1.Gateway/ListAllCommands" Gateway_RunChecks_FullMethodName = "/mind.gateway.v1.Gateway/RunChecks" Gateway_GitStatus_FullMethodName = "/mind.gateway.v1.Gateway/GitStatus" Gateway_GitDiff_FullMethodName = "/mind.gateway.v1.Gateway/GitDiff" Gateway_GitLog_FullMethodName = "/mind.gateway.v1.Gateway/GitLog" Gateway_GitCommit_FullMethodName = "/mind.gateway.v1.Gateway/GitCommit" Gateway_ListDependencies_FullMethodName = "/mind.gateway.v1.Gateway/ListDependencies" Gateway_AddDependency_FullMethodName = "/mind.gateway.v1.Gateway/AddDependency" Gateway_RemoveDependency_FullMethodName = "/mind.gateway.v1.Gateway/RemoveDependency" Gateway_GetProjectInfo_FullMethodName = "/mind.gateway.v1.Gateway/GetProjectInfo" Gateway_OpenTerminal_FullMethodName = "/mind.gateway.v1.Gateway/OpenTerminal" Gateway_AttachTerminal_FullMethodName = "/mind.gateway.v1.Gateway/AttachTerminal" Gateway_ResizeTerminal_FullMethodName = "/mind.gateway.v1.Gateway/ResizeTerminal" Gateway_CloseTerminal_FullMethodName = "/mind.gateway.v1.Gateway/CloseTerminal" Gateway_ListTerminals_FullMethodName = "/mind.gateway.v1.Gateway/ListTerminals" )
Variables ¶
var ( WorkspaceChangeOperation_name = map[int32]string{ 0: "WORKSPACE_CHANGE_OPERATION_UNSPECIFIED", 1: "WORKSPACE_CHANGE_OPERATION_CREATE", 2: "WORKSPACE_CHANGE_OPERATION_WRITE", 3: "WORKSPACE_CHANGE_OPERATION_REMOVE", 4: "WORKSPACE_CHANGE_OPERATION_METADATA", 5: "WORKSPACE_CHANGE_OPERATION_RESCAN", } WorkspaceChangeOperation_value = map[string]int32{ "WORKSPACE_CHANGE_OPERATION_UNSPECIFIED": 0, "WORKSPACE_CHANGE_OPERATION_CREATE": 1, "WORKSPACE_CHANGE_OPERATION_WRITE": 2, "WORKSPACE_CHANGE_OPERATION_REMOVE": 3, "WORKSPACE_CHANGE_OPERATION_METADATA": 4, "WORKSPACE_CHANGE_OPERATION_RESCAN": 5, } )
Enum value maps for WorkspaceChangeOperation.
var File_mind_gateway_v1_gateway_proto protoreflect.FileDescriptor
var Gateway_ServiceDesc = grpc.ServiceDesc{ ServiceName: "mind.gateway.v1.Gateway", HandlerType: (*GatewayServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListServices", Handler: _Gateway_ListServices_Handler, }, { MethodName: "ReadFile", Handler: _Gateway_ReadFile_Handler, }, { MethodName: "WriteFile", Handler: _Gateway_WriteFile_Handler, }, { MethodName: "ListFiles", Handler: _Gateway_ListFiles_Handler, }, { MethodName: "DeleteFile", Handler: _Gateway_DeleteFile_Handler, }, { MethodName: "MoveFile", Handler: _Gateway_MoveFile_Handler, }, { MethodName: "CreateFile", Handler: _Gateway_CreateFile_Handler, }, { MethodName: "Fix", Handler: _Gateway_Fix_Handler, }, { MethodName: "ApplyEdit", Handler: _Gateway_ApplyEdit_Handler, }, { MethodName: "BatchApplyEdits", Handler: _Gateway_BatchApplyEdits_Handler, }, { MethodName: "Search", Handler: _Gateway_Search_Handler, }, { MethodName: "Build", Handler: _Gateway_Build_Handler, }, { MethodName: "Lint", Handler: _Gateway_Lint_Handler, }, { MethodName: "Test", Handler: _Gateway_Test_Handler, }, { MethodName: "RunCommand", Handler: _Gateway_RunCommand_Handler, }, { MethodName: "ListAllCommands", Handler: _Gateway_ListAllCommands_Handler, }, { MethodName: "RunChecks", Handler: _Gateway_RunChecks_Handler, }, { MethodName: "GitStatus", Handler: _Gateway_GitStatus_Handler, }, { MethodName: "GitDiff", Handler: _Gateway_GitDiff_Handler, }, { MethodName: "GitLog", Handler: _Gateway_GitLog_Handler, }, { MethodName: "GitCommit", Handler: _Gateway_GitCommit_Handler, }, { MethodName: "ListDependencies", Handler: _Gateway_ListDependencies_Handler, }, { MethodName: "AddDependency", Handler: _Gateway_AddDependency_Handler, }, { MethodName: "RemoveDependency", Handler: _Gateway_RemoveDependency_Handler, }, { MethodName: "GetProjectInfo", Handler: _Gateway_GetProjectInfo_Handler, }, { MethodName: "OpenTerminal", Handler: _Gateway_OpenTerminal_Handler, }, { MethodName: "ResizeTerminal", Handler: _Gateway_ResizeTerminal_Handler, }, { MethodName: "CloseTerminal", Handler: _Gateway_CloseTerminal_Handler, }, { MethodName: "ListTerminals", Handler: _Gateway_ListTerminals_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "SubscribeWorkspaceChanges", Handler: _Gateway_SubscribeWorkspaceChanges_Handler, ServerStreams: true, }, { StreamName: "AttachTerminal", Handler: _Gateway_AttachTerminal_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "mind/gateway/v1/gateway.proto", }
Gateway_ServiceDesc is the grpc.ServiceDesc for Gateway service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterGatewayServer ¶
func RegisterGatewayServer(s grpc.ServiceRegistrar, srv GatewayServer)
Types ¶
type AddDependencyRequest ¶
type AddDependencyRequest struct {
// service is the Codefly service name, optionally scoped by module in callers.
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
// package_name is the package or dependency identifier used by the native manager.
PackageName string `protobuf:"bytes,2,opt,name=package_name,json=packageName,proto3" json:"package_name,omitempty"`
// version is the semantic or service-specific version for this resource.
Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
// contains filtered or unexported fields
}
AddDependencyRequest identifies a package to install through the native package manager.
func (*AddDependencyRequest) Descriptor
deprecated
func (*AddDependencyRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddDependencyRequest.ProtoReflect.Descriptor instead.
func (*AddDependencyRequest) GetPackageName ¶
func (x *AddDependencyRequest) GetPackageName() string
func (*AddDependencyRequest) GetService ¶
func (x *AddDependencyRequest) GetService() string
func (*AddDependencyRequest) GetVersion ¶
func (x *AddDependencyRequest) GetVersion() string
func (*AddDependencyRequest) ProtoMessage ¶
func (*AddDependencyRequest) ProtoMessage()
func (*AddDependencyRequest) ProtoReflect ¶
func (x *AddDependencyRequest) ProtoReflect() protoreflect.Message
func (*AddDependencyRequest) Reset ¶
func (x *AddDependencyRequest) Reset()
func (*AddDependencyRequest) String ¶
func (x *AddDependencyRequest) String() string
type AddDependencyResponse ¶
type AddDependencyResponse struct {
// success is true when the requested operation completed successfully.
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
// error explains why the operation failed; empty means success at this layer.
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
// installed_version is the version resolved by the package manager.
InstalledVersion string `protobuf:"bytes,3,opt,name=installed_version,json=installedVersion,proto3" json:"installed_version,omitempty"`
// contains filtered or unexported fields
}
AddDependencyResponse reports the dependency version resolved by the package manager.
func (*AddDependencyResponse) Descriptor
deprecated
func (*AddDependencyResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddDependencyResponse.ProtoReflect.Descriptor instead.
func (*AddDependencyResponse) GetError ¶
func (x *AddDependencyResponse) GetError() string
func (*AddDependencyResponse) GetInstalledVersion ¶
func (x *AddDependencyResponse) GetInstalledVersion() string
func (*AddDependencyResponse) GetSuccess ¶
func (x *AddDependencyResponse) GetSuccess() bool
func (*AddDependencyResponse) ProtoMessage ¶
func (*AddDependencyResponse) ProtoMessage()
func (*AddDependencyResponse) ProtoReflect ¶
func (x *AddDependencyResponse) ProtoReflect() protoreflect.Message
func (*AddDependencyResponse) Reset ¶
func (x *AddDependencyResponse) Reset()
func (*AddDependencyResponse) String ¶
func (x *AddDependencyResponse) String() string
type ApplyEditRequest ¶
type ApplyEditRequest struct {
// service is the Codefly service name, optionally scoped by module in callers.
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
// file is a workspace- or service-relative source file path.
File string `protobuf:"bytes,2,opt,name=file,proto3" json:"file,omitempty"` // relative to service root
// find is the text or pattern to locate before applying an edit.
Find string `protobuf:"bytes,3,opt,name=find,proto3" json:"find,omitempty"` // text to find (smart matching at plugin level)
// replace is the replacement text used by an edit operation.
Replace string `protobuf:"bytes,4,opt,name=replace,proto3" json:"replace,omitempty"` // replacement text
// fix_mode controls language-aware rewriting after the edit. SAFE is the default.
FixMode v0.FixMode `protobuf:"varint,5,opt,name=fix_mode,json=fixMode,proto3,enum=codefly.base.v0.FixMode" json:"fix_mode,omitempty"`
// dry_run returns the edited and fixed content without writing the file.
DryRun bool `protobuf:"varint,6,opt,name=dry_run,json=dryRun,proto3" json:"dry_run,omitempty"`
// contains filtered or unexported fields
}
ApplyEditRequest asks the gateway to apply a smart find/replace edit.
func (*ApplyEditRequest) Descriptor
deprecated
func (*ApplyEditRequest) Descriptor() ([]byte, []int)
Deprecated: Use ApplyEditRequest.ProtoReflect.Descriptor instead.
func (*ApplyEditRequest) GetDryRun ¶ added in v0.2.24
func (x *ApplyEditRequest) GetDryRun() bool
func (*ApplyEditRequest) GetFile ¶
func (x *ApplyEditRequest) GetFile() string
func (*ApplyEditRequest) GetFind ¶
func (x *ApplyEditRequest) GetFind() string
func (*ApplyEditRequest) GetFixMode ¶ added in v0.2.24
func (x *ApplyEditRequest) GetFixMode() v0.FixMode
func (*ApplyEditRequest) GetReplace ¶
func (x *ApplyEditRequest) GetReplace() string
func (*ApplyEditRequest) GetService ¶
func (x *ApplyEditRequest) GetService() string
func (*ApplyEditRequest) ProtoMessage ¶
func (*ApplyEditRequest) ProtoMessage()
func (*ApplyEditRequest) ProtoReflect ¶
func (x *ApplyEditRequest) ProtoReflect() protoreflect.Message
func (*ApplyEditRequest) Reset ¶
func (x *ApplyEditRequest) Reset()
func (*ApplyEditRequest) String ¶
func (x *ApplyEditRequest) String() string
type ApplyEditResponse ¶
type ApplyEditResponse struct {
// success is true when the requested operation completed successfully.
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
// content is the file content after the edit and optional fixers.
Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // file content after edit + fix
// error explains why the operation failed; empty means success at this layer.
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` // why the edit failed
// strategy names the edit or execution strategy that produced the result.
Strategy string `protobuf:"bytes,4,opt,name=strategy,proto3" json:"strategy,omitempty"` // which matching strategy
// fix_actions names formatters or import fixers that ran after the edit.
FixActions []string `protobuf:"bytes,5,rep,name=fix_actions,json=fixActions,proto3" json:"fix_actions,omitempty"` // fixers that ran
// changed reports whether the returned content differs from the original file.
Changed bool `protobuf:"varint,6,opt,name=changed,proto3" json:"changed,omitempty"`
// before_sha256 is the lowercase SHA-256 digest of the original content.
BeforeSha256 string `protobuf:"bytes,7,opt,name=before_sha256,json=beforeSha256,proto3" json:"before_sha256,omitempty"`
// after_sha256 is the lowercase SHA-256 digest of the returned content.
AfterSha256 string `protobuf:"bytes,8,opt,name=after_sha256,json=afterSha256,proto3" json:"after_sha256,omitempty"`
// wrote reports whether the plugin committed the returned content.
Wrote bool `protobuf:"varint,9,opt,name=wrote,proto3" json:"wrote,omitempty"`
// output preserves bounded formatter/fixer output useful for follow-up linting.
Output string `protobuf:"bytes,10,opt,name=output,proto3" json:"output,omitempty"`
// contains filtered or unexported fields
}
ApplyEditResponse reports the selected strategy and post-edit content.
func (*ApplyEditResponse) Descriptor
deprecated
func (*ApplyEditResponse) Descriptor() ([]byte, []int)
Deprecated: Use ApplyEditResponse.ProtoReflect.Descriptor instead.
func (*ApplyEditResponse) GetAfterSha256 ¶ added in v0.2.24
func (x *ApplyEditResponse) GetAfterSha256() string
func (*ApplyEditResponse) GetBeforeSha256 ¶ added in v0.2.24
func (x *ApplyEditResponse) GetBeforeSha256() string
func (*ApplyEditResponse) GetChanged ¶ added in v0.2.24
func (x *ApplyEditResponse) GetChanged() bool
func (*ApplyEditResponse) GetContent ¶
func (x *ApplyEditResponse) GetContent() string
func (*ApplyEditResponse) GetError ¶
func (x *ApplyEditResponse) GetError() string
func (*ApplyEditResponse) GetFixActions ¶
func (x *ApplyEditResponse) GetFixActions() []string
func (*ApplyEditResponse) GetOutput ¶ added in v0.2.24
func (x *ApplyEditResponse) GetOutput() string
func (*ApplyEditResponse) GetStrategy ¶
func (x *ApplyEditResponse) GetStrategy() string
func (*ApplyEditResponse) GetSuccess ¶
func (x *ApplyEditResponse) GetSuccess() bool
func (*ApplyEditResponse) GetWrote ¶ added in v0.2.24
func (x *ApplyEditResponse) GetWrote() bool
func (*ApplyEditResponse) ProtoMessage ¶
func (*ApplyEditResponse) ProtoMessage()
func (*ApplyEditResponse) ProtoReflect ¶
func (x *ApplyEditResponse) ProtoReflect() protoreflect.Message
func (*ApplyEditResponse) Reset ¶
func (x *ApplyEditResponse) Reset()
func (*ApplyEditResponse) String ¶
func (x *ApplyEditResponse) String() string
type AvailableCommand ¶
type AvailableCommand struct {
// name is the command name accepted by the gateway.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // e.g. "reset_db"
// description tells users and agents when this command is useful.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // "Reset the database to a clean state"
// usage is the command-line shape shown to users and agents.
Usage string `protobuf:"bytes,3,opt,name=usage,proto3" json:"usage,omitempty"` // "! reset_db [--seed]"
// aliases are alternate command names accepted by the plugin.
Aliases []string `protobuf:"bytes,4,rep,name=aliases,proto3" json:"aliases,omitempty"`
// tags are labels used for filtering, grouping, or display.
Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"`
// plugin identifies the plugin that provides this command; empty means built-in.
Plugin string `protobuf:"bytes,6,opt,name=plugin,proto3" json:"plugin,omitempty"` // which plugin provides this, empty for built-in
// destructive is true when the operation can mutate or delete user state.
Destructive bool `protobuf:"varint,7,opt,name=destructive,proto3" json:"destructive,omitempty"` // if true, requires user confirmation
// contains filtered or unexported fields
}
AvailableCommand describes a built-in or plugin command exposed through the gateway.
func (*AvailableCommand) Descriptor
deprecated
func (*AvailableCommand) Descriptor() ([]byte, []int)
Deprecated: Use AvailableCommand.ProtoReflect.Descriptor instead.
func (*AvailableCommand) GetAliases ¶
func (x *AvailableCommand) GetAliases() []string
func (*AvailableCommand) GetDescription ¶
func (x *AvailableCommand) GetDescription() string
func (*AvailableCommand) GetDestructive ¶
func (x *AvailableCommand) GetDestructive() bool
func (*AvailableCommand) GetName ¶
func (x *AvailableCommand) GetName() string
func (*AvailableCommand) GetPlugin ¶
func (x *AvailableCommand) GetPlugin() string
func (*AvailableCommand) GetTags ¶
func (x *AvailableCommand) GetTags() []string
func (*AvailableCommand) GetUsage ¶
func (x *AvailableCommand) GetUsage() string
func (*AvailableCommand) ProtoMessage ¶
func (*AvailableCommand) ProtoMessage()
func (*AvailableCommand) ProtoReflect ¶
func (x *AvailableCommand) ProtoReflect() protoreflect.Message
func (*AvailableCommand) Reset ¶
func (x *AvailableCommand) Reset()
func (*AvailableCommand) String ¶
func (x *AvailableCommand) String() string
type BatchApplyEditsRequest ¶
type BatchApplyEditsRequest struct {
// edits are the requested edits, potentially spanning services.
Edits []*ApplyEditRequest `protobuf:"bytes,1,rep,name=edits,proto3" json:"edits,omitempty"`
// contains filtered or unexported fields
}
BatchApplyEditsRequest applies multiple edits in one call.
func (*BatchApplyEditsRequest) Descriptor
deprecated
func (*BatchApplyEditsRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchApplyEditsRequest.ProtoReflect.Descriptor instead.
func (*BatchApplyEditsRequest) GetEdits ¶
func (x *BatchApplyEditsRequest) GetEdits() []*ApplyEditRequest
func (*BatchApplyEditsRequest) ProtoMessage ¶
func (*BatchApplyEditsRequest) ProtoMessage()
func (*BatchApplyEditsRequest) ProtoReflect ¶
func (x *BatchApplyEditsRequest) ProtoReflect() protoreflect.Message
func (*BatchApplyEditsRequest) Reset ¶
func (x *BatchApplyEditsRequest) Reset()
func (*BatchApplyEditsRequest) String ¶
func (x *BatchApplyEditsRequest) String() string
type BatchApplyEditsResponse ¶
type BatchApplyEditsResponse struct {
// results are per-item outcomes returned by the operation.
Results []*EditResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
// succeeded is the number of edits that applied successfully.
Succeeded int32 `protobuf:"varint,2,opt,name=succeeded,proto3" json:"succeeded,omitempty"`
// failed is the number of edits that failed.
Failed int32 `protobuf:"varint,3,opt,name=failed,proto3" json:"failed,omitempty"`
// contains filtered or unexported fields
}
BatchApplyEditsResponse returns per-edit outcomes for the batch.
func (*BatchApplyEditsResponse) Descriptor
deprecated
func (*BatchApplyEditsResponse) Descriptor() ([]byte, []int)
Deprecated: Use BatchApplyEditsResponse.ProtoReflect.Descriptor instead.
func (*BatchApplyEditsResponse) GetFailed ¶
func (x *BatchApplyEditsResponse) GetFailed() int32
func (*BatchApplyEditsResponse) GetResults ¶
func (x *BatchApplyEditsResponse) GetResults() []*EditResult
func (*BatchApplyEditsResponse) GetSucceeded ¶
func (x *BatchApplyEditsResponse) GetSucceeded() int32
func (*BatchApplyEditsResponse) ProtoMessage ¶
func (*BatchApplyEditsResponse) ProtoMessage()
func (*BatchApplyEditsResponse) ProtoReflect ¶
func (x *BatchApplyEditsResponse) ProtoReflect() protoreflect.Message
func (*BatchApplyEditsResponse) Reset ¶
func (x *BatchApplyEditsResponse) Reset()
func (*BatchApplyEditsResponse) String ¶
func (x *BatchApplyEditsResponse) String() string
type BuildError ¶
type BuildError struct {
// file is a workspace- or service-relative source file path.
File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
// line is the 1-based source line number.
Line int32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"`
// column is the 1-based source column number when known.
Column int32 `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"`
// message is the diagnostic text returned by the build or lint tool.
Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
// severity is the diagnostic or finding level reported by the producer.
Severity string `protobuf:"bytes,5,opt,name=severity,proto3" json:"severity,omitempty"` // "error" | "warning"
// contains filtered or unexported fields
}
BuildError is a structured build or lint diagnostic.
func (*BuildError) Descriptor
deprecated
func (*BuildError) Descriptor() ([]byte, []int)
Deprecated: Use BuildError.ProtoReflect.Descriptor instead.
func (*BuildError) GetColumn ¶
func (x *BuildError) GetColumn() int32
func (*BuildError) GetFile ¶
func (x *BuildError) GetFile() string
func (*BuildError) GetLine ¶
func (x *BuildError) GetLine() int32
func (*BuildError) GetMessage ¶
func (x *BuildError) GetMessage() string
func (*BuildError) GetSeverity ¶
func (x *BuildError) GetSeverity() string
func (*BuildError) ProtoMessage ¶
func (*BuildError) ProtoMessage()
func (*BuildError) ProtoReflect ¶
func (x *BuildError) ProtoReflect() protoreflect.Message
func (*BuildError) Reset ¶
func (x *BuildError) Reset()
func (*BuildError) String ¶
func (x *BuildError) String() string
type BuildRequest ¶
type BuildRequest struct {
// service is the Codefly service name, optionally scoped by module in callers.
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
// contains filtered or unexported fields
}
BuildRequest asks the gateway to run the service build.
func (*BuildRequest) Descriptor
deprecated
func (*BuildRequest) Descriptor() ([]byte, []int)
Deprecated: Use BuildRequest.ProtoReflect.Descriptor instead.
func (*BuildRequest) GetService ¶
func (x *BuildRequest) GetService() string
func (*BuildRequest) ProtoMessage ¶
func (*BuildRequest) ProtoMessage()
func (*BuildRequest) ProtoReflect ¶
func (x *BuildRequest) ProtoReflect() protoreflect.Message
func (*BuildRequest) Reset ¶
func (x *BuildRequest) Reset()
func (*BuildRequest) String ¶
func (x *BuildRequest) String() string
type BuildResponse ¶
type BuildResponse struct {
// success is true when the requested operation completed successfully.
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
// errors are structured build diagnostics.
Errors []*BuildError `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"`
// output is raw command, build, lint, or test output retained for diagnosis.
Output string `protobuf:"bytes,3,opt,name=output,proto3" json:"output,omitempty"` // raw build output
// contains filtered or unexported fields
}
BuildResponse returns build success, structured diagnostics, and raw output.
func (*BuildResponse) Descriptor
deprecated
func (*BuildResponse) Descriptor() ([]byte, []int)
Deprecated: Use BuildResponse.ProtoReflect.Descriptor instead.
func (*BuildResponse) GetErrors ¶
func (x *BuildResponse) GetErrors() []*BuildError
func (*BuildResponse) GetOutput ¶
func (x *BuildResponse) GetOutput() string
func (*BuildResponse) GetSuccess ¶
func (x *BuildResponse) GetSuccess() bool
func (*BuildResponse) ProtoMessage ¶
func (*BuildResponse) ProtoMessage()
func (*BuildResponse) ProtoReflect ¶
func (x *BuildResponse) ProtoReflect() protoreflect.Message
func (*BuildResponse) Reset ¶
func (x *BuildResponse) Reset()
func (*BuildResponse) String ¶
func (x *BuildResponse) String() string
type Check ¶
type Check struct {
// name is a caller-chosen identifier for this check.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// check_type selects exactly one supported check type variant.
//
// Types that are valid to be assigned to CheckType:
//
// *Check_Command
// *Check_Http
// *Check_PluginBuild
// *Check_PluginTest
// *Check_PluginLint
CheckType isCheck_CheckType `protobuf_oneof:"check_type"`
// contains filtered or unexported fields
}
Check describes one verification step the gateway can run.
func (*Check) Descriptor
deprecated
func (*Check) GetCheckType ¶
func (x *Check) GetCheckType() isCheck_CheckType
func (*Check) GetCommand ¶
func (x *Check) GetCommand() *CommandCheck
func (*Check) GetPluginBuild ¶
func (x *Check) GetPluginBuild() *PluginCheck
func (*Check) GetPluginLint ¶
func (x *Check) GetPluginLint() *PluginCheck
func (*Check) GetPluginTest ¶
func (x *Check) GetPluginTest() *PluginCheck
func (*Check) ProtoMessage ¶
func (*Check) ProtoMessage()
func (*Check) ProtoReflect ¶
func (x *Check) ProtoReflect() protoreflect.Message
type CheckResult ¶
type CheckResult struct {
// name matches the requested check name.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// passed is true when the check met its expected condition.
Passed bool `protobuf:"varint,2,opt,name=passed,proto3" json:"passed,omitempty"`
// output is raw command, build, lint, or test output preserved for diagnostics.
Output string `protobuf:"bytes,3,opt,name=output,proto3" json:"output,omitempty"`
// error explains why the operation failed; empty means success at this layer.
Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
CheckResult captures the outcome of one verification check.
func (*CheckResult) Descriptor
deprecated
func (*CheckResult) Descriptor() ([]byte, []int)
Deprecated: Use CheckResult.ProtoReflect.Descriptor instead.
func (*CheckResult) GetError ¶
func (x *CheckResult) GetError() string
func (*CheckResult) GetName ¶
func (x *CheckResult) GetName() string
func (*CheckResult) GetOutput ¶
func (x *CheckResult) GetOutput() string
func (*CheckResult) GetPassed ¶
func (x *CheckResult) GetPassed() bool
func (*CheckResult) ProtoMessage ¶
func (*CheckResult) ProtoMessage()
func (*CheckResult) ProtoReflect ¶
func (x *CheckResult) ProtoReflect() protoreflect.Message
func (*CheckResult) Reset ¶
func (x *CheckResult) Reset()
func (*CheckResult) String ¶
func (x *CheckResult) String() string
type Check_Command ¶
type Check_Command struct {
// command runs a shell command and evaluates exit code or output.
Command *CommandCheck `protobuf:"bytes,2,opt,name=command,proto3,oneof"`
}
type Check_Http ¶
type Check_Http struct {
// http calls a service endpoint and evaluates the response.
Http *HttpCheck `protobuf:"bytes,3,opt,name=http,proto3,oneof"`
}
type Check_PluginBuild ¶
type Check_PluginBuild struct {
// plugin_build delegates to the service plugin's Build RPC.
PluginBuild *PluginCheck `protobuf:"bytes,4,opt,name=plugin_build,json=pluginBuild,proto3,oneof"`
}
type Check_PluginLint ¶
type Check_PluginLint struct {
// plugin_lint delegates to the service plugin's Lint RPC.
PluginLint *PluginCheck `protobuf:"bytes,6,opt,name=plugin_lint,json=pluginLint,proto3,oneof"`
}
type Check_PluginTest ¶
type Check_PluginTest struct {
// plugin_test delegates to the service plugin's Test RPC.
PluginTest *PluginCheck `protobuf:"bytes,5,opt,name=plugin_test,json=pluginTest,proto3,oneof"`
}
type CloseTerminalRequest ¶ added in v0.2.12
type CloseTerminalRequest struct {
// terminal_id identifies the terminal to close.
TerminalId string `protobuf:"bytes,1,opt,name=terminal_id,json=terminalId,proto3" json:"terminal_id,omitempty"`
// contains filtered or unexported fields
}
CloseTerminalRequest terminates and removes one terminal session.
func (*CloseTerminalRequest) Descriptor
deprecated
added in
v0.2.12
func (*CloseTerminalRequest) Descriptor() ([]byte, []int)
Deprecated: Use CloseTerminalRequest.ProtoReflect.Descriptor instead.
func (*CloseTerminalRequest) GetTerminalId ¶ added in v0.2.12
func (x *CloseTerminalRequest) GetTerminalId() string
func (*CloseTerminalRequest) ProtoMessage ¶ added in v0.2.12
func (*CloseTerminalRequest) ProtoMessage()
func (*CloseTerminalRequest) ProtoReflect ¶ added in v0.2.12
func (x *CloseTerminalRequest) ProtoReflect() protoreflect.Message
func (*CloseTerminalRequest) Reset ¶ added in v0.2.12
func (x *CloseTerminalRequest) Reset()
func (*CloseTerminalRequest) String ¶ added in v0.2.12
func (x *CloseTerminalRequest) String() string
type CloseTerminalResponse ¶ added in v0.2.12
type CloseTerminalResponse struct {
// contains filtered or unexported fields
}
CloseTerminalResponse confirms that the terminal was closed.
func (*CloseTerminalResponse) Descriptor
deprecated
added in
v0.2.12
func (*CloseTerminalResponse) Descriptor() ([]byte, []int)
Deprecated: Use CloseTerminalResponse.ProtoReflect.Descriptor instead.
func (*CloseTerminalResponse) ProtoMessage ¶ added in v0.2.12
func (*CloseTerminalResponse) ProtoMessage()
func (*CloseTerminalResponse) ProtoReflect ¶ added in v0.2.12
func (x *CloseTerminalResponse) ProtoReflect() protoreflect.Message
func (*CloseTerminalResponse) Reset ¶ added in v0.2.12
func (x *CloseTerminalResponse) Reset()
func (*CloseTerminalResponse) String ¶ added in v0.2.12
func (x *CloseTerminalResponse) String() string
type CommandCheck ¶
type CommandCheck struct {
// run is the command line executed by a command check.
Run string `protobuf:"bytes,1,opt,name=run,proto3" json:"run,omitempty"`
// expected_exit_code is the process status required for success.
ExpectedExitCode int32 `protobuf:"varint,2,opt,name=expected_exit_code,json=expectedExitCode,proto3" json:"expected_exit_code,omitempty"`
// output_contains is text that must appear in command output.
OutputContains string `protobuf:"bytes,3,opt,name=output_contains,json=outputContains,proto3" json:"output_contains,omitempty"`
// contains filtered or unexported fields
}
CommandCheck validates a command's exit code and optional output text.
func (*CommandCheck) Descriptor
deprecated
func (*CommandCheck) Descriptor() ([]byte, []int)
Deprecated: Use CommandCheck.ProtoReflect.Descriptor instead.
func (*CommandCheck) GetExpectedExitCode ¶
func (x *CommandCheck) GetExpectedExitCode() int32
func (*CommandCheck) GetOutputContains ¶
func (x *CommandCheck) GetOutputContains() string
func (*CommandCheck) GetRun ¶
func (x *CommandCheck) GetRun() string
func (*CommandCheck) ProtoMessage ¶
func (*CommandCheck) ProtoMessage()
func (*CommandCheck) ProtoReflect ¶
func (x *CommandCheck) ProtoReflect() protoreflect.Message
func (*CommandCheck) Reset ¶
func (x *CommandCheck) Reset()
func (*CommandCheck) String ¶
func (x *CommandCheck) String() string
type CreateFileRequest ¶
type CreateFileRequest struct {
// service is the Codefly service name, optionally scoped by module in callers.
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
// path is a workspace- or service-relative filesystem path.
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
// content is the initial file body to write.
Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
// overwrite allows CreateFile to replace an existing file when true.
Overwrite bool `protobuf:"varint,4,opt,name=overwrite,proto3" json:"overwrite,omitempty"`
// contains filtered or unexported fields
}
CreateFileRequest describes the file resource to create.
func (*CreateFileRequest) Descriptor
deprecated
func (*CreateFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateFileRequest.ProtoReflect.Descriptor instead.
func (*CreateFileRequest) GetContent ¶
func (x *CreateFileRequest) GetContent() string
func (*CreateFileRequest) GetOverwrite ¶
func (x *CreateFileRequest) GetOverwrite() bool
func (*CreateFileRequest) GetPath ¶
func (x *CreateFileRequest) GetPath() string
func (*CreateFileRequest) GetService ¶
func (x *CreateFileRequest) GetService() string
func (*CreateFileRequest) ProtoMessage ¶
func (*CreateFileRequest) ProtoMessage()
func (*CreateFileRequest) ProtoReflect ¶
func (x *CreateFileRequest) ProtoReflect() protoreflect.Message
func (*CreateFileRequest) Reset ¶
func (x *CreateFileRequest) Reset()
func (*CreateFileRequest) String ¶
func (x *CreateFileRequest) String() string
type CreateFileResponse ¶
type CreateFileResponse struct {
// success is true when the requested operation completed successfully.
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
// error explains why the operation failed; empty means success at this layer.
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
CreateFileResponse reports whether the gateway created the file.
func (*CreateFileResponse) Descriptor
deprecated
func (*CreateFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateFileResponse.ProtoReflect.Descriptor instead.
func (*CreateFileResponse) GetError ¶
func (x *CreateFileResponse) GetError() string
func (*CreateFileResponse) GetSuccess ¶
func (x *CreateFileResponse) GetSuccess() bool
func (*CreateFileResponse) ProtoMessage ¶
func (*CreateFileResponse) ProtoMessage()
func (*CreateFileResponse) ProtoReflect ¶
func (x *CreateFileResponse) ProtoReflect() protoreflect.Message
func (*CreateFileResponse) Reset ¶
func (x *CreateFileResponse) Reset()
func (*CreateFileResponse) String ¶
func (x *CreateFileResponse) String() string
type DeleteFileRequest ¶
type DeleteFileRequest struct {
// service is the Codefly service name, optionally scoped by module in callers.
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
// path is a workspace- or service-relative filesystem path.
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // relative to service root
// contains filtered or unexported fields
}
DeleteFileRequest identifies the file resource to delete.
func (*DeleteFileRequest) Descriptor
deprecated
func (*DeleteFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteFileRequest.ProtoReflect.Descriptor instead.
func (*DeleteFileRequest) GetPath ¶
func (x *DeleteFileRequest) GetPath() string
func (*DeleteFileRequest) GetService ¶
func (x *DeleteFileRequest) GetService() string
func (*DeleteFileRequest) ProtoMessage ¶
func (*DeleteFileRequest) ProtoMessage()
func (*DeleteFileRequest) ProtoReflect ¶
func (x *DeleteFileRequest) ProtoReflect() protoreflect.Message
func (*DeleteFileRequest) Reset ¶
func (x *DeleteFileRequest) Reset()
func (*DeleteFileRequest) String ¶
func (x *DeleteFileRequest) String() string
type DeleteFileResponse ¶
type DeleteFileResponse struct {
// success is true when the requested operation completed successfully.
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
// error explains why the operation failed; empty means success at this layer.
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
DeleteFileResponse reports whether the gateway removed the file.
func (*DeleteFileResponse) Descriptor
deprecated
func (*DeleteFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteFileResponse.ProtoReflect.Descriptor instead.
func (*DeleteFileResponse) GetError ¶
func (x *DeleteFileResponse) GetError() string
func (*DeleteFileResponse) GetSuccess ¶
func (x *DeleteFileResponse) GetSuccess() bool
func (*DeleteFileResponse) ProtoMessage ¶
func (*DeleteFileResponse) ProtoMessage()
func (*DeleteFileResponse) ProtoReflect ¶
func (x *DeleteFileResponse) ProtoReflect() protoreflect.Message
func (*DeleteFileResponse) Reset ¶
func (x *DeleteFileResponse) Reset()
func (*DeleteFileResponse) String ¶
func (x *DeleteFileResponse) String() string
type Dependency ¶
type Dependency struct {
// name is the package, module, or dependency identifier.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// version is the semantic or service-specific version for this resource.
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// direct is true when the dependency is declared directly rather than transitively inferred.
Direct bool `protobuf:"varint,3,opt,name=direct,proto3" json:"direct,omitempty"`
// contains filtered or unexported fields
}
Dependency represents a package or module dependency.
func (*Dependency) Descriptor
deprecated
func (*Dependency) Descriptor() ([]byte, []int)
Deprecated: Use Dependency.ProtoReflect.Descriptor instead.
func (*Dependency) GetDirect ¶
func (x *Dependency) GetDirect() bool
func (*Dependency) GetName ¶
func (x *Dependency) GetName() string
func (*Dependency) GetVersion ¶
func (x *Dependency) GetVersion() string
func (*Dependency) ProtoMessage ¶
func (*Dependency) ProtoMessage()
func (*Dependency) ProtoReflect ¶
func (x *Dependency) ProtoReflect() protoreflect.Message
func (*Dependency) Reset ¶
func (x *Dependency) Reset()
func (*Dependency) String ¶
func (x *Dependency) String() string
type EditResult ¶
type EditResult struct {
// service is the Codefly service name, optionally scoped by module in callers.
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
// file is a workspace- or service-relative source file path.
File string `protobuf:"bytes,2,opt,name=file,proto3" json:"file,omitempty"`
// success is true when the requested operation completed successfully.
Success bool `protobuf:"varint,3,opt,name=success,proto3" json:"success,omitempty"`
// error explains why the operation failed; empty means success at this layer.
Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
// strategy names the edit or execution strategy that produced the result.
Strategy string `protobuf:"bytes,5,opt,name=strategy,proto3" json:"strategy,omitempty"`
// contains filtered or unexported fields
}
EditResult captures the outcome of one edit inside a batch.
func (*EditResult) Descriptor
deprecated
func (*EditResult) Descriptor() ([]byte, []int)
Deprecated: Use EditResult.ProtoReflect.Descriptor instead.
func (*EditResult) GetError ¶
func (x *EditResult) GetError() string
func (*EditResult) GetFile ¶
func (x *EditResult) GetFile() string
func (*EditResult) GetService ¶
func (x *EditResult) GetService() string
func (*EditResult) GetStrategy ¶
func (x *EditResult) GetStrategy() string
func (*EditResult) GetSuccess ¶
func (x *EditResult) GetSuccess() bool
func (*EditResult) ProtoMessage ¶
func (*EditResult) ProtoMessage()
func (*EditResult) ProtoReflect ¶
func (x *EditResult) ProtoReflect() protoreflect.Message
func (*EditResult) Reset ¶
func (x *EditResult) Reset()
func (*EditResult) String ¶
func (x *EditResult) String() string
type FileInfo ¶
type FileInfo struct {
// path is a workspace- or service-relative filesystem path.
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // relative path within the service
// size_bytes is the file size in bytes.
SizeBytes int64 `protobuf:"varint,2,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
// is_directory is true when the path is a directory.
IsDirectory bool `protobuf:"varint,3,opt,name=is_directory,json=isDirectory,proto3" json:"is_directory,omitempty"`
// contains filtered or unexported fields
}
FileInfo describes a file or directory returned by ListFiles.
func (*FileInfo) Descriptor
deprecated
func (*FileInfo) GetIsDirectory ¶
func (*FileInfo) GetSizeBytes ¶
func (*FileInfo) ProtoMessage ¶
func (*FileInfo) ProtoMessage()
func (*FileInfo) ProtoReflect ¶
func (x *FileInfo) ProtoReflect() protoreflect.Message
type FixRequest ¶
type FixRequest struct {
// service is the Codefly service name, optionally scoped by module in callers.
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
// path is a workspace- or service-relative filesystem path.
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // relative to service root
// mode selects safe fixes, no fixes, or explicitly aggressive fixes.
Mode v0.FixMode `protobuf:"varint,3,opt,name=mode,proto3,enum=codefly.base.v0.FixMode" json:"mode,omitempty"`
// dry_run returns the fixed content and evidence without writing the file.
DryRun bool `protobuf:"varint,4,opt,name=dry_run,json=dryRun,proto3" json:"dry_run,omitempty"`
// contains filtered or unexported fields
}
FixRequest asks the gateway to run language-specific formatters or fixers on a file.
func (*FixRequest) Descriptor
deprecated
func (*FixRequest) Descriptor() ([]byte, []int)
Deprecated: Use FixRequest.ProtoReflect.Descriptor instead.
func (*FixRequest) GetDryRun ¶ added in v0.2.24
func (x *FixRequest) GetDryRun() bool
func (*FixRequest) GetMode ¶ added in v0.2.24
func (x *FixRequest) GetMode() v0.FixMode
func (*FixRequest) GetPath ¶
func (x *FixRequest) GetPath() string
func (*FixRequest) GetService ¶
func (x *FixRequest) GetService() string
func (*FixRequest) ProtoMessage ¶
func (*FixRequest) ProtoMessage()
func (*FixRequest) ProtoReflect ¶
func (x *FixRequest) ProtoReflect() protoreflect.Message
func (*FixRequest) Reset ¶
func (x *FixRequest) Reset()
func (*FixRequest) String ¶
func (x *FixRequest) String() string
type FixResponse ¶
type FixResponse struct {
// success is true when the requested operation completed successfully.
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
// content is the fixed file content; it may be empty when no rewrite was needed.
Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // the fixed file content (empty if unchanged)
// error explains why the operation failed; empty means success at this layer.
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` // non-fatal: fixer not available, etc.
// actions are native formatter, fixer, or lifecycle actions performed by the agent.
Actions []string `protobuf:"bytes,4,rep,name=actions,proto3" json:"actions,omitempty"` // what was done: "goimports", "gofmt", etc.
// changed reports whether the returned content differs from the original file.
Changed bool `protobuf:"varint,5,opt,name=changed,proto3" json:"changed,omitempty"`
// before_sha256 is the lowercase SHA-256 digest of the original content.
BeforeSha256 string `protobuf:"bytes,6,opt,name=before_sha256,json=beforeSha256,proto3" json:"before_sha256,omitempty"`
// after_sha256 is the lowercase SHA-256 digest of the returned content.
AfterSha256 string `protobuf:"bytes,7,opt,name=after_sha256,json=afterSha256,proto3" json:"after_sha256,omitempty"`
// wrote reports whether the plugin committed the returned content.
Wrote bool `protobuf:"varint,8,opt,name=wrote,proto3" json:"wrote,omitempty"`
// output preserves bounded formatter/fixer output useful for follow-up linting.
Output string `protobuf:"bytes,9,opt,name=output,proto3" json:"output,omitempty"`
// contains filtered or unexported fields
}
FixResponse returns the fixed content and the formatter actions that ran.
func (*FixResponse) Descriptor
deprecated
func (*FixResponse) Descriptor() ([]byte, []int)
Deprecated: Use FixResponse.ProtoReflect.Descriptor instead.
func (*FixResponse) GetActions ¶
func (x *FixResponse) GetActions() []string
func (*FixResponse) GetAfterSha256 ¶ added in v0.2.24
func (x *FixResponse) GetAfterSha256() string
func (*FixResponse) GetBeforeSha256 ¶ added in v0.2.24
func (x *FixResponse) GetBeforeSha256() string
func (*FixResponse) GetChanged ¶ added in v0.2.24
func (x *FixResponse) GetChanged() bool
func (*FixResponse) GetContent ¶
func (x *FixResponse) GetContent() string
func (*FixResponse) GetError ¶
func (x *FixResponse) GetError() string
func (*FixResponse) GetOutput ¶ added in v0.2.24
func (x *FixResponse) GetOutput() string
func (*FixResponse) GetSuccess ¶
func (x *FixResponse) GetSuccess() bool
func (*FixResponse) GetWrote ¶ added in v0.2.24
func (x *FixResponse) GetWrote() bool
func (*FixResponse) ProtoMessage ¶
func (*FixResponse) ProtoMessage()
func (*FixResponse) ProtoReflect ¶
func (x *FixResponse) ProtoReflect() protoreflect.Message
func (*FixResponse) Reset ¶
func (x *FixResponse) Reset()
func (*FixResponse) String ¶
func (x *FixResponse) String() string
type GatewayClient ¶
type GatewayClient interface {
// ListServices returns all services known to the gateway.
ListServices(ctx context.Context, in *ListServicesRequest, opts ...grpc.CallOption) (*ListServicesResponse, error)
// ReadFile reads a file from a service's source tree.
ReadFile(ctx context.Context, in *ReadFileRequest, opts ...grpc.CallOption) (*ReadFileResponse, error)
// WriteFile writes (creates or overwrites) a file in a service's source tree.
WriteFile(ctx context.Context, in *WriteFileRequest, opts ...grpc.CallOption) (*WriteFileResponse, error)
// ListFiles lists files in a service's source tree.
ListFiles(ctx context.Context, in *ListFilesRequest, opts ...grpc.CallOption) (*ListFilesResponse, error)
// SubscribeWorkspaceChanges streams metadata-only filesystem wakeups from
// the Codefly execution boundary. Events are sequenced and replayable over a
// bounded window; consumers must still reconcile with authoritative reads.
SubscribeWorkspaceChanges(ctx context.Context, in *SubscribeWorkspaceChangesRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[WorkspaceChangeEvent], error)
// DeleteFile removes a file from a service's source tree.
DeleteFile(ctx context.Context, in *DeleteFileRequest, opts ...grpc.CallOption) (*DeleteFileResponse, error)
// MoveFile renames or moves a file, optionally updating imports.
MoveFile(ctx context.Context, in *MoveFileRequest, opts ...grpc.CallOption) (*MoveFileResponse, error)
// CreateFile creates a new file (fails if exists unless overwrite set).
CreateFile(ctx context.Context, in *CreateFileRequest, opts ...grpc.CallOption) (*CreateFileResponse, error)
// Fix runs language-specific fixers on a file (goimports, gofmt, prettier, etc.).
Fix(ctx context.Context, in *FixRequest, opts ...grpc.CallOption) (*FixResponse, error)
// ApplyEdit performs a smart FIND/REPLACE on a file.
ApplyEdit(ctx context.Context, in *ApplyEditRequest, opts ...grpc.CallOption) (*ApplyEditResponse, error)
// BatchApplyEdits applies multiple edits atomically across files/services.
BatchApplyEdits(ctx context.Context, in *BatchApplyEditsRequest, opts ...grpc.CallOption) (*BatchApplyEditsResponse, error)
// Search performs text search across a service's source tree.
Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error)
// Build compiles the service (and its dependencies if needed).
Build(ctx context.Context, in *BuildRequest, opts ...grpc.CallOption) (*BuildResponse, error)
// Lint runs the configured lint command on the service.
Lint(ctx context.Context, in *LintRequest, opts ...grpc.CallOption) (*LintResponse, error)
// Test runs the configured test command on the service.
Test(ctx context.Context, in *TestRequest, opts ...grpc.CallOption) (*TestResponse, error)
// RunCommand executes an arbitrary command in the service context.
RunCommand(ctx context.Context, in *RunCommandRequest, opts ...grpc.CallOption) (*RunCommandResponse, error)
// ListAllCommands returns commands from all loaded plugins plus built-in ones.
ListAllCommands(ctx context.Context, in *ListAllCommandsRequest, opts ...grpc.CallOption) (*ListAllCommandsResponse, error)
// RunChecks executes a set of verification checks against the service.
RunChecks(ctx context.Context, in *RunChecksRequest, opts ...grpc.CallOption) (*RunChecksResponse, error)
// GitStatus returns the current git status of modified/staged/untracked files.
GitStatus(ctx context.Context, in *GitStatusRequest, opts ...grpc.CallOption) (*GitStatusResponse, error)
// GitDiff shows changes (unstaged or staged).
GitDiff(ctx context.Context, in *GitDiffRequest, opts ...grpc.CallOption) (*GitDiffResponse, error)
// GitLog returns recent commit history.
GitLog(ctx context.Context, in *GitLogRequest, opts ...grpc.CallOption) (*GitLogResponse, error)
// GitCommit commits staged changes.
GitCommit(ctx context.Context, in *GitCommitRequest, opts ...grpc.CallOption) (*GitCommitResponse, error)
// ListDependencies returns all dependencies with versions.
ListDependencies(ctx context.Context, in *ListDependenciesRequest, opts ...grpc.CallOption) (*ListDependenciesResponse, error)
// AddDependency adds a package via the language package manager.
AddDependency(ctx context.Context, in *AddDependencyRequest, opts ...grpc.CallOption) (*AddDependencyResponse, error)
// RemoveDependency removes a package via the language package manager.
RemoveDependency(ctx context.Context, in *RemoveDependencyRequest, opts ...grpc.CallOption) (*RemoveDependencyResponse, error)
// GetProjectInfo returns rich project metadata: module, packages, deps, file hashes.
GetProjectInfo(ctx context.Context, in *GetProjectInfoRequest, opts ...grpc.CallOption) (*GetProjectInfoResponse, error)
// OpenTerminal spawns a PTY-backed shell in the gateway's working directory.
OpenTerminal(ctx context.Context, in *OpenTerminalRequest, opts ...grpc.CallOption) (*OpenTerminalResponse, error)
// AttachTerminal is a bidirectional stream: client input bytes in,
// raw PTY output bytes out, until the shell exits or the client detaches.
AttachTerminal(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[TerminalInput, TerminalOutput], error)
// ResizeTerminal changes the PTY window size (rows/cols).
ResizeTerminal(ctx context.Context, in *ResizeTerminalRequest, opts ...grpc.CallOption) (*ResizeTerminalResponse, error)
// CloseTerminal kills the PTY + child process.
CloseTerminal(ctx context.Context, in *CloseTerminalRequest, opts ...grpc.CallOption) (*CloseTerminalResponse, error)
// ListTerminals lists the open terminals in this gateway.
ListTerminals(ctx context.Context, in *ListTerminalsRequest, opts ...grpc.CallOption) (*ListTerminalsResponse, error)
}
GatewayClient is the client API for Gateway service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
Gateway is the firewall API Mind uses to reach Codefly workspaces without talking directly to agents, processes, or containers.
func NewGatewayClient ¶
func NewGatewayClient(cc grpc.ClientConnInterface) GatewayClient
type GatewayServer ¶
type GatewayServer interface {
// ListServices returns all services known to the gateway.
ListServices(context.Context, *ListServicesRequest) (*ListServicesResponse, error)
// ReadFile reads a file from a service's source tree.
ReadFile(context.Context, *ReadFileRequest) (*ReadFileResponse, error)
// WriteFile writes (creates or overwrites) a file in a service's source tree.
WriteFile(context.Context, *WriteFileRequest) (*WriteFileResponse, error)
// ListFiles lists files in a service's source tree.
ListFiles(context.Context, *ListFilesRequest) (*ListFilesResponse, error)
// SubscribeWorkspaceChanges streams metadata-only filesystem wakeups from
// the Codefly execution boundary. Events are sequenced and replayable over a
// bounded window; consumers must still reconcile with authoritative reads.
SubscribeWorkspaceChanges(*SubscribeWorkspaceChangesRequest, grpc.ServerStreamingServer[WorkspaceChangeEvent]) error
// DeleteFile removes a file from a service's source tree.
DeleteFile(context.Context, *DeleteFileRequest) (*DeleteFileResponse, error)
// MoveFile renames or moves a file, optionally updating imports.
MoveFile(context.Context, *MoveFileRequest) (*MoveFileResponse, error)
// CreateFile creates a new file (fails if exists unless overwrite set).
CreateFile(context.Context, *CreateFileRequest) (*CreateFileResponse, error)
// Fix runs language-specific fixers on a file (goimports, gofmt, prettier, etc.).
Fix(context.Context, *FixRequest) (*FixResponse, error)
// ApplyEdit performs a smart FIND/REPLACE on a file.
ApplyEdit(context.Context, *ApplyEditRequest) (*ApplyEditResponse, error)
// BatchApplyEdits applies multiple edits atomically across files/services.
BatchApplyEdits(context.Context, *BatchApplyEditsRequest) (*BatchApplyEditsResponse, error)
// Search performs text search across a service's source tree.
Search(context.Context, *SearchRequest) (*SearchResponse, error)
// Build compiles the service (and its dependencies if needed).
Build(context.Context, *BuildRequest) (*BuildResponse, error)
// Lint runs the configured lint command on the service.
Lint(context.Context, *LintRequest) (*LintResponse, error)
// Test runs the configured test command on the service.
Test(context.Context, *TestRequest) (*TestResponse, error)
// RunCommand executes an arbitrary command in the service context.
RunCommand(context.Context, *RunCommandRequest) (*RunCommandResponse, error)
// ListAllCommands returns commands from all loaded plugins plus built-in ones.
ListAllCommands(context.Context, *ListAllCommandsRequest) (*ListAllCommandsResponse, error)
// RunChecks executes a set of verification checks against the service.
RunChecks(context.Context, *RunChecksRequest) (*RunChecksResponse, error)
// GitStatus returns the current git status of modified/staged/untracked files.
GitStatus(context.Context, *GitStatusRequest) (*GitStatusResponse, error)
// GitDiff shows changes (unstaged or staged).
GitDiff(context.Context, *GitDiffRequest) (*GitDiffResponse, error)
// GitLog returns recent commit history.
GitLog(context.Context, *GitLogRequest) (*GitLogResponse, error)
// GitCommit commits staged changes.
GitCommit(context.Context, *GitCommitRequest) (*GitCommitResponse, error)
// ListDependencies returns all dependencies with versions.
ListDependencies(context.Context, *ListDependenciesRequest) (*ListDependenciesResponse, error)
// AddDependency adds a package via the language package manager.
AddDependency(context.Context, *AddDependencyRequest) (*AddDependencyResponse, error)
// RemoveDependency removes a package via the language package manager.
RemoveDependency(context.Context, *RemoveDependencyRequest) (*RemoveDependencyResponse, error)
// GetProjectInfo returns rich project metadata: module, packages, deps, file hashes.
GetProjectInfo(context.Context, *GetProjectInfoRequest) (*GetProjectInfoResponse, error)
// OpenTerminal spawns a PTY-backed shell in the gateway's working directory.
OpenTerminal(context.Context, *OpenTerminalRequest) (*OpenTerminalResponse, error)
// AttachTerminal is a bidirectional stream: client input bytes in,
// raw PTY output bytes out, until the shell exits or the client detaches.
AttachTerminal(grpc.BidiStreamingServer[TerminalInput, TerminalOutput]) error
// ResizeTerminal changes the PTY window size (rows/cols).
ResizeTerminal(context.Context, *ResizeTerminalRequest) (*ResizeTerminalResponse, error)
// CloseTerminal kills the PTY + child process.
CloseTerminal(context.Context, *CloseTerminalRequest) (*CloseTerminalResponse, error)
// ListTerminals lists the open terminals in this gateway.
ListTerminals(context.Context, *ListTerminalsRequest) (*ListTerminalsResponse, error)
// contains filtered or unexported methods
}
GatewayServer is the server API for Gateway service. All implementations must embed UnimplementedGatewayServer for forward compatibility.
Gateway is the firewall API Mind uses to reach Codefly workspaces without talking directly to agents, processes, or containers.
type Gateway_AttachTerminalClient ¶ added in v0.2.12
type Gateway_AttachTerminalClient = grpc.BidiStreamingClient[TerminalInput, TerminalOutput]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Gateway_AttachTerminalServer ¶ added in v0.2.12
type Gateway_AttachTerminalServer = grpc.BidiStreamingServer[TerminalInput, TerminalOutput]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Gateway_SubscribeWorkspaceChangesClient ¶ added in v0.2.24
type Gateway_SubscribeWorkspaceChangesClient = grpc.ServerStreamingClient[WorkspaceChangeEvent]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Gateway_SubscribeWorkspaceChangesServer ¶ added in v0.2.24
type Gateway_SubscribeWorkspaceChangesServer = grpc.ServerStreamingServer[WorkspaceChangeEvent]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type GetProjectInfoRequest ¶
type GetProjectInfoRequest struct {
// service is the Codefly service name, optionally scoped by module in callers.
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
// contains filtered or unexported fields
}
GetProjectInfoRequest identifies the project info data to retrieve.
func (*GetProjectInfoRequest) Descriptor
deprecated
func (*GetProjectInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetProjectInfoRequest.ProtoReflect.Descriptor instead.
func (*GetProjectInfoRequest) GetService ¶
func (x *GetProjectInfoRequest) GetService() string
func (*GetProjectInfoRequest) ProtoMessage ¶
func (*GetProjectInfoRequest) ProtoMessage()
func (*GetProjectInfoRequest) ProtoReflect ¶
func (x *GetProjectInfoRequest) ProtoReflect() protoreflect.Message
func (*GetProjectInfoRequest) Reset ¶
func (x *GetProjectInfoRequest) Reset()
func (*GetProjectInfoRequest) String ¶
func (x *GetProjectInfoRequest) String() string
type GetProjectInfoResponse ¶
type GetProjectInfoResponse struct {
// module is the Codefly module name that groups services.
Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"` // e.g. "github.com/codefly-dev/mind"
// language is the implementation language detected for this service or project.
Language string `protobuf:"bytes,2,opt,name=language,proto3" json:"language,omitempty"` // e.g. "go"
// language_version is the detected compiler or runtime version.
LanguageVersion string `protobuf:"bytes,3,opt,name=language_version,json=languageVersion,proto3" json:"language_version,omitempty"` // e.g. "1.25"
// packages describes the package or module layout within the service.
Packages []*PackageInfo `protobuf:"bytes,4,rep,name=packages,proto3" json:"packages,omitempty"` // package structure
// dependencies are packages discovered from manifests or lock files.
Dependencies []*Dependency `protobuf:"bytes,5,rep,name=dependencies,proto3" json:"dependencies,omitempty"` // reuse existing Dependency message
// file_hashes maps source paths to content hashes for change detection.
FileHashes map[string]string `` // path -> SHA-256 for change detection
/* 165-byte string literal not displayed */
// error explains why the operation failed; empty means success at this layer.
Error string `protobuf:"bytes,7,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
GetProjectInfoResponse returns language metadata useful for ingestion and planning.
func (*GetProjectInfoResponse) Descriptor
deprecated
func (*GetProjectInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetProjectInfoResponse.ProtoReflect.Descriptor instead.
func (*GetProjectInfoResponse) GetDependencies ¶
func (x *GetProjectInfoResponse) GetDependencies() []*Dependency
func (*GetProjectInfoResponse) GetError ¶
func (x *GetProjectInfoResponse) GetError() string
func (*GetProjectInfoResponse) GetFileHashes ¶
func (x *GetProjectInfoResponse) GetFileHashes() map[string]string
func (*GetProjectInfoResponse) GetLanguage ¶
func (x *GetProjectInfoResponse) GetLanguage() string
func (*GetProjectInfoResponse) GetLanguageVersion ¶
func (x *GetProjectInfoResponse) GetLanguageVersion() string
func (*GetProjectInfoResponse) GetModule ¶
func (x *GetProjectInfoResponse) GetModule() string
func (*GetProjectInfoResponse) GetPackages ¶
func (x *GetProjectInfoResponse) GetPackages() []*PackageInfo
func (*GetProjectInfoResponse) ProtoMessage ¶
func (*GetProjectInfoResponse) ProtoMessage()
func (*GetProjectInfoResponse) ProtoReflect ¶
func (x *GetProjectInfoResponse) ProtoReflect() protoreflect.Message
func (*GetProjectInfoResponse) Reset ¶
func (x *GetProjectInfoResponse) Reset()
func (*GetProjectInfoResponse) String ¶
func (x *GetProjectInfoResponse) String() string
type GitCommitInfo ¶
type GitCommitInfo struct {
// hash is the full git commit or content hash.
Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
// short_hash is the abbreviated git commit hash.
ShortHash string `protobuf:"bytes,2,opt,name=short_hash,json=shortHash,proto3" json:"short_hash,omitempty"`
// author is the commit author identity.
Author string `protobuf:"bytes,3,opt,name=author,proto3" json:"author,omitempty"`
// message is the first line of the commit message.
Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
// date is the commit timestamp as reported by git.
Date string `protobuf:"bytes,5,opt,name=date,proto3" json:"date,omitempty"`
// contains filtered or unexported fields
}
GitCommitInfo summarizes one commit returned by GitLog.
func (*GitCommitInfo) Descriptor
deprecated
func (*GitCommitInfo) Descriptor() ([]byte, []int)
Deprecated: Use GitCommitInfo.ProtoReflect.Descriptor instead.
func (*GitCommitInfo) GetAuthor ¶
func (x *GitCommitInfo) GetAuthor() string
func (*GitCommitInfo) GetDate ¶
func (x *GitCommitInfo) GetDate() string
func (*GitCommitInfo) GetHash ¶
func (x *GitCommitInfo) GetHash() string
func (*GitCommitInfo) GetMessage ¶
func (x *GitCommitInfo) GetMessage() string
func (*GitCommitInfo) GetShortHash ¶
func (x *GitCommitInfo) GetShortHash() string
func (*GitCommitInfo) ProtoMessage ¶
func (*GitCommitInfo) ProtoMessage()
func (*GitCommitInfo) ProtoReflect ¶
func (x *GitCommitInfo) ProtoReflect() protoreflect.Message
func (*GitCommitInfo) Reset ¶
func (x *GitCommitInfo) Reset()
func (*GitCommitInfo) String ¶
func (x *GitCommitInfo) String() string
type GitCommitRequest ¶
type GitCommitRequest struct {
// message is the commit message to use.
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
// paths optionally restrict the commit to specific files.
Paths []string `protobuf:"bytes,2,rep,name=paths,proto3" json:"paths,omitempty"` // optional: specific files to commit
// contains filtered or unexported fields
}
GitCommitRequest asks the gateway to commit selected workspace changes.
func (*GitCommitRequest) Descriptor
deprecated
func (*GitCommitRequest) Descriptor() ([]byte, []int)
Deprecated: Use GitCommitRequest.ProtoReflect.Descriptor instead.
func (*GitCommitRequest) GetMessage ¶
func (x *GitCommitRequest) GetMessage() string
func (*GitCommitRequest) GetPaths ¶
func (x *GitCommitRequest) GetPaths() []string
func (*GitCommitRequest) ProtoMessage ¶
func (*GitCommitRequest) ProtoMessage()
func (*GitCommitRequest) ProtoReflect ¶
func (x *GitCommitRequest) ProtoReflect() protoreflect.Message
func (*GitCommitRequest) Reset ¶
func (x *GitCommitRequest) Reset()
func (*GitCommitRequest) String ¶
func (x *GitCommitRequest) String() string
type GitCommitResponse ¶
type GitCommitResponse struct {
// success is true when the requested operation completed successfully.
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
// hash is the full git commit or content hash.
Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
// error explains why the operation failed; empty means success at this layer.
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
GitCommitResponse reports the commit hash when the commit succeeds.
func (*GitCommitResponse) Descriptor
deprecated
func (*GitCommitResponse) Descriptor() ([]byte, []int)
Deprecated: Use GitCommitResponse.ProtoReflect.Descriptor instead.
func (*GitCommitResponse) GetError ¶
func (x *GitCommitResponse) GetError() string
func (*GitCommitResponse) GetHash ¶
func (x *GitCommitResponse) GetHash() string
func (*GitCommitResponse) GetSuccess ¶
func (x *GitCommitResponse) GetSuccess() bool
func (*GitCommitResponse) ProtoMessage ¶
func (*GitCommitResponse) ProtoMessage()
func (*GitCommitResponse) ProtoReflect ¶
func (x *GitCommitResponse) ProtoReflect() protoreflect.Message
func (*GitCommitResponse) Reset ¶
func (x *GitCommitResponse) Reset()
func (*GitCommitResponse) String ¶
func (x *GitCommitResponse) String() string
type GitDiffRequest ¶
type GitDiffRequest struct {
// service is the Codefly service name, optionally scoped by module in callers.
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
// path is a workspace- or service-relative filesystem path.
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // optional: restrict to a file
// staged selects or reports the git index instead of the worktree.
Staged bool `protobuf:"varint,3,opt,name=staged,proto3" json:"staged,omitempty"` // if true, show staged changes
// contains filtered or unexported fields
}
GitDiffRequest asks for a git diff, optionally scoped to a path or index.
func (*GitDiffRequest) Descriptor
deprecated
func (*GitDiffRequest) Descriptor() ([]byte, []int)
Deprecated: Use GitDiffRequest.ProtoReflect.Descriptor instead.
func (*GitDiffRequest) GetPath ¶
func (x *GitDiffRequest) GetPath() string
func (*GitDiffRequest) GetService ¶
func (x *GitDiffRequest) GetService() string
func (*GitDiffRequest) GetStaged ¶
func (x *GitDiffRequest) GetStaged() bool
func (*GitDiffRequest) ProtoMessage ¶
func (*GitDiffRequest) ProtoMessage()
func (*GitDiffRequest) ProtoReflect ¶
func (x *GitDiffRequest) ProtoReflect() protoreflect.Message
func (*GitDiffRequest) Reset ¶
func (x *GitDiffRequest) Reset()
func (*GitDiffRequest) String ¶
func (x *GitDiffRequest) String() string
type GitDiffResponse ¶
type GitDiffResponse struct {
// diff is the unified git diff text.
Diff string `protobuf:"bytes,1,opt,name=diff,proto3" json:"diff,omitempty"`
// error explains why the operation failed; empty means success at this layer.
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
GitDiffResponse returns unified diff text.
func (*GitDiffResponse) Descriptor
deprecated
func (*GitDiffResponse) Descriptor() ([]byte, []int)
Deprecated: Use GitDiffResponse.ProtoReflect.Descriptor instead.
func (*GitDiffResponse) GetDiff ¶
func (x *GitDiffResponse) GetDiff() string
func (*GitDiffResponse) GetError ¶
func (x *GitDiffResponse) GetError() string
func (*GitDiffResponse) ProtoMessage ¶
func (*GitDiffResponse) ProtoMessage()
func (*GitDiffResponse) ProtoReflect ¶
func (x *GitDiffResponse) ProtoReflect() protoreflect.Message
func (*GitDiffResponse) Reset ¶
func (x *GitDiffResponse) Reset()
func (*GitDiffResponse) String ¶
func (x *GitDiffResponse) String() string
type GitFileStatus ¶
type GitFileStatus struct {
// path is a workspace- or service-relative filesystem path.
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
// status is the git, lifecycle, diagnostic, or operation state for this item.
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // "modified", "added", "deleted", "untracked", "renamed", "copied"
// staged selects or reports the git index instead of the worktree.
Staged bool `protobuf:"varint,3,opt,name=staged,proto3" json:"staged,omitempty"`
// contains filtered or unexported fields
}
GitFileStatus reports the state and message for the git file lifecycle phase.
func (*GitFileStatus) Descriptor
deprecated
func (*GitFileStatus) Descriptor() ([]byte, []int)
Deprecated: Use GitFileStatus.ProtoReflect.Descriptor instead.
func (*GitFileStatus) GetPath ¶
func (x *GitFileStatus) GetPath() string
func (*GitFileStatus) GetStaged ¶
func (x *GitFileStatus) GetStaged() bool
func (*GitFileStatus) GetStatus ¶
func (x *GitFileStatus) GetStatus() string
func (*GitFileStatus) ProtoMessage ¶
func (*GitFileStatus) ProtoMessage()
func (*GitFileStatus) ProtoReflect ¶
func (x *GitFileStatus) ProtoReflect() protoreflect.Message
func (*GitFileStatus) Reset ¶
func (x *GitFileStatus) Reset()
func (*GitFileStatus) String ¶
func (x *GitFileStatus) String() string
type GitLogRequest ¶
type GitLogRequest struct {
// service is the Codefly service name, optionally scoped by module in callers.
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
// count limits how many records should be returned.
Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // number of commits (default 10)
// contains filtered or unexported fields
}
GitLogRequest asks for recent commit history.
func (*GitLogRequest) Descriptor
deprecated
func (*GitLogRequest) Descriptor() ([]byte, []int)
Deprecated: Use GitLogRequest.ProtoReflect.Descriptor instead.
func (*GitLogRequest) GetCount ¶
func (x *GitLogRequest) GetCount() int32
func (*GitLogRequest) GetService ¶
func (x *GitLogRequest) GetService() string
func (*GitLogRequest) ProtoMessage ¶
func (*GitLogRequest) ProtoMessage()
func (*GitLogRequest) ProtoReflect ¶
func (x *GitLogRequest) ProtoReflect() protoreflect.Message
func (*GitLogRequest) Reset ¶
func (x *GitLogRequest) Reset()
func (*GitLogRequest) String ¶
func (x *GitLogRequest) String() string
type GitLogResponse ¶
type GitLogResponse struct {
// commits are git history entries ordered newest first.
Commits []*GitCommitInfo `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"`
// error explains why the operation failed; empty means success at this layer.
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
GitLogResponse returns commit history ordered newest first.
func (*GitLogResponse) Descriptor
deprecated
func (*GitLogResponse) Descriptor() ([]byte, []int)
Deprecated: Use GitLogResponse.ProtoReflect.Descriptor instead.
func (*GitLogResponse) GetCommits ¶
func (x *GitLogResponse) GetCommits() []*GitCommitInfo
func (*GitLogResponse) GetError ¶
func (x *GitLogResponse) GetError() string
func (*GitLogResponse) ProtoMessage ¶
func (*GitLogResponse) ProtoMessage()
func (*GitLogResponse) ProtoReflect ¶
func (x *GitLogResponse) ProtoReflect() protoreflect.Message
func (*GitLogResponse) Reset ¶
func (x *GitLogResponse) Reset()
func (*GitLogResponse) String ¶
func (x *GitLogResponse) String() string
type GitStatusRequest ¶
type GitStatusRequest struct {
// service is the Codefly service name, optionally scoped by module in callers.
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` // optional: filter to service directory
// contains filtered or unexported fields
}
GitStatusRequest asks for git status, optionally scoped to one service directory.
func (*GitStatusRequest) Descriptor
deprecated
func (*GitStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use GitStatusRequest.ProtoReflect.Descriptor instead.
func (*GitStatusRequest) GetService ¶
func (x *GitStatusRequest) GetService() string
func (*GitStatusRequest) ProtoMessage ¶
func (*GitStatusRequest) ProtoMessage()
func (*GitStatusRequest) ProtoReflect ¶
func (x *GitStatusRequest) ProtoReflect() protoreflect.Message
func (*GitStatusRequest) Reset ¶
func (x *GitStatusRequest) Reset()
func (*GitStatusRequest) String ¶
func (x *GitStatusRequest) String() string
type GitStatusResponse ¶
type GitStatusResponse struct {
// files are changed files reported by git status.
Files []*GitFileStatus `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
// branch is the current git branch name.
Branch string `protobuf:"bytes,2,opt,name=branch,proto3" json:"branch,omitempty"`
// error explains why the operation failed; empty means success at this layer.
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
GitStatusResponse returns branch and changed-file status.
func (*GitStatusResponse) Descriptor
deprecated
func (*GitStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use GitStatusResponse.ProtoReflect.Descriptor instead.
func (*GitStatusResponse) GetBranch ¶
func (x *GitStatusResponse) GetBranch() string
func (*GitStatusResponse) GetError ¶
func (x *GitStatusResponse) GetError() string
func (*GitStatusResponse) GetFiles ¶
func (x *GitStatusResponse) GetFiles() []*GitFileStatus
func (*GitStatusResponse) ProtoMessage ¶
func (*GitStatusResponse) ProtoMessage()
func (*GitStatusResponse) ProtoReflect ¶
func (x *GitStatusResponse) ProtoReflect() protoreflect.Message
func (*GitStatusResponse) Reset ¶
func (x *GitStatusResponse) Reset()
func (*GitStatusResponse) String ¶
func (x *GitStatusResponse) String() string
type HttpCheck ¶
type HttpCheck struct {
// method is the HTTP verb used by the check or API description.
Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
// path is the HTTP path to request on the service endpoint.
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
// body is the request or response payload.
Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
// expected_status is the HTTP status code required for success.
ExpectedStatus int32 `protobuf:"varint,4,opt,name=expected_status,json=expectedStatus,proto3" json:"expected_status,omitempty"`
// body_contains is text that must appear in the HTTP response body.
BodyContains string `protobuf:"bytes,5,opt,name=body_contains,json=bodyContains,proto3" json:"body_contains,omitempty"`
// contains filtered or unexported fields
}
HttpCheck validates an HTTP endpoint response.
func (*HttpCheck) Descriptor
deprecated
func (*HttpCheck) GetBodyContains ¶
func (*HttpCheck) GetExpectedStatus ¶
func (*HttpCheck) ProtoMessage ¶
func (*HttpCheck) ProtoMessage()
func (*HttpCheck) ProtoReflect ¶
func (x *HttpCheck) ProtoReflect() protoreflect.Message
type LintRequest ¶
type LintRequest struct {
// service is the Codefly service name, optionally scoped by module in callers.
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
// contains filtered or unexported fields
}
LintRequest asks the gateway to run the service linter.
func (*LintRequest) Descriptor
deprecated
func (*LintRequest) Descriptor() ([]byte, []int)
Deprecated: Use LintRequest.ProtoReflect.Descriptor instead.
func (*LintRequest) GetService ¶
func (x *LintRequest) GetService() string
func (*LintRequest) ProtoMessage ¶
func (*LintRequest) ProtoMessage()
func (*LintRequest) ProtoReflect ¶
func (x *LintRequest) ProtoReflect() protoreflect.Message
func (*LintRequest) Reset ¶
func (x *LintRequest) Reset()
func (*LintRequest) String ¶
func (x *LintRequest) String() string
type LintResponse ¶
type LintResponse struct {
// success is true when the requested operation completed successfully.
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
// errors are structured lint diagnostics.
Errors []*BuildError `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"` // reuse BuildError for lint diagnostics
// output is raw command, build, lint, or test output retained for diagnosis.
Output string `protobuf:"bytes,3,opt,name=output,proto3" json:"output,omitempty"` // raw lint output
// contains filtered or unexported fields
}
LintResponse returns lint success, structured diagnostics, and raw output.
func (*LintResponse) Descriptor
deprecated
func (*LintResponse) Descriptor() ([]byte, []int)
Deprecated: Use LintResponse.ProtoReflect.Descriptor instead.
func (*LintResponse) GetErrors ¶
func (x *LintResponse) GetErrors() []*BuildError
func (*LintResponse) GetOutput ¶
func (x *LintResponse) GetOutput() string
func (*LintResponse) GetSuccess ¶
func (x *LintResponse) GetSuccess() bool
func (*LintResponse) ProtoMessage ¶
func (*LintResponse) ProtoMessage()
func (*LintResponse) ProtoReflect ¶
func (x *LintResponse) ProtoReflect() protoreflect.Message
func (*LintResponse) Reset ¶
func (x *LintResponse) Reset()
func (*LintResponse) String ¶
func (x *LintResponse) String() string
type ListAllCommandsRequest ¶
type ListAllCommandsRequest struct {
// contains filtered or unexported fields
}
ListAllCommandsRequest carries optional filters for listing all commands.
func (*ListAllCommandsRequest) Descriptor
deprecated
func (*ListAllCommandsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListAllCommandsRequest.ProtoReflect.Descriptor instead.
func (*ListAllCommandsRequest) ProtoMessage ¶
func (*ListAllCommandsRequest) ProtoMessage()
func (*ListAllCommandsRequest) ProtoReflect ¶
func (x *ListAllCommandsRequest) ProtoReflect() protoreflect.Message
func (*ListAllCommandsRequest) Reset ¶
func (x *ListAllCommandsRequest) Reset()
func (*ListAllCommandsRequest) String ¶
func (x *ListAllCommandsRequest) String() string
type ListAllCommandsResponse ¶
type ListAllCommandsResponse struct {
// commands are plugin or built-in commands available to callers.
Commands []*AvailableCommand `protobuf:"bytes,1,rep,name=commands,proto3" json:"commands,omitempty"`
// contains filtered or unexported fields
}
ListAllCommandsResponse returns the gateway command catalog.
func (*ListAllCommandsResponse) Descriptor
deprecated
func (*ListAllCommandsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListAllCommandsResponse.ProtoReflect.Descriptor instead.
func (*ListAllCommandsResponse) GetCommands ¶
func (x *ListAllCommandsResponse) GetCommands() []*AvailableCommand
func (*ListAllCommandsResponse) ProtoMessage ¶
func (*ListAllCommandsResponse) ProtoMessage()
func (*ListAllCommandsResponse) ProtoReflect ¶
func (x *ListAllCommandsResponse) ProtoReflect() protoreflect.Message
func (*ListAllCommandsResponse) Reset ¶
func (x *ListAllCommandsResponse) Reset()
func (*ListAllCommandsResponse) String ¶
func (x *ListAllCommandsResponse) String() string
type ListDependenciesRequest ¶
type ListDependenciesRequest struct {
// service is the Codefly service name, optionally scoped by module in callers.
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
// contains filtered or unexported fields
}
ListDependenciesRequest carries optional filters for listing dependencies.
func (*ListDependenciesRequest) Descriptor
deprecated
func (*ListDependenciesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListDependenciesRequest.ProtoReflect.Descriptor instead.
func (*ListDependenciesRequest) GetService ¶
func (x *ListDependenciesRequest) GetService() string
func (*ListDependenciesRequest) ProtoMessage ¶
func (*ListDependenciesRequest) ProtoMessage()
func (*ListDependenciesRequest) ProtoReflect ¶
func (x *ListDependenciesRequest) ProtoReflect() protoreflect.Message
func (*ListDependenciesRequest) Reset ¶
func (x *ListDependenciesRequest) Reset()
func (*ListDependenciesRequest) String ¶
func (x *ListDependenciesRequest) String() string
type ListDependenciesResponse ¶
type ListDependenciesResponse struct {
// dependencies are packages or services required by this resource.
Dependencies []*Dependency `protobuf:"bytes,1,rep,name=dependencies,proto3" json:"dependencies,omitempty"`
// error explains why the operation failed; empty means success at this layer.
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
ListDependenciesResponse returns dependencies discovered by the native package manager.
func (*ListDependenciesResponse) Descriptor
deprecated
func (*ListDependenciesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListDependenciesResponse.ProtoReflect.Descriptor instead.
func (*ListDependenciesResponse) GetDependencies ¶
func (x *ListDependenciesResponse) GetDependencies() []*Dependency
func (*ListDependenciesResponse) GetError ¶
func (x *ListDependenciesResponse) GetError() string
func (*ListDependenciesResponse) ProtoMessage ¶
func (*ListDependenciesResponse) ProtoMessage()
func (*ListDependenciesResponse) ProtoReflect ¶
func (x *ListDependenciesResponse) ProtoReflect() protoreflect.Message
func (*ListDependenciesResponse) Reset ¶
func (x *ListDependenciesResponse) Reset()
func (*ListDependenciesResponse) String ¶
func (x *ListDependenciesResponse) String() string
type ListFilesRequest ¶
type ListFilesRequest struct {
// service is the Codefly service name, optionally scoped by module in callers.
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
// path is a workspace- or service-relative filesystem path.
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // optional: subdirectory (empty = root)
// extensions restrict file results to the listed suffixes.
Extensions []string `protobuf:"bytes,3,rep,name=extensions,proto3" json:"extensions,omitempty"` // optional: filter by extension (e.g. ".go", ".py")
// recursive includes nested directories when true.
Recursive bool `protobuf:"varint,4,opt,name=recursive,proto3" json:"recursive,omitempty"`
// contains filtered or unexported fields
}
ListFilesRequest carries optional filters for listing files.
func (*ListFilesRequest) Descriptor
deprecated
func (*ListFilesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListFilesRequest.ProtoReflect.Descriptor instead.
func (*ListFilesRequest) GetExtensions ¶
func (x *ListFilesRequest) GetExtensions() []string
func (*ListFilesRequest) GetPath ¶
func (x *ListFilesRequest) GetPath() string
func (*ListFilesRequest) GetRecursive ¶
func (x *ListFilesRequest) GetRecursive() bool
func (*ListFilesRequest) GetService ¶
func (x *ListFilesRequest) GetService() string
func (*ListFilesRequest) ProtoMessage ¶
func (*ListFilesRequest) ProtoMessage()
func (*ListFilesRequest) ProtoReflect ¶
func (x *ListFilesRequest) ProtoReflect() protoreflect.Message
func (*ListFilesRequest) Reset ¶
func (x *ListFilesRequest) Reset()
func (*ListFilesRequest) String ¶
func (x *ListFilesRequest) String() string
type ListFilesResponse ¶
type ListFilesResponse struct {
// files are files or directories under the requested service path.
Files []*FileInfo `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
// contains filtered or unexported fields
}
ListFilesResponse returns file metadata for paths matching the request filters.
func (*ListFilesResponse) Descriptor
deprecated
func (*ListFilesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListFilesResponse.ProtoReflect.Descriptor instead.
func (*ListFilesResponse) GetFiles ¶
func (x *ListFilesResponse) GetFiles() []*FileInfo
func (*ListFilesResponse) ProtoMessage ¶
func (*ListFilesResponse) ProtoMessage()
func (*ListFilesResponse) ProtoReflect ¶
func (x *ListFilesResponse) ProtoReflect() protoreflect.Message
func (*ListFilesResponse) Reset ¶
func (x *ListFilesResponse) Reset()
func (*ListFilesResponse) String ¶
func (x *ListFilesResponse) String() string
type ListServicesRequest ¶
type ListServicesRequest struct {
// contains filtered or unexported fields
}
ListServicesRequest carries optional filters for listing services.
func (*ListServicesRequest) Descriptor
deprecated
func (*ListServicesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListServicesRequest.ProtoReflect.Descriptor instead.
func (*ListServicesRequest) ProtoMessage ¶
func (*ListServicesRequest) ProtoMessage()
func (*ListServicesRequest) ProtoReflect ¶
func (x *ListServicesRequest) ProtoReflect() protoreflect.Message
func (*ListServicesRequest) Reset ¶
func (x *ListServicesRequest) Reset()
func (*ListServicesRequest) String ¶
func (x *ListServicesRequest) String() string
type ListServicesResponse ¶
type ListServicesResponse struct {
// services are known Codefly services and libraries in the workspace.
Services []*ServiceInfo `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
// contains filtered or unexported fields
}
ListServicesResponse returns the services the gateway can route to.
func (*ListServicesResponse) Descriptor
deprecated
func (*ListServicesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListServicesResponse.ProtoReflect.Descriptor instead.
func (*ListServicesResponse) GetServices ¶
func (x *ListServicesResponse) GetServices() []*ServiceInfo
func (*ListServicesResponse) ProtoMessage ¶
func (*ListServicesResponse) ProtoMessage()
func (*ListServicesResponse) ProtoReflect ¶
func (x *ListServicesResponse) ProtoReflect() protoreflect.Message
func (*ListServicesResponse) Reset ¶
func (x *ListServicesResponse) Reset()
func (*ListServicesResponse) String ¶
func (x *ListServicesResponse) String() string
type ListTerminalsRequest ¶ added in v0.2.12
type ListTerminalsRequest struct {
// contains filtered or unexported fields
}
ListTerminalsRequest requests every terminal visible to this gateway session.
func (*ListTerminalsRequest) Descriptor
deprecated
added in
v0.2.12
func (*ListTerminalsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListTerminalsRequest.ProtoReflect.Descriptor instead.
func (*ListTerminalsRequest) ProtoMessage ¶ added in v0.2.12
func (*ListTerminalsRequest) ProtoMessage()
func (*ListTerminalsRequest) ProtoReflect ¶ added in v0.2.12
func (x *ListTerminalsRequest) ProtoReflect() protoreflect.Message
func (*ListTerminalsRequest) Reset ¶ added in v0.2.12
func (x *ListTerminalsRequest) Reset()
func (*ListTerminalsRequest) String ¶ added in v0.2.12
func (x *ListTerminalsRequest) String() string
type ListTerminalsResponse ¶ added in v0.2.12
type ListTerminalsResponse struct {
// terminals contains one entry per visible terminal session.
Terminals []*TerminalInfo `protobuf:"bytes,1,rep,name=terminals,proto3" json:"terminals,omitempty"`
// contains filtered or unexported fields
}
ListTerminalsResponse returns the terminal sessions visible to the caller.
func (*ListTerminalsResponse) Descriptor
deprecated
added in
v0.2.12
func (*ListTerminalsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListTerminalsResponse.ProtoReflect.Descriptor instead.
func (*ListTerminalsResponse) GetTerminals ¶ added in v0.2.12
func (x *ListTerminalsResponse) GetTerminals() []*TerminalInfo
func (*ListTerminalsResponse) ProtoMessage ¶ added in v0.2.12
func (*ListTerminalsResponse) ProtoMessage()
func (*ListTerminalsResponse) ProtoReflect ¶ added in v0.2.12
func (x *ListTerminalsResponse) ProtoReflect() protoreflect.Message
func (*ListTerminalsResponse) Reset ¶ added in v0.2.12
func (x *ListTerminalsResponse) Reset()
func (*ListTerminalsResponse) String ¶ added in v0.2.12
func (x *ListTerminalsResponse) String() string
type MoveFileRequest ¶
type MoveFileRequest struct {
// service is the Codefly service name, optionally scoped by module in callers.
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
// old_path is the current service-relative path before a move.
OldPath string `protobuf:"bytes,2,opt,name=old_path,json=oldPath,proto3" json:"old_path,omitempty"`
// new_path is the desired service-relative path after a move.
NewPath string `protobuf:"bytes,3,opt,name=new_path,json=newPath,proto3" json:"new_path,omitempty"`
// update_imports asks the language tooling to rewrite imports after a move.
UpdateImports bool `protobuf:"varint,4,opt,name=update_imports,json=updateImports,proto3" json:"update_imports,omitempty"`
// contains filtered or unexported fields
}
MoveFileRequest renames or moves a file within one service tree.
func (*MoveFileRequest) Descriptor
deprecated
func (*MoveFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use MoveFileRequest.ProtoReflect.Descriptor instead.
func (*MoveFileRequest) GetNewPath ¶
func (x *MoveFileRequest) GetNewPath() string
func (*MoveFileRequest) GetOldPath ¶
func (x *MoveFileRequest) GetOldPath() string
func (*MoveFileRequest) GetService ¶
func (x *MoveFileRequest) GetService() string
func (*MoveFileRequest) GetUpdateImports ¶
func (x *MoveFileRequest) GetUpdateImports() bool
func (*MoveFileRequest) ProtoMessage ¶
func (*MoveFileRequest) ProtoMessage()
func (*MoveFileRequest) ProtoReflect ¶
func (x *MoveFileRequest) ProtoReflect() protoreflect.Message
func (*MoveFileRequest) Reset ¶
func (x *MoveFileRequest) Reset()
func (*MoveFileRequest) String ¶
func (x *MoveFileRequest) String() string
type MoveFileResponse ¶
type MoveFileResponse struct {
// success is true when the requested operation completed successfully.
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
// error explains why the operation failed; empty means success at this layer.
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
// updated_files lists files changed as a side effect of import rewriting.
UpdatedFiles []string `protobuf:"bytes,3,rep,name=updated_files,json=updatedFiles,proto3" json:"updated_files,omitempty"`
// contains filtered or unexported fields
}
MoveFileResponse reports the move and any files rewritten because imports changed.
func (*MoveFileResponse) Descriptor
deprecated
func (*MoveFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use MoveFileResponse.ProtoReflect.Descriptor instead.
func (*MoveFileResponse) GetError ¶
func (x *MoveFileResponse) GetError() string
func (*MoveFileResponse) GetSuccess ¶
func (x *MoveFileResponse) GetSuccess() bool
func (*MoveFileResponse) GetUpdatedFiles ¶
func (x *MoveFileResponse) GetUpdatedFiles() []string
func (*MoveFileResponse) ProtoMessage ¶
func (*MoveFileResponse) ProtoMessage()
func (*MoveFileResponse) ProtoReflect ¶
func (x *MoveFileResponse) ProtoReflect() protoreflect.Message
func (*MoveFileResponse) Reset ¶
func (x *MoveFileResponse) Reset()
func (*MoveFileResponse) String ¶
func (x *MoveFileResponse) String() string
type OpenTerminalRequest ¶ added in v0.2.12
type OpenTerminalRequest struct {
// shell to run; empty = $SHELL else /bin/sh.
Shell string `protobuf:"bytes,1,opt,name=shell,proto3" json:"shell,omitempty"`
// working_dir relative to the gateway root; empty = the root itself.
WorkingDir string `protobuf:"bytes,2,opt,name=working_dir,json=workingDir,proto3" json:"working_dir,omitempty"`
// initial PTY size; 0 = server default.
Rows uint32 `protobuf:"varint,3,opt,name=rows,proto3" json:"rows,omitempty"`
// cols is the initial terminal width; 0 selects the server default.
Cols uint32 `protobuf:"varint,4,opt,name=cols,proto3" json:"cols,omitempty"`
// contains filtered or unexported fields
}
OpenTerminalRequest spawns a shell in the gateway's working directory.
func (*OpenTerminalRequest) Descriptor
deprecated
added in
v0.2.12
func (*OpenTerminalRequest) Descriptor() ([]byte, []int)
Deprecated: Use OpenTerminalRequest.ProtoReflect.Descriptor instead.
func (*OpenTerminalRequest) GetCols ¶ added in v0.2.12
func (x *OpenTerminalRequest) GetCols() uint32
func (*OpenTerminalRequest) GetRows ¶ added in v0.2.12
func (x *OpenTerminalRequest) GetRows() uint32
func (*OpenTerminalRequest) GetShell ¶ added in v0.2.12
func (x *OpenTerminalRequest) GetShell() string
func (*OpenTerminalRequest) GetWorkingDir ¶ added in v0.2.12
func (x *OpenTerminalRequest) GetWorkingDir() string
func (*OpenTerminalRequest) ProtoMessage ¶ added in v0.2.12
func (*OpenTerminalRequest) ProtoMessage()
func (*OpenTerminalRequest) ProtoReflect ¶ added in v0.2.12
func (x *OpenTerminalRequest) ProtoReflect() protoreflect.Message
func (*OpenTerminalRequest) Reset ¶ added in v0.2.12
func (x *OpenTerminalRequest) Reset()
func (*OpenTerminalRequest) String ¶ added in v0.2.12
func (x *OpenTerminalRequest) String() string
type OpenTerminalResponse ¶ added in v0.2.12
type OpenTerminalResponse struct {
// terminal_id is the opaque identifier used by attach, resize, and close calls.
TerminalId string `protobuf:"bytes,1,opt,name=terminal_id,json=terminalId,proto3" json:"terminal_id,omitempty"`
// shell is the resolved shell executable selected by the server.
Shell string `protobuf:"bytes,2,opt,name=shell,proto3" json:"shell,omitempty"`
// working_dir is the resolved directory in which the shell was started.
WorkingDir string `protobuf:"bytes,3,opt,name=working_dir,json=workingDir,proto3" json:"working_dir,omitempty"`
// contains filtered or unexported fields
}
OpenTerminalResponse identifies the spawned terminal.
func (*OpenTerminalResponse) Descriptor
deprecated
added in
v0.2.12
func (*OpenTerminalResponse) Descriptor() ([]byte, []int)
Deprecated: Use OpenTerminalResponse.ProtoReflect.Descriptor instead.
func (*OpenTerminalResponse) GetShell ¶ added in v0.2.12
func (x *OpenTerminalResponse) GetShell() string
func (*OpenTerminalResponse) GetTerminalId ¶ added in v0.2.12
func (x *OpenTerminalResponse) GetTerminalId() string
func (*OpenTerminalResponse) GetWorkingDir ¶ added in v0.2.12
func (x *OpenTerminalResponse) GetWorkingDir() string
func (*OpenTerminalResponse) ProtoMessage ¶ added in v0.2.12
func (*OpenTerminalResponse) ProtoMessage()
func (*OpenTerminalResponse) ProtoReflect ¶ added in v0.2.12
func (x *OpenTerminalResponse) ProtoReflect() protoreflect.Message
func (*OpenTerminalResponse) Reset ¶ added in v0.2.12
func (x *OpenTerminalResponse) Reset()
func (*OpenTerminalResponse) String ¶ added in v0.2.12
func (x *OpenTerminalResponse) String() string
type PackageInfo ¶
type PackageInfo struct {
// name is the language-level package or module name.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // e.g. "github.com/codefly-dev/mind/pkg/run"
// relative_path is the package directory relative to the service root.
RelativePath string `protobuf:"bytes,2,opt,name=relative_path,json=relativePath,proto3" json:"relative_path,omitempty"` // e.g. "pkg/run"
// files are source files that belong to this package.
Files []string `protobuf:"bytes,3,rep,name=files,proto3" json:"files,omitempty"` // files in the package
// imports are direct imports used by files in this package.
Imports []string `protobuf:"bytes,4,rep,name=imports,proto3" json:"imports,omitempty"` // direct imports
// doc is package-level documentation extracted from source comments.
Doc string `protobuf:"bytes,5,opt,name=doc,proto3" json:"doc,omitempty"` // package doc comment
// contains filtered or unexported fields
}
PackageInfo describes a single package/module within the project.
func (*PackageInfo) Descriptor
deprecated
func (*PackageInfo) Descriptor() ([]byte, []int)
Deprecated: Use PackageInfo.ProtoReflect.Descriptor instead.
func (*PackageInfo) GetDoc ¶
func (x *PackageInfo) GetDoc() string
func (*PackageInfo) GetFiles ¶
func (x *PackageInfo) GetFiles() []string
func (*PackageInfo) GetImports ¶
func (x *PackageInfo) GetImports() []string
func (*PackageInfo) GetName ¶
func (x *PackageInfo) GetName() string
func (*PackageInfo) GetRelativePath ¶
func (x *PackageInfo) GetRelativePath() string
func (*PackageInfo) ProtoMessage ¶
func (*PackageInfo) ProtoMessage()
func (*PackageInfo) ProtoReflect ¶
func (x *PackageInfo) ProtoReflect() protoreflect.Message
func (*PackageInfo) Reset ¶
func (x *PackageInfo) Reset()
func (*PackageInfo) String ¶
func (x *PackageInfo) String() string
type PluginCheck ¶
type PluginCheck struct {
// contains filtered or unexported fields
}
PluginCheck delegates to the plugin's Build/Test/Lint RPC (no parameters needed).
func (*PluginCheck) Descriptor
deprecated
func (*PluginCheck) Descriptor() ([]byte, []int)
Deprecated: Use PluginCheck.ProtoReflect.Descriptor instead.
func (*PluginCheck) ProtoMessage ¶
func (*PluginCheck) ProtoMessage()
func (*PluginCheck) ProtoReflect ¶
func (x *PluginCheck) ProtoReflect() protoreflect.Message
func (*PluginCheck) Reset ¶
func (x *PluginCheck) Reset()
func (*PluginCheck) String ¶
func (x *PluginCheck) String() string
type ReadFileRequest ¶
type ReadFileRequest struct {
// service is the Codefly service name, optionally scoped by module in callers.
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
// path is a workspace- or service-relative filesystem path.
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // relative to service root
// contains filtered or unexported fields
}
ReadFileRequest identifies a file to read from one service source tree.
func (*ReadFileRequest) Descriptor
deprecated
func (*ReadFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadFileRequest.ProtoReflect.Descriptor instead.
func (*ReadFileRequest) GetPath ¶
func (x *ReadFileRequest) GetPath() string
func (*ReadFileRequest) GetService ¶
func (x *ReadFileRequest) GetService() string
func (*ReadFileRequest) ProtoMessage ¶
func (*ReadFileRequest) ProtoMessage()
func (*ReadFileRequest) ProtoReflect ¶
func (x *ReadFileRequest) ProtoReflect() protoreflect.Message
func (*ReadFileRequest) Reset ¶
func (x *ReadFileRequest) Reset()
func (*ReadFileRequest) String ¶
func (x *ReadFileRequest) String() string
type ReadFileResponse ¶
type ReadFileResponse struct {
// content is the complete file body; it is empty when exists is false.
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
// exists reports whether the requested file or resource was found.
Exists bool `protobuf:"varint,2,opt,name=exists,proto3" json:"exists,omitempty"`
// contains filtered or unexported fields
}
ReadFileResponse returns file content when the requested path exists.
func (*ReadFileResponse) Descriptor
deprecated
func (*ReadFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadFileResponse.ProtoReflect.Descriptor instead.
func (*ReadFileResponse) GetContent ¶
func (x *ReadFileResponse) GetContent() string
func (*ReadFileResponse) GetExists ¶
func (x *ReadFileResponse) GetExists() bool
func (*ReadFileResponse) ProtoMessage ¶
func (*ReadFileResponse) ProtoMessage()
func (*ReadFileResponse) ProtoReflect ¶
func (x *ReadFileResponse) ProtoReflect() protoreflect.Message
func (*ReadFileResponse) Reset ¶
func (x *ReadFileResponse) Reset()
func (*ReadFileResponse) String ¶
func (x *ReadFileResponse) String() string
type RemoveDependencyRequest ¶
type RemoveDependencyRequest struct {
// service is the Codefly service name, optionally scoped by module in callers.
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
// package_name is the package or dependency identifier used by the native manager.
PackageName string `protobuf:"bytes,2,opt,name=package_name,json=packageName,proto3" json:"package_name,omitempty"`
// contains filtered or unexported fields
}
RemoveDependencyRequest identifies a package to remove through the native package manager.
func (*RemoveDependencyRequest) Descriptor
deprecated
func (*RemoveDependencyRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveDependencyRequest.ProtoReflect.Descriptor instead.
func (*RemoveDependencyRequest) GetPackageName ¶
func (x *RemoveDependencyRequest) GetPackageName() string
func (*RemoveDependencyRequest) GetService ¶
func (x *RemoveDependencyRequest) GetService() string
func (*RemoveDependencyRequest) ProtoMessage ¶
func (*RemoveDependencyRequest) ProtoMessage()
func (*RemoveDependencyRequest) ProtoReflect ¶
func (x *RemoveDependencyRequest) ProtoReflect() protoreflect.Message
func (*RemoveDependencyRequest) Reset ¶
func (x *RemoveDependencyRequest) Reset()
func (*RemoveDependencyRequest) String ¶
func (x *RemoveDependencyRequest) String() string
type RemoveDependencyResponse ¶
type RemoveDependencyResponse struct {
// success is true when the requested operation completed successfully.
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
// error explains why the operation failed; empty means success at this layer.
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
RemoveDependencyResponse reports whether the package manager removed the dependency.
func (*RemoveDependencyResponse) Descriptor
deprecated
func (*RemoveDependencyResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveDependencyResponse.ProtoReflect.Descriptor instead.
func (*RemoveDependencyResponse) GetError ¶
func (x *RemoveDependencyResponse) GetError() string
func (*RemoveDependencyResponse) GetSuccess ¶
func (x *RemoveDependencyResponse) GetSuccess() bool
func (*RemoveDependencyResponse) ProtoMessage ¶
func (*RemoveDependencyResponse) ProtoMessage()
func (*RemoveDependencyResponse) ProtoReflect ¶
func (x *RemoveDependencyResponse) ProtoReflect() protoreflect.Message
func (*RemoveDependencyResponse) Reset ¶
func (x *RemoveDependencyResponse) Reset()
func (*RemoveDependencyResponse) String ¶
func (x *RemoveDependencyResponse) String() string
type ResizeTerminalRequest ¶ added in v0.2.12
type ResizeTerminalRequest struct {
// terminal_id identifies the terminal whose PTY should be resized.
TerminalId string `protobuf:"bytes,1,opt,name=terminal_id,json=terminalId,proto3" json:"terminal_id,omitempty"`
// rows is the requested terminal height in character cells.
Rows uint32 `protobuf:"varint,2,opt,name=rows,proto3" json:"rows,omitempty"`
// cols is the requested terminal width in character cells.
Cols uint32 `protobuf:"varint,3,opt,name=cols,proto3" json:"cols,omitempty"`
// contains filtered or unexported fields
}
ResizeTerminalRequest changes the PTY dimensions of a running terminal.
func (*ResizeTerminalRequest) Descriptor
deprecated
added in
v0.2.12
func (*ResizeTerminalRequest) Descriptor() ([]byte, []int)
Deprecated: Use ResizeTerminalRequest.ProtoReflect.Descriptor instead.
func (*ResizeTerminalRequest) GetCols ¶ added in v0.2.12
func (x *ResizeTerminalRequest) GetCols() uint32
func (*ResizeTerminalRequest) GetRows ¶ added in v0.2.12
func (x *ResizeTerminalRequest) GetRows() uint32
func (*ResizeTerminalRequest) GetTerminalId ¶ added in v0.2.12
func (x *ResizeTerminalRequest) GetTerminalId() string
func (*ResizeTerminalRequest) ProtoMessage ¶ added in v0.2.12
func (*ResizeTerminalRequest) ProtoMessage()
func (*ResizeTerminalRequest) ProtoReflect ¶ added in v0.2.12
func (x *ResizeTerminalRequest) ProtoReflect() protoreflect.Message
func (*ResizeTerminalRequest) Reset ¶ added in v0.2.12
func (x *ResizeTerminalRequest) Reset()
func (*ResizeTerminalRequest) String ¶ added in v0.2.12
func (x *ResizeTerminalRequest) String() string
type ResizeTerminalResponse ¶ added in v0.2.12
type ResizeTerminalResponse struct {
// contains filtered or unexported fields
}
ResizeTerminalResponse confirms that the resize request was applied.
func (*ResizeTerminalResponse) Descriptor
deprecated
added in
v0.2.12
func (*ResizeTerminalResponse) Descriptor() ([]byte, []int)
Deprecated: Use ResizeTerminalResponse.ProtoReflect.Descriptor instead.
func (*ResizeTerminalResponse) ProtoMessage ¶ added in v0.2.12
func (*ResizeTerminalResponse) ProtoMessage()
func (*ResizeTerminalResponse) ProtoReflect ¶ added in v0.2.12
func (x *ResizeTerminalResponse) ProtoReflect() protoreflect.Message
func (*ResizeTerminalResponse) Reset ¶ added in v0.2.12
func (x *ResizeTerminalResponse) Reset()
func (*ResizeTerminalResponse) String ¶ added in v0.2.12
func (x *ResizeTerminalResponse) String() string
type RunChecksRequest ¶
type RunChecksRequest struct {
// service is the Codefly service name, optionally scoped by module in callers.
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
// checks are verification steps requested by the caller.
Checks []*Check `protobuf:"bytes,2,rep,name=checks,proto3" json:"checks,omitempty"`
// contains filtered or unexported fields
}
RunChecksRequest asks the gateway to run verification checks for one service.
func (*RunChecksRequest) Descriptor
deprecated
func (*RunChecksRequest) Descriptor() ([]byte, []int)
Deprecated: Use RunChecksRequest.ProtoReflect.Descriptor instead.
func (*RunChecksRequest) GetChecks ¶
func (x *RunChecksRequest) GetChecks() []*Check
func (*RunChecksRequest) GetService ¶
func (x *RunChecksRequest) GetService() string
func (*RunChecksRequest) ProtoMessage ¶
func (*RunChecksRequest) ProtoMessage()
func (*RunChecksRequest) ProtoReflect ¶
func (x *RunChecksRequest) ProtoReflect() protoreflect.Message
func (*RunChecksRequest) Reset ¶
func (x *RunChecksRequest) Reset()
func (*RunChecksRequest) String ¶
func (x *RunChecksRequest) String() string
type RunChecksResponse ¶
type RunChecksResponse struct {
// results are per-item outcomes returned by the operation.
Results []*CheckResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
// contains filtered or unexported fields
}
RunChecksResponse returns per-check outcomes.
func (*RunChecksResponse) Descriptor
deprecated
func (*RunChecksResponse) Descriptor() ([]byte, []int)
Deprecated: Use RunChecksResponse.ProtoReflect.Descriptor instead.
func (*RunChecksResponse) GetResults ¶
func (x *RunChecksResponse) GetResults() []*CheckResult
func (*RunChecksResponse) ProtoMessage ¶
func (*RunChecksResponse) ProtoMessage()
func (*RunChecksResponse) ProtoReflect ¶
func (x *RunChecksResponse) ProtoReflect() protoreflect.Message
func (*RunChecksResponse) Reset ¶
func (x *RunChecksResponse) Reset()
func (*RunChecksResponse) String ¶
func (x *RunChecksResponse) String() string
type RunCommandRequest ¶
type RunCommandRequest struct {
// service is the Codefly service name, optionally scoped by module in callers.
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
// command is the executable or shell command requested by the caller.
Command string `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"` // command to execute
// args are structured or command-line arguments supplied to the tool or command.
Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"` // arguments
// timeout_seconds caps command execution time; zero uses the default.
TimeoutSeconds int32 `protobuf:"varint,4,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds,omitempty"` // 0 = default (30s)
// working_dir is an optional service-relative directory for command execution.
WorkingDir string `protobuf:"bytes,5,opt,name=working_dir,json=workingDir,proto3" json:"working_dir,omitempty"` // optional: relative subdirectory
// stdin is optional bytes written to the process's standard input.
//
// CONTRACT (single-shot stdin): the gateway writes the full payload
// to the child's stdin, closes the stream, then reads stdout/stderr
// to completion. Not a bidirectional pipe — enough for batch
// protocols with a fixed upfront request list, e.g. feeding
// `git cat-file --batch` a list of object names.
Stdin []byte `protobuf:"bytes,6,opt,name=stdin,proto3" json:"stdin,omitempty"`
// contains filtered or unexported fields
}
RunCommandRequest asks the gateway to run a command in a service context.
func (*RunCommandRequest) Descriptor
deprecated
func (*RunCommandRequest) Descriptor() ([]byte, []int)
Deprecated: Use RunCommandRequest.ProtoReflect.Descriptor instead.
func (*RunCommandRequest) GetArgs ¶
func (x *RunCommandRequest) GetArgs() []string
func (*RunCommandRequest) GetCommand ¶
func (x *RunCommandRequest) GetCommand() string
func (*RunCommandRequest) GetService ¶
func (x *RunCommandRequest) GetService() string
func (*RunCommandRequest) GetStdin ¶ added in v0.2.13
func (x *RunCommandRequest) GetStdin() []byte
func (*RunCommandRequest) GetTimeoutSeconds ¶
func (x *RunCommandRequest) GetTimeoutSeconds() int32
func (*RunCommandRequest) GetWorkingDir ¶
func (x *RunCommandRequest) GetWorkingDir() string
func (*RunCommandRequest) ProtoMessage ¶
func (*RunCommandRequest) ProtoMessage()
func (*RunCommandRequest) ProtoReflect ¶
func (x *RunCommandRequest) ProtoReflect() protoreflect.Message
func (*RunCommandRequest) Reset ¶
func (x *RunCommandRequest) Reset()
func (*RunCommandRequest) String ¶
func (x *RunCommandRequest) String() string
type RunCommandResponse ¶
type RunCommandResponse struct {
// exit_code is the process exit status returned by the operating system.
ExitCode int32 `protobuf:"varint,1,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
// stdout is the process standard output stream.
Stdout string `protobuf:"bytes,2,opt,name=stdout,proto3" json:"stdout,omitempty"`
// stderr is the process standard error stream.
Stderr string `protobuf:"bytes,3,opt,name=stderr,proto3" json:"stderr,omitempty"`
// contains filtered or unexported fields
}
RunCommandResponse returns process exit status and captured streams.
func (*RunCommandResponse) Descriptor
deprecated
func (*RunCommandResponse) Descriptor() ([]byte, []int)
Deprecated: Use RunCommandResponse.ProtoReflect.Descriptor instead.
func (*RunCommandResponse) GetExitCode ¶
func (x *RunCommandResponse) GetExitCode() int32
func (*RunCommandResponse) GetStderr ¶
func (x *RunCommandResponse) GetStderr() string
func (*RunCommandResponse) GetStdout ¶
func (x *RunCommandResponse) GetStdout() string
func (*RunCommandResponse) ProtoMessage ¶
func (*RunCommandResponse) ProtoMessage()
func (*RunCommandResponse) ProtoReflect ¶
func (x *RunCommandResponse) ProtoReflect() protoreflect.Message
func (*RunCommandResponse) Reset ¶
func (x *RunCommandResponse) Reset()
func (*RunCommandResponse) String ¶
func (x *RunCommandResponse) String() string
type SearchMatch ¶
type SearchMatch struct {
// file is a workspace- or service-relative source file path.
File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` // relative path
// line is the 1-based source line number.
Line int32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"` // 1-based line number
// text is the matched source line.
Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"` // the matching line
// context_before contains lines immediately before the match.
ContextBefore []string `protobuf:"bytes,4,rep,name=context_before,json=contextBefore,proto3" json:"context_before,omitempty"`
// context_after contains lines immediately after the match.
ContextAfter []string `protobuf:"bytes,5,rep,name=context_after,json=contextAfter,proto3" json:"context_after,omitempty"`
// contains filtered or unexported fields
}
SearchMatch identifies one matching line and optional surrounding context.
func (*SearchMatch) Descriptor
deprecated
func (*SearchMatch) Descriptor() ([]byte, []int)
Deprecated: Use SearchMatch.ProtoReflect.Descriptor instead.
func (*SearchMatch) GetContextAfter ¶
func (x *SearchMatch) GetContextAfter() []string
func (*SearchMatch) GetContextBefore ¶
func (x *SearchMatch) GetContextBefore() []string
func (*SearchMatch) GetFile ¶
func (x *SearchMatch) GetFile() string
func (*SearchMatch) GetLine ¶
func (x *SearchMatch) GetLine() int32
func (*SearchMatch) GetText ¶
func (x *SearchMatch) GetText() string
func (*SearchMatch) ProtoMessage ¶
func (*SearchMatch) ProtoMessage()
func (*SearchMatch) ProtoReflect ¶
func (x *SearchMatch) ProtoReflect() protoreflect.Message
func (*SearchMatch) Reset ¶
func (x *SearchMatch) Reset()
func (*SearchMatch) String ¶
func (x *SearchMatch) String() string
type SearchRequest ¶
type SearchRequest struct {
// service is the Codefly service name, optionally scoped by module in callers.
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
// pattern is the search expression or test filter requested by the caller.
Pattern string `protobuf:"bytes,2,opt,name=pattern,proto3" json:"pattern,omitempty"` // regex or literal pattern
// literal treats pattern as plain text instead of a regular expression.
Literal bool `protobuf:"varint,3,opt,name=literal,proto3" json:"literal,omitempty"` // if true, treat pattern as literal string
// case_insensitive makes matching ignore letter case.
CaseInsensitive bool `protobuf:"varint,4,opt,name=case_insensitive,json=caseInsensitive,proto3" json:"case_insensitive,omitempty"`
// path is a workspace- or service-relative filesystem path.
Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` // optional: restrict to subdirectory
// extensions restrict file results to the listed suffixes.
Extensions []string `protobuf:"bytes,6,rep,name=extensions,proto3" json:"extensions,omitempty"` // optional: filter by extension (e.g. ".go", ".py")
// exclude contains glob patterns to skip during the search.
Exclude []string `protobuf:"bytes,7,rep,name=exclude,proto3" json:"exclude,omitempty"` // optional: glob patterns to exclude
// max_results caps returned matches; zero uses the gateway default.
MaxResults int32 `protobuf:"varint,8,opt,name=max_results,json=maxResults,proto3" json:"max_results,omitempty"` // 0 = default (100)
// context_lines is the number of neighboring lines returned around each match.
ContextLines int32 `protobuf:"varint,9,opt,name=context_lines,json=contextLines,proto3" json:"context_lines,omitempty"` // lines of context around each match
// contains filtered or unexported fields
}
SearchRequest searches service files through the gateway.
func (*SearchRequest) Descriptor
deprecated
func (*SearchRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.
func (*SearchRequest) GetCaseInsensitive ¶
func (x *SearchRequest) GetCaseInsensitive() bool
func (*SearchRequest) GetContextLines ¶
func (x *SearchRequest) GetContextLines() int32
func (*SearchRequest) GetExclude ¶
func (x *SearchRequest) GetExclude() []string
func (*SearchRequest) GetExtensions ¶
func (x *SearchRequest) GetExtensions() []string
func (*SearchRequest) GetLiteral ¶
func (x *SearchRequest) GetLiteral() bool
func (*SearchRequest) GetMaxResults ¶
func (x *SearchRequest) GetMaxResults() int32
func (*SearchRequest) GetPath ¶
func (x *SearchRequest) GetPath() string
func (*SearchRequest) GetPattern ¶
func (x *SearchRequest) GetPattern() string
func (*SearchRequest) GetService ¶
func (x *SearchRequest) GetService() string
func (*SearchRequest) ProtoMessage ¶
func (*SearchRequest) ProtoMessage()
func (*SearchRequest) ProtoReflect ¶
func (x *SearchRequest) ProtoReflect() protoreflect.Message
func (*SearchRequest) Reset ¶
func (x *SearchRequest) Reset()
func (*SearchRequest) String ¶
func (x *SearchRequest) String() string
type SearchResponse ¶
type SearchResponse struct {
// matches are the search hits returned by the gateway.
Matches []*SearchMatch `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"`
// truncated is true when the response was capped before all data could be returned.
Truncated bool `protobuf:"varint,2,opt,name=truncated,proto3" json:"truncated,omitempty"`
// total_matches is the number of hits observed before truncation.
TotalMatches int32 `protobuf:"varint,3,opt,name=total_matches,json=totalMatches,proto3" json:"total_matches,omitempty"`
// contains filtered or unexported fields
}
SearchResponse returns matching source lines and truncation metadata.
func (*SearchResponse) Descriptor
deprecated
func (*SearchResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.
func (*SearchResponse) GetMatches ¶
func (x *SearchResponse) GetMatches() []*SearchMatch
func (*SearchResponse) GetTotalMatches ¶
func (x *SearchResponse) GetTotalMatches() int32
func (*SearchResponse) GetTruncated ¶
func (x *SearchResponse) GetTruncated() bool
func (*SearchResponse) ProtoMessage ¶
func (*SearchResponse) ProtoMessage()
func (*SearchResponse) ProtoReflect ¶
func (x *SearchResponse) ProtoReflect() protoreflect.Message
func (*SearchResponse) Reset ¶
func (x *SearchResponse) Reset()
func (*SearchResponse) String ¶
func (x *SearchResponse) String() string
type ServiceInfo ¶
type ServiceInfo struct {
// name is the Codefly service name.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// language is the implementation language detected for the service.
Language string `protobuf:"bytes,2,opt,name=language,proto3" json:"language,omitempty"` // "go", "rust", "node", etc.
// type distinguishes services, libraries, and other service-like resources.
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` // "library" | "service"
// port is the primary local port exposed through the gateway when known.
Port int32 `protobuf:"varint,7,opt,name=port,proto3" json:"port,omitempty"`
// contains filtered or unexported fields
}
ServiceInfo describes a service visible through the gateway.
func (*ServiceInfo) Descriptor
deprecated
func (*ServiceInfo) Descriptor() ([]byte, []int)
Deprecated: Use ServiceInfo.ProtoReflect.Descriptor instead.
func (*ServiceInfo) GetLanguage ¶
func (x *ServiceInfo) GetLanguage() string
func (*ServiceInfo) GetName ¶
func (x *ServiceInfo) GetName() string
func (*ServiceInfo) GetPort ¶
func (x *ServiceInfo) GetPort() int32
func (*ServiceInfo) GetType ¶
func (x *ServiceInfo) GetType() string
func (*ServiceInfo) ProtoMessage ¶
func (*ServiceInfo) ProtoMessage()
func (*ServiceInfo) ProtoReflect ¶
func (x *ServiceInfo) ProtoReflect() protoreflect.Message
func (*ServiceInfo) Reset ¶
func (x *ServiceInfo) Reset()
func (*ServiceInfo) String ¶
func (x *ServiceInfo) String() string
type SubscribeWorkspaceChangesRequest ¶ added in v0.2.24
type SubscribeWorkspaceChangesRequest struct {
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
After *WorkspaceChangeCursor `protobuf:"bytes,2,opt,name=after,proto3" json:"after,omitempty"`
// contains filtered or unexported fields
}
func (*SubscribeWorkspaceChangesRequest) Descriptor
deprecated
added in
v0.2.24
func (*SubscribeWorkspaceChangesRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubscribeWorkspaceChangesRequest.ProtoReflect.Descriptor instead.
func (*SubscribeWorkspaceChangesRequest) GetAfter ¶ added in v0.2.24
func (x *SubscribeWorkspaceChangesRequest) GetAfter() *WorkspaceChangeCursor
func (*SubscribeWorkspaceChangesRequest) GetService ¶ added in v0.2.24
func (x *SubscribeWorkspaceChangesRequest) GetService() string
func (*SubscribeWorkspaceChangesRequest) ProtoMessage ¶ added in v0.2.24
func (*SubscribeWorkspaceChangesRequest) ProtoMessage()
func (*SubscribeWorkspaceChangesRequest) ProtoReflect ¶ added in v0.2.24
func (x *SubscribeWorkspaceChangesRequest) ProtoReflect() protoreflect.Message
func (*SubscribeWorkspaceChangesRequest) Reset ¶ added in v0.2.24
func (x *SubscribeWorkspaceChangesRequest) Reset()
func (*SubscribeWorkspaceChangesRequest) String ¶ added in v0.2.24
func (x *SubscribeWorkspaceChangesRequest) String() string
type TerminalInfo ¶ added in v0.2.12
type TerminalInfo struct {
// terminal_id is the opaque identifier used by terminal operations.
TerminalId string `protobuf:"bytes,1,opt,name=terminal_id,json=terminalId,proto3" json:"terminal_id,omitempty"`
// shell is the executable running inside the terminal.
Shell string `protobuf:"bytes,2,opt,name=shell,proto3" json:"shell,omitempty"`
// working_dir is the directory in which the shell was started.
WorkingDir string `protobuf:"bytes,3,opt,name=working_dir,json=workingDir,proto3" json:"working_dir,omitempty"`
// status is either "running" or "exited".
Status string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
// contains filtered or unexported fields
}
TerminalInfo describes one terminal session without exposing its PTY stream.
func (*TerminalInfo) Descriptor
deprecated
added in
v0.2.12
func (*TerminalInfo) Descriptor() ([]byte, []int)
Deprecated: Use TerminalInfo.ProtoReflect.Descriptor instead.
func (*TerminalInfo) GetShell ¶ added in v0.2.12
func (x *TerminalInfo) GetShell() string
func (*TerminalInfo) GetStatus ¶ added in v0.2.12
func (x *TerminalInfo) GetStatus() string
func (*TerminalInfo) GetTerminalId ¶ added in v0.2.12
func (x *TerminalInfo) GetTerminalId() string
func (*TerminalInfo) GetWorkingDir ¶ added in v0.2.12
func (x *TerminalInfo) GetWorkingDir() string
func (*TerminalInfo) ProtoMessage ¶ added in v0.2.12
func (*TerminalInfo) ProtoMessage()
func (*TerminalInfo) ProtoReflect ¶ added in v0.2.12
func (x *TerminalInfo) ProtoReflect() protoreflect.Message
func (*TerminalInfo) Reset ¶ added in v0.2.12
func (x *TerminalInfo) Reset()
func (*TerminalInfo) String ¶ added in v0.2.12
func (x *TerminalInfo) String() string
type TerminalInput ¶ added in v0.2.12
type TerminalInput struct {
// terminal_id selects the terminal and is required on the first stream message.
TerminalId string `protobuf:"bytes,1,opt,name=terminal_id,json=terminalId,proto3" json:"terminal_id,omitempty"`
// data contains raw bytes to write to the terminal's PTY.
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
TerminalInput carries client keystrokes. The FIRST message on an Attach stream must set terminal_id to select the terminal.
func (*TerminalInput) Descriptor
deprecated
added in
v0.2.12
func (*TerminalInput) Descriptor() ([]byte, []int)
Deprecated: Use TerminalInput.ProtoReflect.Descriptor instead.
func (*TerminalInput) GetData ¶ added in v0.2.12
func (x *TerminalInput) GetData() []byte
func (*TerminalInput) GetTerminalId ¶ added in v0.2.12
func (x *TerminalInput) GetTerminalId() string
func (*TerminalInput) ProtoMessage ¶ added in v0.2.12
func (*TerminalInput) ProtoMessage()
func (*TerminalInput) ProtoReflect ¶ added in v0.2.12
func (x *TerminalInput) ProtoReflect() protoreflect.Message
func (*TerminalInput) Reset ¶ added in v0.2.12
func (x *TerminalInput) Reset()
func (*TerminalInput) String ¶ added in v0.2.12
func (x *TerminalInput) String() string
type TerminalOutput ¶ added in v0.2.12
type TerminalOutput struct {
// terminal_id identifies the terminal that produced this frame.
TerminalId string `protobuf:"bytes,1,opt,name=terminal_id,json=terminalId,proto3" json:"terminal_id,omitempty"`
// data contains raw PTY output bytes, including terminal escape sequences.
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
// done is true on the final frame after the child process exits.
Done bool `protobuf:"varint,3,opt,name=done,proto3" json:"done,omitempty"`
// exit_code is the child process exit status and is meaningful when done is true.
ExitCode int32 `protobuf:"varint,4,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
// contains filtered or unexported fields
}
TerminalOutput carries raw PTY bytes (escape codes intact). done marks the final frame after the child exits.
func (*TerminalOutput) Descriptor
deprecated
added in
v0.2.12
func (*TerminalOutput) Descriptor() ([]byte, []int)
Deprecated: Use TerminalOutput.ProtoReflect.Descriptor instead.
func (*TerminalOutput) GetData ¶ added in v0.2.12
func (x *TerminalOutput) GetData() []byte
func (*TerminalOutput) GetDone ¶ added in v0.2.12
func (x *TerminalOutput) GetDone() bool
func (*TerminalOutput) GetExitCode ¶ added in v0.2.12
func (x *TerminalOutput) GetExitCode() int32
func (*TerminalOutput) GetTerminalId ¶ added in v0.2.12
func (x *TerminalOutput) GetTerminalId() string
func (*TerminalOutput) ProtoMessage ¶ added in v0.2.12
func (*TerminalOutput) ProtoMessage()
func (*TerminalOutput) ProtoReflect ¶ added in v0.2.12
func (x *TerminalOutput) ProtoReflect() protoreflect.Message
func (*TerminalOutput) Reset ¶ added in v0.2.12
func (x *TerminalOutput) Reset()
func (*TerminalOutput) String ¶ added in v0.2.12
func (x *TerminalOutput) String() string
type TestRequest ¶
type TestRequest struct {
// service is the Codefly service name, optionally scoped by module in callers.
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
// contains filtered or unexported fields
}
TestRequest asks the gateway to run the service tests.
func (*TestRequest) Descriptor
deprecated
func (*TestRequest) Descriptor() ([]byte, []int)
Deprecated: Use TestRequest.ProtoReflect.Descriptor instead.
func (*TestRequest) GetService ¶
func (x *TestRequest) GetService() string
func (*TestRequest) ProtoMessage ¶
func (*TestRequest) ProtoMessage()
func (*TestRequest) ProtoReflect ¶
func (x *TestRequest) ProtoReflect() protoreflect.Message
func (*TestRequest) Reset ¶
func (x *TestRequest) Reset()
func (*TestRequest) String ¶
func (x *TestRequest) String() string
type TestResponse ¶
type TestResponse struct {
// success is true when the requested operation completed successfully.
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
// output is raw command, build, lint, or test output retained for diagnosis.
Output string `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"` // raw test output
// tests_run is the total number of tests executed.
TestsRun int32 `protobuf:"varint,3,opt,name=tests_run,json=testsRun,proto3" json:"tests_run,omitempty"`
// tests_passed is the number of tests that passed.
TestsPassed int32 `protobuf:"varint,4,opt,name=tests_passed,json=testsPassed,proto3" json:"tests_passed,omitempty"`
// tests_failed is the number of tests that failed.
TestsFailed int32 `protobuf:"varint,5,opt,name=tests_failed,json=testsFailed,proto3" json:"tests_failed,omitempty"`
// tests_skipped is the number of tests skipped by the runner.
TestsSkipped int32 `protobuf:"varint,6,opt,name=tests_skipped,json=testsSkipped,proto3" json:"tests_skipped,omitempty"`
// coverage_pct is the overall coverage percentage when available.
CoveragePct float32 `protobuf:"fixed32,7,opt,name=coverage_pct,json=coveragePct,proto3" json:"coverage_pct,omitempty"`
// failures are concise failing test names or messages.
Failures []string `protobuf:"bytes,8,rep,name=failures,proto3" json:"failures,omitempty"`
// contains filtered or unexported fields
}
TestResponse returns service test counts and raw runner output.
func (*TestResponse) Descriptor
deprecated
func (*TestResponse) Descriptor() ([]byte, []int)
Deprecated: Use TestResponse.ProtoReflect.Descriptor instead.
func (*TestResponse) GetCoveragePct ¶ added in v0.1.157
func (x *TestResponse) GetCoveragePct() float32
func (*TestResponse) GetFailures ¶ added in v0.1.157
func (x *TestResponse) GetFailures() []string
func (*TestResponse) GetOutput ¶
func (x *TestResponse) GetOutput() string
func (*TestResponse) GetSuccess ¶
func (x *TestResponse) GetSuccess() bool
func (*TestResponse) GetTestsFailed ¶
func (x *TestResponse) GetTestsFailed() int32
func (*TestResponse) GetTestsPassed ¶
func (x *TestResponse) GetTestsPassed() int32
func (*TestResponse) GetTestsRun ¶
func (x *TestResponse) GetTestsRun() int32
func (*TestResponse) GetTestsSkipped ¶ added in v0.1.157
func (x *TestResponse) GetTestsSkipped() int32
func (*TestResponse) ProtoMessage ¶
func (*TestResponse) ProtoMessage()
func (*TestResponse) ProtoReflect ¶
func (x *TestResponse) ProtoReflect() protoreflect.Message
func (*TestResponse) Reset ¶
func (x *TestResponse) Reset()
func (*TestResponse) String ¶
func (x *TestResponse) String() string
type UnimplementedGatewayServer ¶
type UnimplementedGatewayServer struct{}
UnimplementedGatewayServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedGatewayServer) AddDependency ¶
func (UnimplementedGatewayServer) AddDependency(context.Context, *AddDependencyRequest) (*AddDependencyResponse, error)
func (UnimplementedGatewayServer) ApplyEdit ¶
func (UnimplementedGatewayServer) ApplyEdit(context.Context, *ApplyEditRequest) (*ApplyEditResponse, error)
func (UnimplementedGatewayServer) AttachTerminal ¶ added in v0.2.12
func (UnimplementedGatewayServer) AttachTerminal(grpc.BidiStreamingServer[TerminalInput, TerminalOutput]) error
func (UnimplementedGatewayServer) BatchApplyEdits ¶
func (UnimplementedGatewayServer) BatchApplyEdits(context.Context, *BatchApplyEditsRequest) (*BatchApplyEditsResponse, error)
func (UnimplementedGatewayServer) Build ¶
func (UnimplementedGatewayServer) Build(context.Context, *BuildRequest) (*BuildResponse, error)
func (UnimplementedGatewayServer) CloseTerminal ¶ added in v0.2.12
func (UnimplementedGatewayServer) CloseTerminal(context.Context, *CloseTerminalRequest) (*CloseTerminalResponse, error)
func (UnimplementedGatewayServer) CreateFile ¶
func (UnimplementedGatewayServer) CreateFile(context.Context, *CreateFileRequest) (*CreateFileResponse, error)
func (UnimplementedGatewayServer) DeleteFile ¶
func (UnimplementedGatewayServer) DeleteFile(context.Context, *DeleteFileRequest) (*DeleteFileResponse, error)
func (UnimplementedGatewayServer) Fix ¶
func (UnimplementedGatewayServer) Fix(context.Context, *FixRequest) (*FixResponse, error)
func (UnimplementedGatewayServer) GetProjectInfo ¶
func (UnimplementedGatewayServer) GetProjectInfo(context.Context, *GetProjectInfoRequest) (*GetProjectInfoResponse, error)
func (UnimplementedGatewayServer) GitCommit ¶
func (UnimplementedGatewayServer) GitCommit(context.Context, *GitCommitRequest) (*GitCommitResponse, error)
func (UnimplementedGatewayServer) GitDiff ¶
func (UnimplementedGatewayServer) GitDiff(context.Context, *GitDiffRequest) (*GitDiffResponse, error)
func (UnimplementedGatewayServer) GitLog ¶
func (UnimplementedGatewayServer) GitLog(context.Context, *GitLogRequest) (*GitLogResponse, error)
func (UnimplementedGatewayServer) GitStatus ¶
func (UnimplementedGatewayServer) GitStatus(context.Context, *GitStatusRequest) (*GitStatusResponse, error)
func (UnimplementedGatewayServer) Lint ¶
func (UnimplementedGatewayServer) Lint(context.Context, *LintRequest) (*LintResponse, error)
func (UnimplementedGatewayServer) ListAllCommands ¶
func (UnimplementedGatewayServer) ListAllCommands(context.Context, *ListAllCommandsRequest) (*ListAllCommandsResponse, error)
func (UnimplementedGatewayServer) ListDependencies ¶
func (UnimplementedGatewayServer) ListDependencies(context.Context, *ListDependenciesRequest) (*ListDependenciesResponse, error)
func (UnimplementedGatewayServer) ListFiles ¶
func (UnimplementedGatewayServer) ListFiles(context.Context, *ListFilesRequest) (*ListFilesResponse, error)
func (UnimplementedGatewayServer) ListServices ¶
func (UnimplementedGatewayServer) ListServices(context.Context, *ListServicesRequest) (*ListServicesResponse, error)
func (UnimplementedGatewayServer) ListTerminals ¶ added in v0.2.12
func (UnimplementedGatewayServer) ListTerminals(context.Context, *ListTerminalsRequest) (*ListTerminalsResponse, error)
func (UnimplementedGatewayServer) MoveFile ¶
func (UnimplementedGatewayServer) MoveFile(context.Context, *MoveFileRequest) (*MoveFileResponse, error)
func (UnimplementedGatewayServer) OpenTerminal ¶ added in v0.2.12
func (UnimplementedGatewayServer) OpenTerminal(context.Context, *OpenTerminalRequest) (*OpenTerminalResponse, error)
func (UnimplementedGatewayServer) ReadFile ¶
func (UnimplementedGatewayServer) ReadFile(context.Context, *ReadFileRequest) (*ReadFileResponse, error)
func (UnimplementedGatewayServer) RemoveDependency ¶
func (UnimplementedGatewayServer) RemoveDependency(context.Context, *RemoveDependencyRequest) (*RemoveDependencyResponse, error)
func (UnimplementedGatewayServer) ResizeTerminal ¶ added in v0.2.12
func (UnimplementedGatewayServer) ResizeTerminal(context.Context, *ResizeTerminalRequest) (*ResizeTerminalResponse, error)
func (UnimplementedGatewayServer) RunChecks ¶
func (UnimplementedGatewayServer) RunChecks(context.Context, *RunChecksRequest) (*RunChecksResponse, error)
func (UnimplementedGatewayServer) RunCommand ¶
func (UnimplementedGatewayServer) RunCommand(context.Context, *RunCommandRequest) (*RunCommandResponse, error)
func (UnimplementedGatewayServer) Search ¶
func (UnimplementedGatewayServer) Search(context.Context, *SearchRequest) (*SearchResponse, error)
func (UnimplementedGatewayServer) SubscribeWorkspaceChanges ¶ added in v0.2.24
func (UnimplementedGatewayServer) SubscribeWorkspaceChanges(*SubscribeWorkspaceChangesRequest, grpc.ServerStreamingServer[WorkspaceChangeEvent]) error
func (UnimplementedGatewayServer) Test ¶
func (UnimplementedGatewayServer) Test(context.Context, *TestRequest) (*TestResponse, error)
func (UnimplementedGatewayServer) WriteFile ¶
func (UnimplementedGatewayServer) WriteFile(context.Context, *WriteFileRequest) (*WriteFileResponse, error)
type UnsafeGatewayServer ¶
type UnsafeGatewayServer interface {
// contains filtered or unexported methods
}
UnsafeGatewayServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GatewayServer will result in compilation errors.
type WorkspaceChange ¶ added in v0.2.24
type WorkspaceChange struct {
Operation WorkspaceChangeOperation `protobuf:"varint,1,opt,name=operation,proto3,enum=mind.gateway.v1.WorkspaceChangeOperation" json:"operation,omitempty"`
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
PreviousPath string `protobuf:"bytes,3,opt,name=previous_path,json=previousPath,proto3" json:"previous_path,omitempty"`
Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"`
// contains filtered or unexported fields
}
WorkspaceChange contains metadata only. Source bytes remain behind ReadFile and version-aware Gateway operations.
func (*WorkspaceChange) Descriptor
deprecated
added in
v0.2.24
func (*WorkspaceChange) Descriptor() ([]byte, []int)
Deprecated: Use WorkspaceChange.ProtoReflect.Descriptor instead.
func (*WorkspaceChange) GetOperation ¶ added in v0.2.24
func (x *WorkspaceChange) GetOperation() WorkspaceChangeOperation
func (*WorkspaceChange) GetPath ¶ added in v0.2.24
func (x *WorkspaceChange) GetPath() string
func (*WorkspaceChange) GetPreviousPath ¶ added in v0.2.24
func (x *WorkspaceChange) GetPreviousPath() string
func (*WorkspaceChange) GetReason ¶ added in v0.2.24
func (x *WorkspaceChange) GetReason() string
func (*WorkspaceChange) ProtoMessage ¶ added in v0.2.24
func (*WorkspaceChange) ProtoMessage()
func (*WorkspaceChange) ProtoReflect ¶ added in v0.2.24
func (x *WorkspaceChange) ProtoReflect() protoreflect.Message
func (*WorkspaceChange) Reset ¶ added in v0.2.24
func (x *WorkspaceChange) Reset()
func (*WorkspaceChange) String ¶ added in v0.2.24
func (x *WorkspaceChange) String() string
type WorkspaceChangeCursor ¶ added in v0.2.24
type WorkspaceChangeCursor struct {
SourceId string `protobuf:"bytes,1,opt,name=source_id,json=sourceId,proto3" json:"source_id,omitempty"`
Sequence uint64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
// contains filtered or unexported fields
}
WorkspaceChangeCursor resumes one monitor epoch after an acknowledged sequence. Both fields are required together; an empty cursor starts live.
func (*WorkspaceChangeCursor) Descriptor
deprecated
added in
v0.2.24
func (*WorkspaceChangeCursor) Descriptor() ([]byte, []int)
Deprecated: Use WorkspaceChangeCursor.ProtoReflect.Descriptor instead.
func (*WorkspaceChangeCursor) GetSequence ¶ added in v0.2.24
func (x *WorkspaceChangeCursor) GetSequence() uint64
func (*WorkspaceChangeCursor) GetSourceId ¶ added in v0.2.24
func (x *WorkspaceChangeCursor) GetSourceId() string
func (*WorkspaceChangeCursor) ProtoMessage ¶ added in v0.2.24
func (*WorkspaceChangeCursor) ProtoMessage()
func (*WorkspaceChangeCursor) ProtoReflect ¶ added in v0.2.24
func (x *WorkspaceChangeCursor) ProtoReflect() protoreflect.Message
func (*WorkspaceChangeCursor) Reset ¶ added in v0.2.24
func (x *WorkspaceChangeCursor) Reset()
func (*WorkspaceChangeCursor) String ¶ added in v0.2.24
func (x *WorkspaceChangeCursor) String() string
type WorkspaceChangeEvent ¶ added in v0.2.24
type WorkspaceChangeEvent struct {
SourceId string `protobuf:"bytes,1,opt,name=source_id,json=sourceId,proto3" json:"source_id,omitempty"`
Sequence uint64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
ObservedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=observed_at,json=observedAt,proto3" json:"observed_at,omitempty"`
Changes []*WorkspaceChange `protobuf:"bytes,4,rep,name=changes,proto3" json:"changes,omitempty"`
// contains filtered or unexported fields
}
WorkspaceChangeEvent is one deterministic coalesced watcher batch.
func (*WorkspaceChangeEvent) Descriptor
deprecated
added in
v0.2.24
func (*WorkspaceChangeEvent) Descriptor() ([]byte, []int)
Deprecated: Use WorkspaceChangeEvent.ProtoReflect.Descriptor instead.
func (*WorkspaceChangeEvent) GetChanges ¶ added in v0.2.24
func (x *WorkspaceChangeEvent) GetChanges() []*WorkspaceChange
func (*WorkspaceChangeEvent) GetObservedAt ¶ added in v0.2.24
func (x *WorkspaceChangeEvent) GetObservedAt() *timestamppb.Timestamp
func (*WorkspaceChangeEvent) GetSequence ¶ added in v0.2.24
func (x *WorkspaceChangeEvent) GetSequence() uint64
func (*WorkspaceChangeEvent) GetSourceId ¶ added in v0.2.24
func (x *WorkspaceChangeEvent) GetSourceId() string
func (*WorkspaceChangeEvent) ProtoMessage ¶ added in v0.2.24
func (*WorkspaceChangeEvent) ProtoMessage()
func (*WorkspaceChangeEvent) ProtoReflect ¶ added in v0.2.24
func (x *WorkspaceChangeEvent) ProtoReflect() protoreflect.Message
func (*WorkspaceChangeEvent) Reset ¶ added in v0.2.24
func (x *WorkspaceChangeEvent) Reset()
func (*WorkspaceChangeEvent) String ¶ added in v0.2.24
func (x *WorkspaceChangeEvent) String() string
type WorkspaceChangeOperation ¶ added in v0.2.24
type WorkspaceChangeOperation int32
WorkspaceChangeOperation describes why a repository path may have changed. RESCAN is an explicit uncertainty marker (watch overflow, replay gap, or a directory-level change) and requires an authoritative manifest pull.
const ( WorkspaceChangeOperation_WORKSPACE_CHANGE_OPERATION_UNSPECIFIED WorkspaceChangeOperation = 0 WorkspaceChangeOperation_WORKSPACE_CHANGE_OPERATION_CREATE WorkspaceChangeOperation = 1 WorkspaceChangeOperation_WORKSPACE_CHANGE_OPERATION_WRITE WorkspaceChangeOperation = 2 WorkspaceChangeOperation_WORKSPACE_CHANGE_OPERATION_REMOVE WorkspaceChangeOperation = 3 WorkspaceChangeOperation_WORKSPACE_CHANGE_OPERATION_METADATA WorkspaceChangeOperation = 4 WorkspaceChangeOperation_WORKSPACE_CHANGE_OPERATION_RESCAN WorkspaceChangeOperation = 5 )
func (WorkspaceChangeOperation) Descriptor ¶ added in v0.2.24
func (WorkspaceChangeOperation) Descriptor() protoreflect.EnumDescriptor
func (WorkspaceChangeOperation) Enum ¶ added in v0.2.24
func (x WorkspaceChangeOperation) Enum() *WorkspaceChangeOperation
func (WorkspaceChangeOperation) EnumDescriptor
deprecated
added in
v0.2.24
func (WorkspaceChangeOperation) EnumDescriptor() ([]byte, []int)
Deprecated: Use WorkspaceChangeOperation.Descriptor instead.
func (WorkspaceChangeOperation) Number ¶ added in v0.2.24
func (x WorkspaceChangeOperation) Number() protoreflect.EnumNumber
func (WorkspaceChangeOperation) String ¶ added in v0.2.24
func (x WorkspaceChangeOperation) String() string
func (WorkspaceChangeOperation) Type ¶ added in v0.2.24
func (WorkspaceChangeOperation) Type() protoreflect.EnumType
type WriteFileRequest ¶
type WriteFileRequest struct {
// service is the Codefly service name, optionally scoped by module in callers.
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
// path is a workspace- or service-relative filesystem path.
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // relative to service root
// content is the complete file body to write.
Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
// contains filtered or unexported fields
}
WriteFileRequest replaces or creates one file in a service source tree.
func (*WriteFileRequest) Descriptor
deprecated
func (*WriteFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use WriteFileRequest.ProtoReflect.Descriptor instead.
func (*WriteFileRequest) GetContent ¶
func (x *WriteFileRequest) GetContent() string
func (*WriteFileRequest) GetPath ¶
func (x *WriteFileRequest) GetPath() string
func (*WriteFileRequest) GetService ¶
func (x *WriteFileRequest) GetService() string
func (*WriteFileRequest) ProtoMessage ¶
func (*WriteFileRequest) ProtoMessage()
func (*WriteFileRequest) ProtoReflect ¶
func (x *WriteFileRequest) ProtoReflect() protoreflect.Message
func (*WriteFileRequest) Reset ¶
func (x *WriteFileRequest) Reset()
func (*WriteFileRequest) String ¶
func (x *WriteFileRequest) String() string
type WriteFileResponse ¶
type WriteFileResponse struct {
// success is true when the requested operation completed successfully.
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
// error explains why the operation failed; empty means success at this layer.
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
WriteFileResponse reports whether the gateway completed the write.
func (*WriteFileResponse) Descriptor
deprecated
func (*WriteFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use WriteFileResponse.ProtoReflect.Descriptor instead.
func (*WriteFileResponse) GetError ¶
func (x *WriteFileResponse) GetError() string
func (*WriteFileResponse) GetSuccess ¶
func (x *WriteFileResponse) GetSuccess() bool
func (*WriteFileResponse) ProtoMessage ¶
func (*WriteFileResponse) ProtoMessage()
func (*WriteFileResponse) ProtoReflect ¶
func (x *WriteFileResponse) ProtoReflect() protoreflect.Message
func (*WriteFileResponse) Reset ¶
func (x *WriteFileResponse) Reset()
func (*WriteFileResponse) String ¶
func (x *WriteFileResponse) String() string