Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterRuntimeServer(s grpc.ServiceRegistrar, srv RuntimeServer)
- type BuildRequest
- type BuildResponse
- func (*BuildResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BuildResponse) GetOutput() string
- func (x *BuildResponse) GetStatus() *BuildStatus
- func (*BuildResponse) ProtoMessage()
- func (x *BuildResponse) ProtoReflect() protoreflect.Message
- func (x *BuildResponse) Reset()
- func (x *BuildResponse) String() string
- type BuildStatus
- func (*BuildStatus) Descriptor() ([]byte, []int)deprecated
- func (x *BuildStatus) GetMessage() string
- func (x *BuildStatus) GetState() BuildStatus_Status
- func (*BuildStatus) ProtoMessage()
- func (x *BuildStatus) ProtoReflect() protoreflect.Message
- func (x *BuildStatus) Reset()
- func (x *BuildStatus) String() string
- type BuildStatus_Status
- func (BuildStatus_Status) Descriptor() protoreflect.EnumDescriptor
- func (x BuildStatus_Status) Enum() *BuildStatus_Status
- func (BuildStatus_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x BuildStatus_Status) Number() protoreflect.EnumNumber
- func (x BuildStatus_Status) String() string
- func (BuildStatus_Status) Type() protoreflect.EnumType
- type DesiredState
- type DesiredState_Stage
- func (DesiredState_Stage) Descriptor() protoreflect.EnumDescriptor
- func (x DesiredState_Stage) Enum() *DesiredState_Stage
- func (DesiredState_Stage) EnumDescriptor() ([]byte, []int)deprecated
- func (x DesiredState_Stage) Number() protoreflect.EnumNumber
- func (x DesiredState_Stage) String() string
- func (DesiredState_Stage) Type() protoreflect.EnumType
- type DestroyRequest
- type DestroyResponse
- type DestroyStatus
- func (*DestroyStatus) Descriptor() ([]byte, []int)deprecated
- func (x *DestroyStatus) GetMessage() string
- func (x *DestroyStatus) GetState() DestroyStatus_Status
- func (*DestroyStatus) ProtoMessage()
- func (x *DestroyStatus) ProtoReflect() protoreflect.Message
- func (x *DestroyStatus) Reset()
- func (x *DestroyStatus) String() string
- type DestroyStatus_Status
- func (DestroyStatus_Status) Descriptor() protoreflect.EnumDescriptor
- func (x DestroyStatus_Status) Enum() *DestroyStatus_Status
- func (DestroyStatus_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x DestroyStatus_Status) Number() protoreflect.EnumNumber
- func (x DestroyStatus_Status) String() string
- func (DestroyStatus_Status) Type() protoreflect.EnumType
- type InformationRequest
- type InformationResponse
- func (*InformationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InformationResponse) GetBuildStatus() *BuildStatus
- func (x *InformationResponse) GetDesiredState() *DesiredState
- func (x *InformationResponse) GetDestroyStatus() *DestroyStatus
- func (x *InformationResponse) GetInitStatus() *InitStatus
- func (x *InformationResponse) GetLintStatus() *LintStatus
- func (x *InformationResponse) GetLoadStatus() *LoadStatus
- func (x *InformationResponse) GetStartStatus() *StartStatus
- func (x *InformationResponse) GetStopStatus() *StopStatus
- func (x *InformationResponse) GetTestStatus() *TestStatus
- func (*InformationResponse) ProtoMessage()
- func (x *InformationResponse) ProtoReflect() protoreflect.Message
- func (x *InformationResponse) Reset()
- func (x *InformationResponse) String() string
- type InitRequest
- func (*InitRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InitRequest) GetConfiguration() *v0.Configuration
- func (x *InitRequest) GetDependenciesConfigurations() []*v0.Configuration
- func (x *InitRequest) GetDependenciesEndpoints() []*v0.Endpoint
- func (x *InitRequest) GetProposedNetworkMappings() []*v0.NetworkMapping
- func (x *InitRequest) GetRuntimeContext() *v0.RuntimeContext
- func (x *InitRequest) GetWorkspaceConfigurations() []*v0.Configuration
- func (*InitRequest) ProtoMessage()
- func (x *InitRequest) ProtoReflect() protoreflect.Message
- func (x *InitRequest) Reset()
- func (x *InitRequest) String() string
- type InitResponse
- func (*InitResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InitResponse) GetNetworkMappings() []*v0.NetworkMapping
- func (x *InitResponse) GetRuntimeConfigurations() []*v0.Configuration
- func (x *InitResponse) GetRuntimeContext() *v0.RuntimeContext
- func (x *InitResponse) GetStatus() *InitStatus
- func (*InitResponse) ProtoMessage()
- func (x *InitResponse) ProtoReflect() protoreflect.Message
- func (x *InitResponse) Reset()
- func (x *InitResponse) String() string
- type InitStatus
- func (*InitStatus) Descriptor() ([]byte, []int)deprecated
- func (x *InitStatus) GetMessage() string
- func (x *InitStatus) GetState() InitStatus_Status
- func (*InitStatus) ProtoMessage()
- func (x *InitStatus) ProtoReflect() protoreflect.Message
- func (x *InitStatus) Reset()
- func (x *InitStatus) String() string
- type InitStatus_Status
- func (InitStatus_Status) Descriptor() protoreflect.EnumDescriptor
- func (x InitStatus_Status) Enum() *InitStatus_Status
- func (InitStatus_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x InitStatus_Status) Number() protoreflect.EnumNumber
- func (x InitStatus_Status) String() string
- func (InitStatus_Status) Type() protoreflect.EnumType
- type LintRequest
- type LintResponse
- func (*LintResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LintResponse) GetOutput() string
- func (x *LintResponse) GetStatus() *LintStatus
- func (*LintResponse) ProtoMessage()
- func (x *LintResponse) ProtoReflect() protoreflect.Message
- func (x *LintResponse) Reset()
- func (x *LintResponse) String() string
- type LintStatus
- func (*LintStatus) Descriptor() ([]byte, []int)deprecated
- func (x *LintStatus) GetMessage() string
- func (x *LintStatus) GetState() LintStatus_Status
- func (*LintStatus) ProtoMessage()
- func (x *LintStatus) ProtoReflect() protoreflect.Message
- func (x *LintStatus) Reset()
- func (x *LintStatus) String() string
- type LintStatus_Status
- func (LintStatus_Status) Descriptor() protoreflect.EnumDescriptor
- func (x LintStatus_Status) Enum() *LintStatus_Status
- func (LintStatus_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x LintStatus_Status) Number() protoreflect.EnumNumber
- func (x LintStatus_Status) String() string
- func (LintStatus_Status) Type() protoreflect.EnumType
- type LoadRequest
- func (*LoadRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoadRequest) GetDeveloperDebug() bool
- func (x *LoadRequest) GetDisableCatch() bool
- func (x *LoadRequest) GetEnvironment() *v0.Environment
- func (x *LoadRequest) GetIdentity() *v0.ServiceIdentity
- func (*LoadRequest) ProtoMessage()
- func (x *LoadRequest) ProtoReflect() protoreflect.Message
- func (x *LoadRequest) Reset()
- func (x *LoadRequest) String() string
- type LoadResponse
- func (*LoadResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoadResponse) GetEndpoints() []*v0.Endpoint
- func (x *LoadResponse) GetStatus() *LoadStatus
- func (x *LoadResponse) GetVersion() *v0.Version
- func (*LoadResponse) ProtoMessage()
- func (x *LoadResponse) ProtoReflect() protoreflect.Message
- func (x *LoadResponse) Reset()
- func (x *LoadResponse) String() string
- type LoadStatus
- func (*LoadStatus) Descriptor() ([]byte, []int)deprecated
- func (x *LoadStatus) GetMessage() string
- func (x *LoadStatus) GetState() LoadStatus_Status
- func (*LoadStatus) ProtoMessage()
- func (x *LoadStatus) ProtoReflect() protoreflect.Message
- func (x *LoadStatus) Reset()
- func (x *LoadStatus) String() string
- type LoadStatus_Status
- func (LoadStatus_Status) Descriptor() protoreflect.EnumDescriptor
- func (x LoadStatus_Status) Enum() *LoadStatus_Status
- func (LoadStatus_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x LoadStatus_Status) Number() protoreflect.EnumNumber
- func (x LoadStatus_Status) String() string
- func (LoadStatus_Status) Type() protoreflect.EnumType
- type RuntimeClient
- type RuntimeServer
- type Runtime_CommunicateClient
- type Runtime_CommunicateServer
- type StartRequest
- func (*StartRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StartRequest) GetDependenciesNetworkMappings() []*v0.NetworkMapping
- func (x *StartRequest) GetFixture() string
- func (x *StartRequest) GetSpecs() *v0.Specs
- func (*StartRequest) ProtoMessage()
- func (x *StartRequest) ProtoReflect() protoreflect.Message
- func (x *StartRequest) Reset()
- func (x *StartRequest) String() string
- type StartResponse
- type StartStatus
- func (*StartStatus) Descriptor() ([]byte, []int)deprecated
- func (x *StartStatus) GetMessage() string
- func (x *StartStatus) GetState() StartStatus_Status
- func (*StartStatus) ProtoMessage()
- func (x *StartStatus) ProtoReflect() protoreflect.Message
- func (x *StartStatus) Reset()
- func (x *StartStatus) String() string
- type StartStatus_Status
- func (StartStatus_Status) Descriptor() protoreflect.EnumDescriptor
- func (x StartStatus_Status) Enum() *StartStatus_Status
- func (StartStatus_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x StartStatus_Status) Number() protoreflect.EnumNumber
- func (x StartStatus_Status) String() string
- func (StartStatus_Status) Type() protoreflect.EnumType
- type StopRequest
- type StopResponse
- type StopStatus
- func (*StopStatus) Descriptor() ([]byte, []int)deprecated
- func (x *StopStatus) GetMessage() string
- func (x *StopStatus) GetState() StopStatus_Status
- func (*StopStatus) ProtoMessage()
- func (x *StopStatus) ProtoReflect() protoreflect.Message
- func (x *StopStatus) Reset()
- func (x *StopStatus) String() string
- type StopStatus_Status
- func (StopStatus_Status) Descriptor() protoreflect.EnumDescriptor
- func (x StopStatus_Status) Enum() *StopStatus_Status
- func (StopStatus_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x StopStatus_Status) Number() protoreflect.EnumNumber
- func (x StopStatus_Status) String() string
- func (StopStatus_Status) Type() protoreflect.EnumType
- type TestCase
- func (*TestCase) Descriptor() ([]byte, []int)deprecated
- func (x *TestCase) GetCapturedOutput() string
- func (x *TestCase) GetDuration() *durationpb.Duration
- func (x *TestCase) GetFailure() *TestFailure
- func (x *TestCase) GetFullName() string
- func (x *TestCase) GetLocation() *TestLocation
- func (x *TestCase) GetName() string
- func (x *TestCase) GetRetries() []*TestRetry
- func (x *TestCase) GetState() TestCaseState
- func (x *TestCase) GetTags() []string
- func (*TestCase) ProtoMessage()
- func (x *TestCase) ProtoReflect() protoreflect.Message
- func (x *TestCase) Reset()
- func (x *TestCase) String() string
- type TestCaseState
- func (TestCaseState) Descriptor() protoreflect.EnumDescriptor
- func (x TestCaseState) Enum() *TestCaseState
- func (TestCaseState) EnumDescriptor() ([]byte, []int)deprecated
- func (x TestCaseState) Number() protoreflect.EnumNumber
- func (x TestCaseState) String() string
- func (TestCaseState) Type() protoreflect.EnumType
- type TestCounts
- func (*TestCounts) Descriptor() ([]byte, []int)deprecated
- func (x *TestCounts) GetErrored() int32
- func (x *TestCounts) GetFailed() int32
- func (x *TestCounts) GetFlaky() int32
- func (x *TestCounts) GetPassed() int32
- func (x *TestCounts) GetSkipped() int32
- func (x *TestCounts) GetTotal() int32
- func (*TestCounts) ProtoMessage()
- func (x *TestCounts) ProtoReflect() protoreflect.Message
- func (x *TestCounts) Reset()
- func (x *TestCounts) String() string
- type TestCoverage
- func (*TestCoverage) Descriptor() ([]byte, []int)deprecated
- func (x *TestCoverage) GetFiles() []*TestFileCoverage
- func (x *TestCoverage) GetRawArtifactFormat() string
- func (x *TestCoverage) GetRawArtifactPath() string
- func (x *TestCoverage) GetTotalPct() float32
- func (*TestCoverage) ProtoMessage()
- func (x *TestCoverage) ProtoReflect() protoreflect.Message
- func (x *TestCoverage) Reset()
- func (x *TestCoverage) String() string
- type TestFailure
- func (*TestFailure) Descriptor() ([]byte, []int)deprecated
- func (x *TestFailure) GetDetail() string
- func (x *TestFailure) GetKind() TestFailureKind
- func (x *TestFailure) GetMessage() string
- func (x *TestFailure) GetSkipReason() string
- func (x *TestFailure) GetSourceLocation() *TestLocation
- func (*TestFailure) ProtoMessage()
- func (x *TestFailure) ProtoReflect() protoreflect.Message
- func (x *TestFailure) Reset()
- func (x *TestFailure) String() string
- type TestFailureKind
- func (TestFailureKind) Descriptor() protoreflect.EnumDescriptor
- func (x TestFailureKind) Enum() *TestFailureKind
- func (TestFailureKind) EnumDescriptor() ([]byte, []int)deprecated
- func (x TestFailureKind) Number() protoreflect.EnumNumber
- func (x TestFailureKind) String() string
- func (TestFailureKind) Type() protoreflect.EnumType
- type TestFileCoverage
- func (*TestFileCoverage) Descriptor() ([]byte, []int)deprecated
- func (x *TestFileCoverage) GetFile() string
- func (x *TestFileCoverage) GetLinesCovered() int32
- func (x *TestFileCoverage) GetLinesTotal() int32
- func (x *TestFileCoverage) GetPct() float32
- func (*TestFileCoverage) ProtoMessage()
- func (x *TestFileCoverage) ProtoReflect() protoreflect.Message
- func (x *TestFileCoverage) Reset()
- func (x *TestFileCoverage) String() string
- type TestLocation
- func (*TestLocation) Descriptor() ([]byte, []int)deprecated
- func (x *TestLocation) GetColumn() int32
- func (x *TestLocation) GetFile() string
- func (x *TestLocation) GetFunction() string
- func (x *TestLocation) GetLine() int32
- func (*TestLocation) ProtoMessage()
- func (x *TestLocation) ProtoReflect() protoreflect.Message
- func (x *TestLocation) Reset()
- func (x *TestLocation) String() string
- type TestRequest
- func (*TestRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TestRequest) GetCoverage() bool
- func (x *TestRequest) GetExtraArgs() []string
- func (x *TestRequest) GetFilters() []string
- func (x *TestRequest) GetRace() bool
- func (x *TestRequest) GetSuite() string
- func (x *TestRequest) GetTarget() string
- func (x *TestRequest) GetTimeout() string
- func (x *TestRequest) GetVerbose() bool
- func (*TestRequest) ProtoMessage()
- func (x *TestRequest) ProtoReflect() protoreflect.Message
- func (x *TestRequest) Reset()
- func (x *TestRequest) String() string
- type TestResponse
- func (*TestResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TestResponse) GetCounts() *TestCounts
- func (x *TestResponse) GetCoverage() *TestCoverage
- func (x *TestResponse) GetCoveragePct() float32deprecated
- func (x *TestResponse) GetFailures() []stringdeprecated
- func (x *TestResponse) GetOutput() stringdeprecated
- func (x *TestResponse) GetResult() *TestRunResult
- func (x *TestResponse) GetRun() *TestRun
- func (x *TestResponse) GetStatus() *TestStatusdeprecated
- func (x *TestResponse) GetSuites() []*TestSuite
- func (x *TestResponse) GetTestsFailed() int32deprecated
- func (x *TestResponse) GetTestsPassed() int32deprecated
- func (x *TestResponse) GetTestsRun() int32deprecated
- func (x *TestResponse) GetTestsSkipped() int32deprecated
- func (x *TestResponse) GetTruncation() *TestTruncation
- func (*TestResponse) ProtoMessage()
- func (x *TestResponse) ProtoReflect() protoreflect.Message
- func (x *TestResponse) Reset()
- func (x *TestResponse) String() string
- type TestRetry
- func (*TestRetry) Descriptor() ([]byte, []int)deprecated
- func (x *TestRetry) GetAttempt() int32
- func (x *TestRetry) GetDuration() *durationpb.Duration
- func (x *TestRetry) GetFailure() *TestFailure
- func (x *TestRetry) GetState() TestCaseState
- func (*TestRetry) ProtoMessage()
- func (x *TestRetry) ProtoReflect() protoreflect.Message
- func (x *TestRetry) Reset()
- func (x *TestRetry) String() string
- type TestRun
- func (*TestRun) Descriptor() ([]byte, []int)deprecated
- func (x *TestRun) GetDuration() *durationpb.Duration
- func (x *TestRun) GetRunner() string
- func (x *TestRun) GetSuiteName() string
- func (*TestRun) ProtoMessage()
- func (x *TestRun) ProtoReflect() protoreflect.Message
- func (x *TestRun) Reset()
- func (x *TestRun) String() string
- type TestRunResult
- func (*TestRunResult) Descriptor() ([]byte, []int)deprecated
- func (x *TestRunResult) GetMessage() string
- func (x *TestRunResult) GetState() TestRunResult_State
- func (*TestRunResult) ProtoMessage()
- func (x *TestRunResult) ProtoReflect() protoreflect.Message
- func (x *TestRunResult) Reset()
- func (x *TestRunResult) String() string
- type TestRunResult_State
- func (TestRunResult_State) Descriptor() protoreflect.EnumDescriptor
- func (x TestRunResult_State) Enum() *TestRunResult_State
- func (TestRunResult_State) EnumDescriptor() ([]byte, []int)deprecated
- func (x TestRunResult_State) Number() protoreflect.EnumNumber
- func (x TestRunResult_State) String() string
- func (TestRunResult_State) Type() protoreflect.EnumType
- type TestStatus
- func (*TestStatus) Descriptor() ([]byte, []int)deprecated
- func (x *TestStatus) GetMessage() string
- func (x *TestStatus) GetState() TestStatus_Status
- func (*TestStatus) ProtoMessage()
- func (x *TestStatus) ProtoReflect() protoreflect.Message
- func (x *TestStatus) Reset()
- func (x *TestStatus) String() string
- type TestStatus_Status
- func (TestStatus_Status) Descriptor() protoreflect.EnumDescriptor
- func (x TestStatus_Status) Enum() *TestStatus_Status
- func (TestStatus_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x TestStatus_Status) Number() protoreflect.EnumNumber
- func (x TestStatus_Status) String() string
- func (TestStatus_Status) Type() protoreflect.EnumType
- type TestSuite
- func (*TestSuite) Descriptor() ([]byte, []int)deprecated
- func (x *TestSuite) GetCases() []*TestCase
- func (x *TestSuite) GetCounts() *TestCounts
- func (x *TestSuite) GetDuration() *durationpb.Duration
- func (x *TestSuite) GetFile() string
- func (x *TestSuite) GetName() string
- func (x *TestSuite) GetSuites() []*TestSuite
- func (*TestSuite) ProtoMessage()
- func (x *TestSuite) ProtoReflect() protoreflect.Message
- func (x *TestSuite) Reset()
- func (x *TestSuite) String() string
- type TestTruncation
- func (*TestTruncation) Descriptor() ([]byte, []int)deprecated
- func (x *TestTruncation) GetDroppedCases() int32
- func (x *TestTruncation) GetHappened() bool
- func (x *TestTruncation) GetMaxPerCaseBytes() int32
- func (x *TestTruncation) GetMaxTotalBytes() int32
- func (x *TestTruncation) GetTruncatedCases() int32
- func (*TestTruncation) ProtoMessage()
- func (x *TestTruncation) ProtoReflect() protoreflect.Message
- func (x *TestTruncation) Reset()
- func (x *TestTruncation) String() string
- type UnimplementedRuntimeServer
- func (UnimplementedRuntimeServer) Build(context.Context, *BuildRequest) (*BuildResponse, error)
- func (UnimplementedRuntimeServer) Communicate(grpc.BidiStreamingServer[v0.Answer, v0.Question]) error
- func (UnimplementedRuntimeServer) Destroy(context.Context, *DestroyRequest) (*DestroyResponse, error)
- func (UnimplementedRuntimeServer) Information(context.Context, *InformationRequest) (*InformationResponse, error)
- func (UnimplementedRuntimeServer) Init(context.Context, *InitRequest) (*InitResponse, error)
- func (UnimplementedRuntimeServer) Lint(context.Context, *LintRequest) (*LintResponse, error)
- func (UnimplementedRuntimeServer) Load(context.Context, *LoadRequest) (*LoadResponse, error)
- func (UnimplementedRuntimeServer) Start(context.Context, *StartRequest) (*StartResponse, error)
- func (UnimplementedRuntimeServer) Stop(context.Context, *StopRequest) (*StopResponse, error)
- func (UnimplementedRuntimeServer) Test(context.Context, *TestRequest) (*TestResponse, error)
- type UnsafeRuntimeServer
Constants ¶
const ( Runtime_Load_FullMethodName = "/codefly.services.runtime.v0.Runtime/Load" Runtime_Init_FullMethodName = "/codefly.services.runtime.v0.Runtime/Init" Runtime_Start_FullMethodName = "/codefly.services.runtime.v0.Runtime/Start" Runtime_Stop_FullMethodName = "/codefly.services.runtime.v0.Runtime/Stop" Runtime_Destroy_FullMethodName = "/codefly.services.runtime.v0.Runtime/Destroy" Runtime_Build_FullMethodName = "/codefly.services.runtime.v0.Runtime/Build" Runtime_Test_FullMethodName = "/codefly.services.runtime.v0.Runtime/Test" Runtime_Lint_FullMethodName = "/codefly.services.runtime.v0.Runtime/Lint" Runtime_Information_FullMethodName = "/codefly.services.runtime.v0.Runtime/Information" Runtime_Communicate_FullMethodName = "/codefly.services.runtime.v0.Runtime/Communicate" )
Variables ¶
var ( TestCaseState_name = map[int32]string{ 0: "TEST_CASE_STATE_UNSPECIFIED", 1: "TEST_CASE_STATE_PASSED", 2: "TEST_CASE_STATE_FAILED", 3: "TEST_CASE_STATE_SKIPPED", 4: "TEST_CASE_STATE_ERRORED", } TestCaseState_value = map[string]int32{ "TEST_CASE_STATE_UNSPECIFIED": 0, "TEST_CASE_STATE_PASSED": 1, "TEST_CASE_STATE_FAILED": 2, "TEST_CASE_STATE_SKIPPED": 3, "TEST_CASE_STATE_ERRORED": 4, } )
Enum value maps for TestCaseState.
var ( TestFailureKind_name = map[int32]string{ 0: "TEST_FAILURE_KIND_UNSPECIFIED", 1: "TEST_FAILURE_KIND_ASSERTION", 2: "TEST_FAILURE_KIND_PANIC", 3: "TEST_FAILURE_KIND_TIMEOUT", 4: "TEST_FAILURE_KIND_BUILD_ERROR", 5: "TEST_FAILURE_KIND_SETUP", } TestFailureKind_value = map[string]int32{ "TEST_FAILURE_KIND_UNSPECIFIED": 0, "TEST_FAILURE_KIND_ASSERTION": 1, "TEST_FAILURE_KIND_PANIC": 2, "TEST_FAILURE_KIND_TIMEOUT": 3, "TEST_FAILURE_KIND_BUILD_ERROR": 4, "TEST_FAILURE_KIND_SETUP": 5, } )
Enum value maps for TestFailureKind.
var ( LoadStatus_Status_name = map[int32]string{ 0: "UNKNOWN", 1: "READY", 2: "ERROR", } LoadStatus_Status_value = map[string]int32{ "UNKNOWN": 0, "READY": 1, "ERROR": 2, } )
Enum value maps for LoadStatus_Status.
var ( InitStatus_Status_name = map[int32]string{ 0: "UNKNOWN", 1: "READY", 2: "ERROR", } InitStatus_Status_value = map[string]int32{ "UNKNOWN": 0, "READY": 1, "ERROR": 2, } )
Enum value maps for InitStatus_Status.
var ( StartStatus_Status_name = map[int32]string{ 0: "UNKNOWN", 1: "STARTED", 2: "ERROR", } StartStatus_Status_value = map[string]int32{ "UNKNOWN": 0, "STARTED": 1, "ERROR": 2, } )
Enum value maps for StartStatus_Status.
var ( BuildStatus_Status_name = map[int32]string{ 0: "UNKNOWN", 1: "SUCCESS", 2: "ERROR", } BuildStatus_Status_value = map[string]int32{ "UNKNOWN": 0, "SUCCESS": 1, "ERROR": 2, } )
Enum value maps for BuildStatus_Status.
var ( TestStatus_Status_name = map[int32]string{ 0: "UNKNOWN", 1: "SUCCESS", 2: "ERROR", } TestStatus_Status_value = map[string]int32{ "UNKNOWN": 0, "SUCCESS": 1, "ERROR": 2, } )
Enum value maps for TestStatus_Status.
var ( TestRunResult_State_name = map[int32]string{ 0: "UNKNOWN", 1: "PASSED", 2: "FAILED", 3: "ERRORED", 4: "TIMED_OUT", } TestRunResult_State_value = map[string]int32{ "UNKNOWN": 0, "PASSED": 1, "FAILED": 2, "ERRORED": 3, "TIMED_OUT": 4, } )
Enum value maps for TestRunResult_State.
var ( LintStatus_Status_name = map[int32]string{ 0: "UNKNOWN", 1: "SUCCESS", 2: "ERROR", } LintStatus_Status_value = map[string]int32{ "UNKNOWN": 0, "SUCCESS": 1, "ERROR": 2, } )
Enum value maps for LintStatus_Status.
var ( StopStatus_Status_name = map[int32]string{ 0: "UNKNOWN", 1: "SUCCESS", 2: "ERROR", } StopStatus_Status_value = map[string]int32{ "UNKNOWN": 0, "SUCCESS": 1, "ERROR": 2, } )
Enum value maps for StopStatus_Status.
var ( DestroyStatus_Status_name = map[int32]string{ 0: "UNKNOWN", 1: "SUCCESS", 2: "ERROR", } DestroyStatus_Status_value = map[string]int32{ "UNKNOWN": 0, "SUCCESS": 1, "ERROR": 2, } )
Enum value maps for DestroyStatus_Status.
var ( DesiredState_Stage_name = map[int32]string{ 0: "UNKNOWN", 1: "NOOP", 2: "LOAD", 3: "INIT", 4: "START", } DesiredState_Stage_value = map[string]int32{ "UNKNOWN": 0, "NOOP": 1, "LOAD": 2, "INIT": 3, "START": 4, } )
Enum value maps for DesiredState_Stage.
var File_codefly_services_runtime_v0_runtime_proto protoreflect.FileDescriptor
var Runtime_ServiceDesc = grpc.ServiceDesc{ ServiceName: "codefly.services.runtime.v0.Runtime", HandlerType: (*RuntimeServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Load", Handler: _Runtime_Load_Handler, }, { MethodName: "Init", Handler: _Runtime_Init_Handler, }, { MethodName: "Start", Handler: _Runtime_Start_Handler, }, { MethodName: "Stop", Handler: _Runtime_Stop_Handler, }, { MethodName: "Destroy", Handler: _Runtime_Destroy_Handler, }, { MethodName: "Build", Handler: _Runtime_Build_Handler, }, { MethodName: "Test", Handler: _Runtime_Test_Handler, }, { MethodName: "Lint", Handler: _Runtime_Lint_Handler, }, { MethodName: "Information", Handler: _Runtime_Information_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Communicate", Handler: _Runtime_Communicate_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "codefly/services/runtime/v0/runtime.proto", }
Runtime_ServiceDesc is the grpc.ServiceDesc for Runtime service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRuntimeServer ¶
func RegisterRuntimeServer(s grpc.ServiceRegistrar, srv RuntimeServer)
Types ¶
type BuildRequest ¶ added in v0.1.155
type BuildRequest struct {
// Optional target scope: package path (e.g. "./handlers"), file, or empty for all.
Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
// contains filtered or unexported fields
}
BuildRequest asks the runtime agent to run the native build or compile check.
func (*BuildRequest) Descriptor
deprecated
added in
v0.1.155
func (*BuildRequest) Descriptor() ([]byte, []int)
Deprecated: Use BuildRequest.ProtoReflect.Descriptor instead.
func (*BuildRequest) GetTarget ¶ added in v0.1.155
func (x *BuildRequest) GetTarget() string
func (*BuildRequest) ProtoMessage ¶ added in v0.1.155
func (*BuildRequest) ProtoMessage()
func (*BuildRequest) ProtoReflect ¶ added in v0.1.155
func (x *BuildRequest) ProtoReflect() protoreflect.Message
func (*BuildRequest) Reset ¶ added in v0.1.155
func (x *BuildRequest) Reset()
func (*BuildRequest) String ¶ added in v0.1.155
func (x *BuildRequest) String() string
type BuildResponse ¶ added in v0.1.155
type BuildResponse struct {
// status reports the lifecycle or operation status.
Status *BuildStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
// output is raw command, build, lint, or test output preserved for diagnostics.
Output string `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"`
// contains filtered or unexported fields
}
BuildResponse returns build status and raw tool output for diagnostics.
func (*BuildResponse) Descriptor
deprecated
added in
v0.1.155
func (*BuildResponse) Descriptor() ([]byte, []int)
Deprecated: Use BuildResponse.ProtoReflect.Descriptor instead.
func (*BuildResponse) GetOutput ¶ added in v0.1.155
func (x *BuildResponse) GetOutput() string
func (*BuildResponse) GetStatus ¶ added in v0.1.155
func (x *BuildResponse) GetStatus() *BuildStatus
func (*BuildResponse) ProtoMessage ¶ added in v0.1.155
func (*BuildResponse) ProtoMessage()
func (*BuildResponse) ProtoReflect ¶ added in v0.1.155
func (x *BuildResponse) ProtoReflect() protoreflect.Message
func (*BuildResponse) Reset ¶ added in v0.1.155
func (x *BuildResponse) Reset()
func (*BuildResponse) String ¶ added in v0.1.155
func (x *BuildResponse) String() string
type BuildStatus ¶ added in v0.1.155
type BuildStatus struct {
// state is the machine-readable lifecycle state.
State BuildStatus_Status `protobuf:"varint,1,opt,name=state,proto3,enum=codefly.services.runtime.v0.BuildStatus_Status" json:"state,omitempty"`
// message is a human-readable status or diagnostic summary.
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
BuildStatus reports the state and message for the build lifecycle phase.
func (*BuildStatus) Descriptor
deprecated
added in
v0.1.155
func (*BuildStatus) Descriptor() ([]byte, []int)
Deprecated: Use BuildStatus.ProtoReflect.Descriptor instead.
func (*BuildStatus) GetMessage ¶ added in v0.1.155
func (x *BuildStatus) GetMessage() string
func (*BuildStatus) GetState ¶ added in v0.1.155
func (x *BuildStatus) GetState() BuildStatus_Status
func (*BuildStatus) ProtoMessage ¶ added in v0.1.155
func (*BuildStatus) ProtoMessage()
func (*BuildStatus) ProtoReflect ¶ added in v0.1.155
func (x *BuildStatus) ProtoReflect() protoreflect.Message
func (*BuildStatus) Reset ¶ added in v0.1.155
func (x *BuildStatus) Reset()
func (*BuildStatus) String ¶ added in v0.1.155
func (x *BuildStatus) String() string
type BuildStatus_Status ¶ added in v0.1.155
type BuildStatus_Status int32
Status enumerates lifecycle status values.
const ( // UNKNOWN is the default value when status is not specified. BuildStatus_UNKNOWN BuildStatus_Status = 0 // SUCCESS means the operation completed successfully. BuildStatus_SUCCESS BuildStatus_Status = 1 // ERROR means the phase failed and message carries diagnostics. BuildStatus_ERROR BuildStatus_Status = 2 )
func (BuildStatus_Status) Descriptor ¶ added in v0.1.155
func (BuildStatus_Status) Descriptor() protoreflect.EnumDescriptor
func (BuildStatus_Status) Enum ¶ added in v0.1.155
func (x BuildStatus_Status) Enum() *BuildStatus_Status
func (BuildStatus_Status) EnumDescriptor
deprecated
added in
v0.1.155
func (BuildStatus_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use BuildStatus_Status.Descriptor instead.
func (BuildStatus_Status) Number ¶ added in v0.1.155
func (x BuildStatus_Status) Number() protoreflect.EnumNumber
func (BuildStatus_Status) String ¶ added in v0.1.155
func (x BuildStatus_Status) String() string
func (BuildStatus_Status) Type ¶ added in v0.1.155
func (BuildStatus_Status) Type() protoreflect.EnumType
type DesiredState ¶
type DesiredState struct {
// stage is the next lifecycle stage the runtime should reach.
Stage DesiredState_Stage `protobuf:"varint,1,opt,name=stage,proto3,enum=codefly.services.runtime.v0.DesiredState_Stage" json:"stage,omitempty"`
// contains filtered or unexported fields
}
DesiredState tells the orchestrator which lifecycle transition is still needed.
func (*DesiredState) Descriptor
deprecated
func (*DesiredState) Descriptor() ([]byte, []int)
Deprecated: Use DesiredState.ProtoReflect.Descriptor instead.
func (*DesiredState) GetStage ¶
func (x *DesiredState) GetStage() DesiredState_Stage
func (*DesiredState) ProtoMessage ¶
func (*DesiredState) ProtoMessage()
func (*DesiredState) ProtoReflect ¶
func (x *DesiredState) ProtoReflect() protoreflect.Message
func (*DesiredState) Reset ¶
func (x *DesiredState) Reset()
func (*DesiredState) String ¶
func (x *DesiredState) String() string
type DesiredState_Stage ¶
type DesiredState_Stage int32
Stage enumerates stage values.
const ( // UNKNOWN is the default value when stage is not specified. DesiredState_UNKNOWN DesiredState_Stage = 0 // NOOP means no lifecycle transition is currently requested. DesiredState_NOOP DesiredState_Stage = 1 // LOAD requests a reload of service metadata and endpoints. DesiredState_LOAD DesiredState_Stage = 2 // INIT requests reinitialization of configuration and network mappings. DesiredState_INIT DesiredState_Stage = 3 // START requests the service process to be started or restarted. DesiredState_START DesiredState_Stage = 4 )
func (DesiredState_Stage) Descriptor ¶
func (DesiredState_Stage) Descriptor() protoreflect.EnumDescriptor
func (DesiredState_Stage) Enum ¶
func (x DesiredState_Stage) Enum() *DesiredState_Stage
func (DesiredState_Stage) EnumDescriptor
deprecated
func (DesiredState_Stage) EnumDescriptor() ([]byte, []int)
Deprecated: Use DesiredState_Stage.Descriptor instead.
func (DesiredState_Stage) Number ¶
func (x DesiredState_Stage) Number() protoreflect.EnumNumber
func (DesiredState_Stage) String ¶
func (x DesiredState_Stage) String() string
func (DesiredState_Stage) Type ¶
func (DesiredState_Stage) Type() protoreflect.EnumType
type DestroyRequest ¶
type DestroyRequest struct {
// contains filtered or unexported fields
}
DestroyRequest asks the runtime agent to release all runtime resources.
func (*DestroyRequest) Descriptor
deprecated
func (*DestroyRequest) Descriptor() ([]byte, []int)
Deprecated: Use DestroyRequest.ProtoReflect.Descriptor instead.
func (*DestroyRequest) ProtoMessage ¶
func (*DestroyRequest) ProtoMessage()
func (*DestroyRequest) ProtoReflect ¶
func (x *DestroyRequest) ProtoReflect() protoreflect.Message
func (*DestroyRequest) Reset ¶
func (x *DestroyRequest) Reset()
func (*DestroyRequest) String ¶
func (x *DestroyRequest) String() string
type DestroyResponse ¶
type DestroyResponse struct {
// status reports the lifecycle or operation status.
Status *DestroyStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
// contains filtered or unexported fields
}
DestroyResponse reports whether runtime resources were destroyed cleanly.
func (*DestroyResponse) Descriptor
deprecated
func (*DestroyResponse) Descriptor() ([]byte, []int)
Deprecated: Use DestroyResponse.ProtoReflect.Descriptor instead.
func (*DestroyResponse) GetStatus ¶
func (x *DestroyResponse) GetStatus() *DestroyStatus
func (*DestroyResponse) ProtoMessage ¶
func (*DestroyResponse) ProtoMessage()
func (*DestroyResponse) ProtoReflect ¶
func (x *DestroyResponse) ProtoReflect() protoreflect.Message
func (*DestroyResponse) Reset ¶
func (x *DestroyResponse) Reset()
func (*DestroyResponse) String ¶
func (x *DestroyResponse) String() string
type DestroyStatus ¶
type DestroyStatus struct {
// state is the machine-readable lifecycle state.
State DestroyStatus_Status `protobuf:"varint,1,opt,name=state,proto3,enum=codefly.services.runtime.v0.DestroyStatus_Status" json:"state,omitempty"`
// message is a human-readable status or diagnostic summary.
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
DestroyStatus reports the state and message for the destroy lifecycle phase.
func (*DestroyStatus) Descriptor
deprecated
func (*DestroyStatus) Descriptor() ([]byte, []int)
Deprecated: Use DestroyStatus.ProtoReflect.Descriptor instead.
func (*DestroyStatus) GetMessage ¶
func (x *DestroyStatus) GetMessage() string
func (*DestroyStatus) GetState ¶
func (x *DestroyStatus) GetState() DestroyStatus_Status
func (*DestroyStatus) ProtoMessage ¶
func (*DestroyStatus) ProtoMessage()
func (*DestroyStatus) ProtoReflect ¶
func (x *DestroyStatus) ProtoReflect() protoreflect.Message
func (*DestroyStatus) Reset ¶
func (x *DestroyStatus) Reset()
func (*DestroyStatus) String ¶
func (x *DestroyStatus) String() string
type DestroyStatus_Status ¶
type DestroyStatus_Status int32
Status enumerates lifecycle status values.
const ( // UNKNOWN is the default value when status is not specified. DestroyStatus_UNKNOWN DestroyStatus_Status = 0 // SUCCESS means the operation completed successfully. DestroyStatus_SUCCESS DestroyStatus_Status = 1 // ERROR means the phase failed and message carries diagnostics. DestroyStatus_ERROR DestroyStatus_Status = 2 )
func (DestroyStatus_Status) Descriptor ¶
func (DestroyStatus_Status) Descriptor() protoreflect.EnumDescriptor
func (DestroyStatus_Status) Enum ¶
func (x DestroyStatus_Status) Enum() *DestroyStatus_Status
func (DestroyStatus_Status) EnumDescriptor
deprecated
func (DestroyStatus_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use DestroyStatus_Status.Descriptor instead.
func (DestroyStatus_Status) Number ¶
func (x DestroyStatus_Status) Number() protoreflect.EnumNumber
func (DestroyStatus_Status) String ¶
func (x DestroyStatus_Status) String() string
func (DestroyStatus_Status) Type ¶
func (DestroyStatus_Status) Type() protoreflect.EnumType
type InformationRequest ¶
type InformationRequest struct {
// contains filtered or unexported fields
}
InformationRequest asks for the runtime agent's current lifecycle state.
func (*InformationRequest) Descriptor
deprecated
func (*InformationRequest) Descriptor() ([]byte, []int)
Deprecated: Use InformationRequest.ProtoReflect.Descriptor instead.
func (*InformationRequest) ProtoMessage ¶
func (*InformationRequest) ProtoMessage()
func (*InformationRequest) ProtoReflect ¶
func (x *InformationRequest) ProtoReflect() protoreflect.Message
func (*InformationRequest) Reset ¶
func (x *InformationRequest) Reset()
func (*InformationRequest) String ¶
func (x *InformationRequest) String() string
type InformationResponse ¶
type InformationResponse struct {
// desired_state is the next lifecycle transition requested by the orchestrator.
DesiredState *DesiredState `protobuf:"bytes,1,opt,name=desired_state,json=desiredState,proto3" json:"desired_state,omitempty"`
// load_status is the latest Load lifecycle status.
LoadStatus *LoadStatus `protobuf:"bytes,2,opt,name=load_status,json=loadStatus,proto3" json:"load_status,omitempty"`
// init_status is the latest Init lifecycle status.
InitStatus *InitStatus `protobuf:"bytes,3,opt,name=init_status,json=initStatus,proto3" json:"init_status,omitempty"`
// start_status is the latest Start lifecycle status.
StartStatus *StartStatus `protobuf:"bytes,4,opt,name=start_status,json=startStatus,proto3" json:"start_status,omitempty"`
// stop_status is the latest Stop lifecycle status.
StopStatus *StopStatus `protobuf:"bytes,5,opt,name=stop_status,json=stopStatus,proto3" json:"stop_status,omitempty"`
// destroy_status is the latest Destroy lifecycle status.
DestroyStatus *DestroyStatus `protobuf:"bytes,6,opt,name=destroy_status,json=destroyStatus,proto3" json:"destroy_status,omitempty"`
// test_status is the latest Test lifecycle status.
TestStatus *TestStatus `protobuf:"bytes,7,opt,name=test_status,json=testStatus,proto3" json:"test_status,omitempty"`
// build_status is the latest Build lifecycle status.
BuildStatus *BuildStatus `protobuf:"bytes,8,opt,name=build_status,json=buildStatus,proto3" json:"build_status,omitempty"`
// lint_status is the latest Lint lifecycle status.
LintStatus *LintStatus `protobuf:"bytes,9,opt,name=lint_status,json=lintStatus,proto3" json:"lint_status,omitempty"`
// contains filtered or unexported fields
}
InformationResponse represents the runtime agent's lifecycle state.
func (*InformationResponse) Descriptor
deprecated
func (*InformationResponse) Descriptor() ([]byte, []int)
Deprecated: Use InformationResponse.ProtoReflect.Descriptor instead.
func (*InformationResponse) GetBuildStatus ¶ added in v0.1.155
func (x *InformationResponse) GetBuildStatus() *BuildStatus
func (*InformationResponse) GetDesiredState ¶
func (x *InformationResponse) GetDesiredState() *DesiredState
func (*InformationResponse) GetDestroyStatus ¶
func (x *InformationResponse) GetDestroyStatus() *DestroyStatus
func (*InformationResponse) GetInitStatus ¶
func (x *InformationResponse) GetInitStatus() *InitStatus
func (*InformationResponse) GetLintStatus ¶ added in v0.1.155
func (x *InformationResponse) GetLintStatus() *LintStatus
func (*InformationResponse) GetLoadStatus ¶
func (x *InformationResponse) GetLoadStatus() *LoadStatus
func (*InformationResponse) GetStartStatus ¶
func (x *InformationResponse) GetStartStatus() *StartStatus
func (*InformationResponse) GetStopStatus ¶
func (x *InformationResponse) GetStopStatus() *StopStatus
func (*InformationResponse) GetTestStatus ¶
func (x *InformationResponse) GetTestStatus() *TestStatus
func (*InformationResponse) ProtoMessage ¶
func (*InformationResponse) ProtoMessage()
func (*InformationResponse) ProtoReflect ¶
func (x *InformationResponse) ProtoReflect() protoreflect.Message
func (*InformationResponse) Reset ¶
func (x *InformationResponse) Reset()
func (*InformationResponse) String ¶
func (x *InformationResponse) String() string
type InitRequest ¶
type InitRequest struct {
// runtime_context is the proposed execution environment for this service.
RuntimeContext *v0.RuntimeContext `protobuf:"bytes,1,opt,name=runtime_context,json=runtimeContext,proto3" json:"runtime_context,omitempty"`
// configuration is this service's own runtime configuration.
Configuration *v0.Configuration `protobuf:"bytes,2,opt,name=configuration,proto3" json:"configuration,omitempty"`
// proposed_network_mappings are logical-to-physical endpoint mappings suggested by core.
ProposedNetworkMappings []*v0.NetworkMapping `` /* 132-byte string literal not displayed */
// dependencies_endpoints are logical endpoints exposed by services this service consumes.
DependenciesEndpoints []*v0.Endpoint `protobuf:"bytes,4,rep,name=dependencies_endpoints,json=dependenciesEndpoints,proto3" json:"dependencies_endpoints,omitempty"`
// dependencies_configurations are configuration values exported by dependent services.
DependenciesConfigurations []*v0.Configuration `` /* 139-byte string literal not displayed */
// workspace_configurations are environment-level configuration values available to the service.
WorkspaceConfigurations []*v0.Configuration `` /* 130-byte string literal not displayed */
// contains filtered or unexported fields
}
InitRequest provides resolved context and dependency information before startup.
func (*InitRequest) Descriptor
deprecated
func (*InitRequest) Descriptor() ([]byte, []int)
Deprecated: Use InitRequest.ProtoReflect.Descriptor instead.
func (*InitRequest) GetConfiguration ¶
func (x *InitRequest) GetConfiguration() *v0.Configuration
func (*InitRequest) GetDependenciesConfigurations ¶
func (x *InitRequest) GetDependenciesConfigurations() []*v0.Configuration
func (*InitRequest) GetDependenciesEndpoints ¶
func (x *InitRequest) GetDependenciesEndpoints() []*v0.Endpoint
func (*InitRequest) GetProposedNetworkMappings ¶
func (x *InitRequest) GetProposedNetworkMappings() []*v0.NetworkMapping
func (*InitRequest) GetRuntimeContext ¶
func (x *InitRequest) GetRuntimeContext() *v0.RuntimeContext
func (*InitRequest) GetWorkspaceConfigurations ¶ added in v0.1.141
func (x *InitRequest) GetWorkspaceConfigurations() []*v0.Configuration
func (*InitRequest) ProtoMessage ¶
func (*InitRequest) ProtoMessage()
func (*InitRequest) ProtoReflect ¶
func (x *InitRequest) ProtoReflect() protoreflect.Message
func (*InitRequest) Reset ¶
func (x *InitRequest) Reset()
func (*InitRequest) String ¶
func (x *InitRequest) String() string
type InitResponse ¶
type InitResponse struct {
// status reports the lifecycle or operation status.
Status *InitStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
// runtime_context describes where the service runs, such as native, nix, container, or free.
RuntimeContext *v0.RuntimeContext `protobuf:"bytes,2,opt,name=runtime_context,json=runtimeContext,proto3" json:"runtime_context,omitempty"`
// network_mappings are the concrete mappings the service will use at runtime.
NetworkMappings []*v0.NetworkMapping `protobuf:"bytes,3,rep,name=network_mappings,json=networkMappings,proto3" json:"network_mappings,omitempty"`
// runtime_configurations are values this service exports to dependents.
RuntimeConfigurations []*v0.Configuration `protobuf:"bytes,4,rep,name=runtime_configurations,json=runtimeConfigurations,proto3" json:"runtime_configurations,omitempty"`
// contains filtered or unexported fields
}
InitResponse returns the runtime context and mappings the agent actually accepted.
func (*InitResponse) Descriptor
deprecated
func (*InitResponse) Descriptor() ([]byte, []int)
Deprecated: Use InitResponse.ProtoReflect.Descriptor instead.
func (*InitResponse) GetNetworkMappings ¶
func (x *InitResponse) GetNetworkMappings() []*v0.NetworkMapping
func (*InitResponse) GetRuntimeConfigurations ¶
func (x *InitResponse) GetRuntimeConfigurations() []*v0.Configuration
func (*InitResponse) GetRuntimeContext ¶
func (x *InitResponse) GetRuntimeContext() *v0.RuntimeContext
func (*InitResponse) GetStatus ¶
func (x *InitResponse) GetStatus() *InitStatus
func (*InitResponse) ProtoMessage ¶
func (*InitResponse) ProtoMessage()
func (*InitResponse) ProtoReflect ¶
func (x *InitResponse) ProtoReflect() protoreflect.Message
func (*InitResponse) Reset ¶
func (x *InitResponse) Reset()
func (*InitResponse) String ¶
func (x *InitResponse) String() string
type InitStatus ¶
type InitStatus struct {
// state is the machine-readable lifecycle state.
State InitStatus_Status `protobuf:"varint,1,opt,name=state,proto3,enum=codefly.services.runtime.v0.InitStatus_Status" json:"state,omitempty"`
// message is a human-readable status or diagnostic summary.
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
InitStatus reports the state and message for the init lifecycle phase.
func (*InitStatus) Descriptor
deprecated
func (*InitStatus) Descriptor() ([]byte, []int)
Deprecated: Use InitStatus.ProtoReflect.Descriptor instead.
func (*InitStatus) GetMessage ¶
func (x *InitStatus) GetMessage() string
func (*InitStatus) GetState ¶
func (x *InitStatus) GetState() InitStatus_Status
func (*InitStatus) ProtoMessage ¶
func (*InitStatus) ProtoMessage()
func (*InitStatus) ProtoReflect ¶
func (x *InitStatus) ProtoReflect() protoreflect.Message
func (*InitStatus) Reset ¶
func (x *InitStatus) Reset()
func (*InitStatus) String ¶
func (x *InitStatus) String() string
type InitStatus_Status ¶
type InitStatus_Status int32
Status enumerates lifecycle status values.
const ( // UNKNOWN is the default value when status is not specified. InitStatus_UNKNOWN InitStatus_Status = 0 // READY means the phase completed and the agent can continue. InitStatus_READY InitStatus_Status = 1 // ERROR means the phase failed and message carries diagnostics. InitStatus_ERROR InitStatus_Status = 2 )
func (InitStatus_Status) Descriptor ¶
func (InitStatus_Status) Descriptor() protoreflect.EnumDescriptor
func (InitStatus_Status) Enum ¶
func (x InitStatus_Status) Enum() *InitStatus_Status
func (InitStatus_Status) EnumDescriptor
deprecated
func (InitStatus_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use InitStatus_Status.Descriptor instead.
func (InitStatus_Status) Number ¶
func (x InitStatus_Status) Number() protoreflect.EnumNumber
func (InitStatus_Status) String ¶
func (x InitStatus_Status) String() string
func (InitStatus_Status) Type ¶
func (InitStatus_Status) Type() protoreflect.EnumType
type LintRequest ¶ added in v0.1.155
type LintRequest struct {
// Optional target scope: package path, file, or empty for all.
Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
// Optional: auto-fix linting issues where possible.
Fix bool `protobuf:"varint,2,opt,name=fix,proto3" json:"fix,omitempty"`
// contains filtered or unexported fields
}
LintRequest asks the runtime agent to run the native linter.
func (*LintRequest) Descriptor
deprecated
added in
v0.1.155
func (*LintRequest) Descriptor() ([]byte, []int)
Deprecated: Use LintRequest.ProtoReflect.Descriptor instead.
func (*LintRequest) GetFix ¶ added in v0.1.155
func (x *LintRequest) GetFix() bool
func (*LintRequest) GetTarget ¶ added in v0.1.155
func (x *LintRequest) GetTarget() string
func (*LintRequest) ProtoMessage ¶ added in v0.1.155
func (*LintRequest) ProtoMessage()
func (*LintRequest) ProtoReflect ¶ added in v0.1.155
func (x *LintRequest) ProtoReflect() protoreflect.Message
func (*LintRequest) Reset ¶ added in v0.1.155
func (x *LintRequest) Reset()
func (*LintRequest) String ¶ added in v0.1.155
func (x *LintRequest) String() string
type LintResponse ¶ added in v0.1.155
type LintResponse struct {
// status reports the lifecycle or operation status.
Status *LintStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
// output is raw command, build, lint, or test output preserved for diagnostics.
Output string `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"`
// contains filtered or unexported fields
}
LintResponse returns lint status and raw tool output for diagnostics.
func (*LintResponse) Descriptor
deprecated
added in
v0.1.155
func (*LintResponse) Descriptor() ([]byte, []int)
Deprecated: Use LintResponse.ProtoReflect.Descriptor instead.
func (*LintResponse) GetOutput ¶ added in v0.1.155
func (x *LintResponse) GetOutput() string
func (*LintResponse) GetStatus ¶ added in v0.1.155
func (x *LintResponse) GetStatus() *LintStatus
func (*LintResponse) ProtoMessage ¶ added in v0.1.155
func (*LintResponse) ProtoMessage()
func (*LintResponse) ProtoReflect ¶ added in v0.1.155
func (x *LintResponse) ProtoReflect() protoreflect.Message
func (*LintResponse) Reset ¶ added in v0.1.155
func (x *LintResponse) Reset()
func (*LintResponse) String ¶ added in v0.1.155
func (x *LintResponse) String() string
type LintStatus ¶ added in v0.1.155
type LintStatus struct {
// state is the machine-readable lifecycle state.
State LintStatus_Status `protobuf:"varint,1,opt,name=state,proto3,enum=codefly.services.runtime.v0.LintStatus_Status" json:"state,omitempty"`
// message is a human-readable status or diagnostic summary.
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
LintStatus reports the state and message for the lint lifecycle phase.
func (*LintStatus) Descriptor
deprecated
added in
v0.1.155
func (*LintStatus) Descriptor() ([]byte, []int)
Deprecated: Use LintStatus.ProtoReflect.Descriptor instead.
func (*LintStatus) GetMessage ¶ added in v0.1.155
func (x *LintStatus) GetMessage() string
func (*LintStatus) GetState ¶ added in v0.1.155
func (x *LintStatus) GetState() LintStatus_Status
func (*LintStatus) ProtoMessage ¶ added in v0.1.155
func (*LintStatus) ProtoMessage()
func (*LintStatus) ProtoReflect ¶ added in v0.1.155
func (x *LintStatus) ProtoReflect() protoreflect.Message
func (*LintStatus) Reset ¶ added in v0.1.155
func (x *LintStatus) Reset()
func (*LintStatus) String ¶ added in v0.1.155
func (x *LintStatus) String() string
type LintStatus_Status ¶ added in v0.1.155
type LintStatus_Status int32
Status enumerates lifecycle status values.
const ( // UNKNOWN is the default value when status is not specified. LintStatus_UNKNOWN LintStatus_Status = 0 // SUCCESS means the operation completed successfully. LintStatus_SUCCESS LintStatus_Status = 1 // ERROR means the phase failed and message carries diagnostics. LintStatus_ERROR LintStatus_Status = 2 )
func (LintStatus_Status) Descriptor ¶ added in v0.1.155
func (LintStatus_Status) Descriptor() protoreflect.EnumDescriptor
func (LintStatus_Status) Enum ¶ added in v0.1.155
func (x LintStatus_Status) Enum() *LintStatus_Status
func (LintStatus_Status) EnumDescriptor
deprecated
added in
v0.1.155
func (LintStatus_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use LintStatus_Status.Descriptor instead.
func (LintStatus_Status) Number ¶ added in v0.1.155
func (x LintStatus_Status) Number() protoreflect.EnumNumber
func (LintStatus_Status) String ¶ added in v0.1.155
func (x LintStatus_Status) String() string
func (LintStatus_Status) Type ¶ added in v0.1.155
func (LintStatus_Status) Type() protoreflect.EnumType
type LoadRequest ¶
type LoadRequest struct {
// developer_debug enables agent-specific debug behavior for local development.
DeveloperDebug bool `protobuf:"varint,1,opt,name=developer_debug,json=developerDebug,proto3" json:"developer_debug,omitempty"`
// disable_catch disables agent panic/error recovery when debugging failures.
DisableCatch bool `protobuf:"varint,2,opt,name=disable_catch,json=disableCatch,proto3" json:"disable_catch,omitempty"`
// identity is the service instance the runtime agent should load.
Identity *v0.ServiceIdentity `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"`
// environment is the Codefly environment in which the service will run.
Environment *v0.Environment `protobuf:"bytes,4,opt,name=environment,proto3" json:"environment,omitempty"`
// contains filtered or unexported fields
}
LoadRequest gives the runtime agent enough identity to inspect the service.
func (*LoadRequest) Descriptor
deprecated
func (*LoadRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoadRequest.ProtoReflect.Descriptor instead.
func (*LoadRequest) GetDeveloperDebug ¶
func (x *LoadRequest) GetDeveloperDebug() bool
func (*LoadRequest) GetDisableCatch ¶
func (x *LoadRequest) GetDisableCatch() bool
func (*LoadRequest) GetEnvironment ¶
func (x *LoadRequest) GetEnvironment() *v0.Environment
func (*LoadRequest) GetIdentity ¶
func (x *LoadRequest) GetIdentity() *v0.ServiceIdentity
func (*LoadRequest) ProtoMessage ¶
func (*LoadRequest) ProtoMessage()
func (*LoadRequest) ProtoReflect ¶
func (x *LoadRequest) ProtoReflect() protoreflect.Message
func (*LoadRequest) Reset ¶
func (x *LoadRequest) Reset()
func (*LoadRequest) String ¶
func (x *LoadRequest) String() string
type LoadResponse ¶
type LoadResponse struct {
// version is the service version reported by the runtime agent after Load.
Version *v0.Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
// status reports the lifecycle or operation status.
Status *LoadStatus `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
// endpoints are logical endpoints exposed by the service implementation.
Endpoints []*v0.Endpoint `protobuf:"bytes,3,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
// contains filtered or unexported fields
}
LoadResponse returns service metadata discovered during the load phase.
func (*LoadResponse) Descriptor
deprecated
func (*LoadResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoadResponse.ProtoReflect.Descriptor instead.
func (*LoadResponse) GetEndpoints ¶
func (x *LoadResponse) GetEndpoints() []*v0.Endpoint
func (*LoadResponse) GetStatus ¶
func (x *LoadResponse) GetStatus() *LoadStatus
func (*LoadResponse) GetVersion ¶
func (x *LoadResponse) GetVersion() *v0.Version
func (*LoadResponse) ProtoMessage ¶
func (*LoadResponse) ProtoMessage()
func (*LoadResponse) ProtoReflect ¶
func (x *LoadResponse) ProtoReflect() protoreflect.Message
func (*LoadResponse) Reset ¶
func (x *LoadResponse) Reset()
func (*LoadResponse) String ¶
func (x *LoadResponse) String() string
type LoadStatus ¶
type LoadStatus struct {
// state is the machine-readable lifecycle state.
State LoadStatus_Status `protobuf:"varint,1,opt,name=state,proto3,enum=codefly.services.runtime.v0.LoadStatus_Status" json:"state,omitempty"`
// message is a human-readable status or diagnostic summary.
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
LoadStatus reports the state and message for the load lifecycle phase.
func (*LoadStatus) Descriptor
deprecated
func (*LoadStatus) Descriptor() ([]byte, []int)
Deprecated: Use LoadStatus.ProtoReflect.Descriptor instead.
func (*LoadStatus) GetMessage ¶
func (x *LoadStatus) GetMessage() string
func (*LoadStatus) GetState ¶
func (x *LoadStatus) GetState() LoadStatus_Status
func (*LoadStatus) ProtoMessage ¶
func (*LoadStatus) ProtoMessage()
func (*LoadStatus) ProtoReflect ¶
func (x *LoadStatus) ProtoReflect() protoreflect.Message
func (*LoadStatus) Reset ¶
func (x *LoadStatus) Reset()
func (*LoadStatus) String ¶
func (x *LoadStatus) String() string
type LoadStatus_Status ¶
type LoadStatus_Status int32
Status enumerates lifecycle status values.
const ( // UNKNOWN is the default value when status is not specified. LoadStatus_UNKNOWN LoadStatus_Status = 0 // READY means the phase completed and the agent can continue. LoadStatus_READY LoadStatus_Status = 1 // ERROR means the phase failed and message carries diagnostics. LoadStatus_ERROR LoadStatus_Status = 2 )
func (LoadStatus_Status) Descriptor ¶
func (LoadStatus_Status) Descriptor() protoreflect.EnumDescriptor
func (LoadStatus_Status) Enum ¶
func (x LoadStatus_Status) Enum() *LoadStatus_Status
func (LoadStatus_Status) EnumDescriptor
deprecated
func (LoadStatus_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use LoadStatus_Status.Descriptor instead.
func (LoadStatus_Status) Number ¶
func (x LoadStatus_Status) Number() protoreflect.EnumNumber
func (LoadStatus_Status) String ¶
func (x LoadStatus_Status) String() string
func (LoadStatus_Status) Type ¶
func (LoadStatus_Status) Type() protoreflect.EnumType
type RuntimeClient ¶
type RuntimeClient interface {
// Load discovers service metadata before any runtime resources are allocated.
Load(ctx context.Context, in *LoadRequest, opts ...grpc.CallOption) (*LoadResponse, error)
// Init resolves configuration, dependency endpoints, and concrete network mappings.
Init(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (*InitResponse, error)
// Start launches the service process and returns once it is ready or failed.
Start(ctx context.Context, in *StartRequest, opts ...grpc.CallOption) (*StartResponse, error)
// Stop terminates the running service process.
Stop(ctx context.Context, in *StopRequest, opts ...grpc.CallOption) (*StopResponse, error)
// Destroy releases runtime resources such as containers, sockets, or temp state.
Destroy(ctx context.Context, in *DestroyRequest, opts ...grpc.CallOption) (*DestroyResponse, error)
// Build runs the service's native build or compile check.
Build(ctx context.Context, in *BuildRequest, opts ...grpc.CallOption) (*BuildResponse, error)
// Test runs the service's native test command and returns structured results.
Test(ctx context.Context, in *TestRequest, opts ...grpc.CallOption) (*TestResponse, error)
// Lint runs the service's native linter.
Lint(ctx context.Context, in *LintRequest, opts ...grpc.CallOption) (*LintResponse, error)
// Information returns the latest lifecycle statuses known by the agent.
Information(ctx context.Context, in *InformationRequest, opts ...grpc.CallOption) (*InformationResponse, error)
// Bidirectional streaming for interactive Q&A.
// Plugin streams Questions, CLI streams Answers.
Communicate(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[v0.Answer, v0.Question], error)
}
RuntimeClient is the client API for Runtime 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.
Runtime exposes the agent lifecycle used to load, initialize, start, validate, stop, and destroy a running service.
func NewRuntimeClient ¶
func NewRuntimeClient(cc grpc.ClientConnInterface) RuntimeClient
type RuntimeServer ¶
type RuntimeServer interface {
// Load discovers service metadata before any runtime resources are allocated.
Load(context.Context, *LoadRequest) (*LoadResponse, error)
// Init resolves configuration, dependency endpoints, and concrete network mappings.
Init(context.Context, *InitRequest) (*InitResponse, error)
// Start launches the service process and returns once it is ready or failed.
Start(context.Context, *StartRequest) (*StartResponse, error)
// Stop terminates the running service process.
Stop(context.Context, *StopRequest) (*StopResponse, error)
// Destroy releases runtime resources such as containers, sockets, or temp state.
Destroy(context.Context, *DestroyRequest) (*DestroyResponse, error)
// Build runs the service's native build or compile check.
Build(context.Context, *BuildRequest) (*BuildResponse, error)
// Test runs the service's native test command and returns structured results.
Test(context.Context, *TestRequest) (*TestResponse, error)
// Lint runs the service's native linter.
Lint(context.Context, *LintRequest) (*LintResponse, error)
// Information returns the latest lifecycle statuses known by the agent.
Information(context.Context, *InformationRequest) (*InformationResponse, error)
// Bidirectional streaming for interactive Q&A.
// Plugin streams Questions, CLI streams Answers.
Communicate(grpc.BidiStreamingServer[v0.Answer, v0.Question]) error
// contains filtered or unexported methods
}
RuntimeServer is the server API for Runtime service. All implementations must embed UnimplementedRuntimeServer for forward compatibility.
Runtime exposes the agent lifecycle used to load, initialize, start, validate, stop, and destroy a running service.
type Runtime_CommunicateClient ¶ added in v0.1.155
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Runtime_CommunicateServer ¶ added in v0.1.155
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type StartRequest ¶
type StartRequest struct {
// specs are runtime knobs that affect how the agent starts the service.
Specs *v0.Specs `protobuf:"bytes,1,opt,name=specs,proto3" json:"specs,omitempty"`
// dependencies_network_mappings are concrete addresses for dependency endpoints.
DependenciesNetworkMappings []*v0.NetworkMapping `` /* 144-byte string literal not displayed */
// fixture selects optional fixture data or setup behavior for the start.
Fixture string `protobuf:"bytes,3,opt,name=fixture,proto3" json:"fixture,omitempty"`
// contains filtered or unexported fields
}
StartRequest launches the service process without blocking until it exits.
func (*StartRequest) Descriptor
deprecated
func (*StartRequest) Descriptor() ([]byte, []int)
Deprecated: Use StartRequest.ProtoReflect.Descriptor instead.
func (*StartRequest) GetDependenciesNetworkMappings ¶
func (x *StartRequest) GetDependenciesNetworkMappings() []*v0.NetworkMapping
func (*StartRequest) GetFixture ¶ added in v0.1.122
func (x *StartRequest) GetFixture() string
func (*StartRequest) GetSpecs ¶
func (x *StartRequest) GetSpecs() *v0.Specs
func (*StartRequest) ProtoMessage ¶
func (*StartRequest) ProtoMessage()
func (*StartRequest) ProtoReflect ¶
func (x *StartRequest) ProtoReflect() protoreflect.Message
func (*StartRequest) Reset ¶
func (x *StartRequest) Reset()
func (*StartRequest) String ¶
func (x *StartRequest) String() string
type StartResponse ¶
type StartResponse struct {
// status reports the lifecycle or operation status.
Status *StartStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
// contains filtered or unexported fields
}
StartResponse reports whether the service process reached the started state.
func (*StartResponse) Descriptor
deprecated
func (*StartResponse) Descriptor() ([]byte, []int)
Deprecated: Use StartResponse.ProtoReflect.Descriptor instead.
func (*StartResponse) GetStatus ¶
func (x *StartResponse) GetStatus() *StartStatus
func (*StartResponse) ProtoMessage ¶
func (*StartResponse) ProtoMessage()
func (*StartResponse) ProtoReflect ¶
func (x *StartResponse) ProtoReflect() protoreflect.Message
func (*StartResponse) Reset ¶
func (x *StartResponse) Reset()
func (*StartResponse) String ¶
func (x *StartResponse) String() string
type StartStatus ¶
type StartStatus struct {
// state is the machine-readable lifecycle state.
State StartStatus_Status `protobuf:"varint,1,opt,name=state,proto3,enum=codefly.services.runtime.v0.StartStatus_Status" json:"state,omitempty"`
// message is a human-readable status or diagnostic summary.
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
StartStatus reports the state and message for the start lifecycle phase.
func (*StartStatus) Descriptor
deprecated
func (*StartStatus) Descriptor() ([]byte, []int)
Deprecated: Use StartStatus.ProtoReflect.Descriptor instead.
func (*StartStatus) GetMessage ¶
func (x *StartStatus) GetMessage() string
func (*StartStatus) GetState ¶
func (x *StartStatus) GetState() StartStatus_Status
func (*StartStatus) ProtoMessage ¶
func (*StartStatus) ProtoMessage()
func (*StartStatus) ProtoReflect ¶
func (x *StartStatus) ProtoReflect() protoreflect.Message
func (*StartStatus) Reset ¶
func (x *StartStatus) Reset()
func (*StartStatus) String ¶
func (x *StartStatus) String() string
type StartStatus_Status ¶
type StartStatus_Status int32
Status enumerates lifecycle status values.
const ( // UNKNOWN is the default value when status is not specified. StartStatus_UNKNOWN StartStatus_Status = 0 // STARTED means the service process is running and ready. StartStatus_STARTED StartStatus_Status = 1 // ERROR means the phase failed and message carries diagnostics. StartStatus_ERROR StartStatus_Status = 2 )
func (StartStatus_Status) Descriptor ¶
func (StartStatus_Status) Descriptor() protoreflect.EnumDescriptor
func (StartStatus_Status) Enum ¶
func (x StartStatus_Status) Enum() *StartStatus_Status
func (StartStatus_Status) EnumDescriptor
deprecated
func (StartStatus_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use StartStatus_Status.Descriptor instead.
func (StartStatus_Status) Number ¶
func (x StartStatus_Status) Number() protoreflect.EnumNumber
func (StartStatus_Status) String ¶
func (x StartStatus_Status) String() string
func (StartStatus_Status) Type ¶
func (StartStatus_Status) Type() protoreflect.EnumType
type StopRequest ¶
type StopRequest struct {
// contains filtered or unexported fields
}
StopRequest asks the runtime agent to stop the service process.
func (*StopRequest) Descriptor
deprecated
func (*StopRequest) Descriptor() ([]byte, []int)
Deprecated: Use StopRequest.ProtoReflect.Descriptor instead.
func (*StopRequest) ProtoMessage ¶
func (*StopRequest) ProtoMessage()
func (*StopRequest) ProtoReflect ¶
func (x *StopRequest) ProtoReflect() protoreflect.Message
func (*StopRequest) Reset ¶
func (x *StopRequest) Reset()
func (*StopRequest) String ¶
func (x *StopRequest) String() string
type StopResponse ¶
type StopResponse struct {
// status reports the lifecycle or operation status.
Status *StopStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
// contains filtered or unexported fields
}
StopResponse reports whether the service process stopped cleanly.
func (*StopResponse) Descriptor
deprecated
func (*StopResponse) Descriptor() ([]byte, []int)
Deprecated: Use StopResponse.ProtoReflect.Descriptor instead.
func (*StopResponse) GetStatus ¶
func (x *StopResponse) GetStatus() *StopStatus
func (*StopResponse) ProtoMessage ¶
func (*StopResponse) ProtoMessage()
func (*StopResponse) ProtoReflect ¶
func (x *StopResponse) ProtoReflect() protoreflect.Message
func (*StopResponse) Reset ¶
func (x *StopResponse) Reset()
func (*StopResponse) String ¶
func (x *StopResponse) String() string
type StopStatus ¶
type StopStatus struct {
// state is the machine-readable lifecycle state.
State StopStatus_Status `protobuf:"varint,1,opt,name=state,proto3,enum=codefly.services.runtime.v0.StopStatus_Status" json:"state,omitempty"`
// message is a human-readable status or diagnostic summary.
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
StopStatus reports the state and message for the stop lifecycle phase.
func (*StopStatus) Descriptor
deprecated
func (*StopStatus) Descriptor() ([]byte, []int)
Deprecated: Use StopStatus.ProtoReflect.Descriptor instead.
func (*StopStatus) GetMessage ¶
func (x *StopStatus) GetMessage() string
func (*StopStatus) GetState ¶
func (x *StopStatus) GetState() StopStatus_Status
func (*StopStatus) ProtoMessage ¶
func (*StopStatus) ProtoMessage()
func (*StopStatus) ProtoReflect ¶
func (x *StopStatus) ProtoReflect() protoreflect.Message
func (*StopStatus) Reset ¶
func (x *StopStatus) Reset()
func (*StopStatus) String ¶
func (x *StopStatus) String() string
type StopStatus_Status ¶
type StopStatus_Status int32
Status enumerates lifecycle status values.
const ( // UNKNOWN is the default value when status is not specified. StopStatus_UNKNOWN StopStatus_Status = 0 // SUCCESS means the operation completed successfully. StopStatus_SUCCESS StopStatus_Status = 1 // ERROR means the phase failed and message carries diagnostics. StopStatus_ERROR StopStatus_Status = 2 )
func (StopStatus_Status) Descriptor ¶
func (StopStatus_Status) Descriptor() protoreflect.EnumDescriptor
func (StopStatus_Status) Enum ¶
func (x StopStatus_Status) Enum() *StopStatus_Status
func (StopStatus_Status) EnumDescriptor
deprecated
func (StopStatus_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use StopStatus_Status.Descriptor instead.
func (StopStatus_Status) Number ¶
func (x StopStatus_Status) Number() protoreflect.EnumNumber
func (StopStatus_Status) String ¶
func (x StopStatus_Status) String() string
func (StopStatus_Status) Type ¶
func (StopStatus_Status) Type() protoreflect.EnumType
type TestCase ¶ added in v0.1.157
type TestCase struct {
// Local case name as the runner reports it.
//
// Go: "TestPolicy_Apply_DefaultsToDeny"
// Python: "test_user_creation"
// Jest: "should reject expired tokens"
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Fully-qualified name across the workspace; useful for
// de-duplication when the same `name` appears in multiple suites.
//
// "github.com/codefly-dev/core/policy.TestPolicy_Apply_DefaultsToDeny"
FullName string `protobuf:"bytes,2,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"`
// Per-case outcome.
State TestCaseState `protobuf:"varint,3,opt,name=state,proto3,enum=codefly.services.runtime.v0.TestCaseState" json:"state,omitempty"`
// Wall-clock duration of THIS case (excludes parent suite setup).
Duration *durationpb.Duration `protobuf:"bytes,4,opt,name=duration,proto3" json:"duration,omitempty"`
// Source location — file + line + (when known) function. Drives
// IDE jump and makes Mind's "the failure is at X" actionable.
Location *TestLocation `protobuf:"bytes,5,opt,name=location,proto3" json:"location,omitempty"`
// Failure detail. Empty when state == PASSED. Required when state
// is FAILED or ERRORED.
Failure *TestFailure `protobuf:"bytes,6,opt,name=failure,proto3" json:"failure,omitempty"`
// Stdout/stderr captured during the case execution. Populated for
// FAILED/ERRORED. EMPTY for PASSED unless TestRequest.verbose was
// set. The output retention policy is the load-bearing fix that
// keeps response sizes manageable on large suites.
CapturedOutput string `protobuf:"bytes,7,opt,name=captured_output,json=capturedOutput,proto3" json:"captured_output,omitempty"`
// Tags / categories declared on the test (Go build tags, pytest
// marks, Jest test.skip annotations). Useful for filtering in
// reporting layers without re-running.
Tags []string `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"`
// Retry attempts. Only set when the runner re-ran the case
// (Jest's `retries`, Playwright's `retries`). Each entry is a
// distinct attempt; the `state` of the final attempt matches
// the case's top-level `state`.
Retries []*TestRetry `protobuf:"bytes,9,rep,name=retries,proto3" json:"retries,omitempty"`
// contains filtered or unexported fields
}
TestCase is a single test invocation. The unit Mind reasons about when it asks "what failed?".
func (*TestCase) Descriptor
deprecated
added in
v0.1.157
func (*TestCase) GetCapturedOutput ¶ added in v0.1.157
func (*TestCase) GetDuration ¶ added in v0.1.157
func (x *TestCase) GetDuration() *durationpb.Duration
func (*TestCase) GetFailure ¶ added in v0.1.157
func (x *TestCase) GetFailure() *TestFailure
func (*TestCase) GetFullName ¶ added in v0.1.157
func (*TestCase) GetLocation ¶ added in v0.1.157
func (x *TestCase) GetLocation() *TestLocation
func (*TestCase) GetRetries ¶ added in v0.1.157
func (*TestCase) GetState ¶ added in v0.1.157
func (x *TestCase) GetState() TestCaseState
func (*TestCase) ProtoMessage ¶ added in v0.1.157
func (*TestCase) ProtoMessage()
func (*TestCase) ProtoReflect ¶ added in v0.1.157
func (x *TestCase) ProtoReflect() protoreflect.Message
type TestCaseState ¶ added in v0.1.157
type TestCaseState int32
TestCaseState is the per-case outcome. Distinct from TestRunResult — a run can be FAILED while individual cases were PASSED (others failed); a run can be PASSED while a case was SKIPPED.
const ( // TEST_CASE_STATE_UNSPECIFIED is the default value when test case state is not specified. TestCaseState_TEST_CASE_STATE_UNSPECIFIED TestCaseState = 0 // TEST_CASE_STATE_PASSED marks a test case as passed. TestCaseState_TEST_CASE_STATE_PASSED TestCaseState = 1 // TEST_CASE_STATE_FAILED marks a test case as failed. TestCaseState_TEST_CASE_STATE_FAILED TestCaseState = 2 // TEST_CASE_STATE_SKIPPED marks a test case as skipped. TestCaseState_TEST_CASE_STATE_SKIPPED TestCaseState = 3 // ERRORED is for non-assertion failures: panics, setup/teardown // crashes, build failures attributed to this case. Surfaced // separately because the diagnosis flow differs (a panic is a // bug in the test or production code; an assertion fail is a bug // in production code). TestCaseState_TEST_CASE_STATE_ERRORED TestCaseState = 4 )
func (TestCaseState) Descriptor ¶ added in v0.1.157
func (TestCaseState) Descriptor() protoreflect.EnumDescriptor
func (TestCaseState) Enum ¶ added in v0.1.157
func (x TestCaseState) Enum() *TestCaseState
func (TestCaseState) EnumDescriptor
deprecated
added in
v0.1.157
func (TestCaseState) EnumDescriptor() ([]byte, []int)
Deprecated: Use TestCaseState.Descriptor instead.
func (TestCaseState) Number ¶ added in v0.1.157
func (x TestCaseState) Number() protoreflect.EnumNumber
func (TestCaseState) String ¶ added in v0.1.157
func (x TestCaseState) String() string
func (TestCaseState) Type ¶ added in v0.1.157
func (TestCaseState) Type() protoreflect.EnumType
type TestCounts ¶ added in v0.1.157
type TestCounts struct {
// total is the aggregate number of cases represented.
Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
// passed is the number of cases that passed.
Passed int32 `protobuf:"varint,2,opt,name=passed,proto3" json:"passed,omitempty"`
// failed is the number of cases that failed assertions.
Failed int32 `protobuf:"varint,3,opt,name=failed,proto3" json:"failed,omitempty"`
// skipped is the number of cases the runner skipped.
Skipped int32 `protobuf:"varint,4,opt,name=skipped,proto3" json:"skipped,omitempty"`
// errored is the number of cases that crashed or failed setup/teardown.
Errored int32 `protobuf:"varint,5,opt,name=errored,proto3" json:"errored,omitempty"`
// flaky is the number of cases that only passed after retry.
Flaky int32 `protobuf:"varint,6,opt,name=flaky,proto3" json:"flaky,omitempty"`
// contains filtered or unexported fields
}
TestCounts is the aggregate ledger. Errored is distinct from failed — a case that PANICED or had setup-fail is `errored`; a case that ran but failed an assertion is `failed`. Flaky counts cases that passed on retry (retry_attempts > 1).
func (*TestCounts) Descriptor
deprecated
added in
v0.1.157
func (*TestCounts) Descriptor() ([]byte, []int)
Deprecated: Use TestCounts.ProtoReflect.Descriptor instead.
func (*TestCounts) GetErrored ¶ added in v0.1.157
func (x *TestCounts) GetErrored() int32
func (*TestCounts) GetFailed ¶ added in v0.1.157
func (x *TestCounts) GetFailed() int32
func (*TestCounts) GetFlaky ¶ added in v0.1.157
func (x *TestCounts) GetFlaky() int32
func (*TestCounts) GetPassed ¶ added in v0.1.157
func (x *TestCounts) GetPassed() int32
func (*TestCounts) GetSkipped ¶ added in v0.1.157
func (x *TestCounts) GetSkipped() int32
func (*TestCounts) GetTotal ¶ added in v0.1.157
func (x *TestCounts) GetTotal() int32
func (*TestCounts) ProtoMessage ¶ added in v0.1.157
func (*TestCounts) ProtoMessage()
func (*TestCounts) ProtoReflect ¶ added in v0.1.157
func (x *TestCounts) ProtoReflect() protoreflect.Message
func (*TestCounts) Reset ¶ added in v0.1.157
func (x *TestCounts) Reset()
func (*TestCounts) String ¶ added in v0.1.157
func (x *TestCounts) String() string
type TestCoverage ¶ added in v0.1.157
type TestCoverage struct {
// Overall coverage 0-100.
TotalPct float32 `protobuf:"fixed32,1,opt,name=total_pct,json=totalPct,proto3" json:"total_pct,omitempty"`
// Per-file breakdown. Conventionally sorted by lowest pct first
// (most interesting to inspect).
Files []*TestFileCoverage `protobuf:"bytes,2,rep,name=files,proto3" json:"files,omitempty"`
// Path to the raw artifact (cover.out for Go, lcov.info for JS).
// Optional — agents may or may not surface this. Consumers that
// need finer detail (per-line marks, branch coverage) read this.
RawArtifactPath string `protobuf:"bytes,3,opt,name=raw_artifact_path,json=rawArtifactPath,proto3" json:"raw_artifact_path,omitempty"`
// Format identifier for the raw artifact.
// Conventional values: "go-cover" | "lcov" | "cobertura" | "junit".
RawArtifactFormat string `protobuf:"bytes,4,opt,name=raw_artifact_format,json=rawArtifactFormat,proto3" json:"raw_artifact_format,omitempty"`
// contains filtered or unexported fields
}
TestCoverage is the optional coverage breakdown — only populated when TestRequest.coverage was true.
func (*TestCoverage) Descriptor
deprecated
added in
v0.1.157
func (*TestCoverage) Descriptor() ([]byte, []int)
Deprecated: Use TestCoverage.ProtoReflect.Descriptor instead.
func (*TestCoverage) GetFiles ¶ added in v0.1.157
func (x *TestCoverage) GetFiles() []*TestFileCoverage
func (*TestCoverage) GetRawArtifactFormat ¶ added in v0.1.157
func (x *TestCoverage) GetRawArtifactFormat() string
func (*TestCoverage) GetRawArtifactPath ¶ added in v0.1.157
func (x *TestCoverage) GetRawArtifactPath() string
func (*TestCoverage) GetTotalPct ¶ added in v0.1.157
func (x *TestCoverage) GetTotalPct() float32
func (*TestCoverage) ProtoMessage ¶ added in v0.1.157
func (*TestCoverage) ProtoMessage()
func (*TestCoverage) ProtoReflect ¶ added in v0.1.157
func (x *TestCoverage) ProtoReflect() protoreflect.Message
func (*TestCoverage) Reset ¶ added in v0.1.157
func (x *TestCoverage) Reset()
func (*TestCoverage) String ¶ added in v0.1.157
func (x *TestCoverage) String() string
type TestFailure ¶ added in v0.1.157
type TestFailure struct {
// One-line summary: "expected 3, got 5" or "panic: nil pointer dereference".
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
// Multi-line detail: stack trace, full diff, expected vs actual.
// Bounded by the agent's per-case output cap.
Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"`
// Failure category. Drives Mind's diagnosis flow.
Kind TestFailureKind `protobuf:"varint,3,opt,name=kind,proto3,enum=codefly.services.runtime.v0.TestFailureKind" json:"kind,omitempty"`
// Location where the assertion fired or the panic occurred —
// typically deeper than the case's declaration site.
SourceLocation *TestLocation `protobuf:"bytes,4,opt,name=source_location,json=sourceLocation,proto3" json:"source_location,omitempty"`
// Skip reason when the case was SKIPPED (not technically a
// failure, but the explanation lives in the same struct so
// consumers have one place to look).
SkipReason string `protobuf:"bytes,5,opt,name=skip_reason,json=skipReason,proto3" json:"skip_reason,omitempty"`
// contains filtered or unexported fields
}
TestFailure carries the diagnostic detail for failed/errored cases.
func (*TestFailure) Descriptor
deprecated
added in
v0.1.157
func (*TestFailure) Descriptor() ([]byte, []int)
Deprecated: Use TestFailure.ProtoReflect.Descriptor instead.
func (*TestFailure) GetDetail ¶ added in v0.1.157
func (x *TestFailure) GetDetail() string
func (*TestFailure) GetKind ¶ added in v0.1.157
func (x *TestFailure) GetKind() TestFailureKind
func (*TestFailure) GetMessage ¶ added in v0.1.157
func (x *TestFailure) GetMessage() string
func (*TestFailure) GetSkipReason ¶ added in v0.1.157
func (x *TestFailure) GetSkipReason() string
func (*TestFailure) GetSourceLocation ¶ added in v0.1.157
func (x *TestFailure) GetSourceLocation() *TestLocation
func (*TestFailure) ProtoMessage ¶ added in v0.1.157
func (*TestFailure) ProtoMessage()
func (*TestFailure) ProtoReflect ¶ added in v0.1.157
func (x *TestFailure) ProtoReflect() protoreflect.Message
func (*TestFailure) Reset ¶ added in v0.1.157
func (x *TestFailure) Reset()
func (*TestFailure) String ¶ added in v0.1.157
func (x *TestFailure) String() string
type TestFailureKind ¶ added in v0.1.157
type TestFailureKind int32
TestFailureKind enumerates supported test failure kinds.
const ( // TEST_FAILURE_KIND_UNSPECIFIED is the default value when test failure kind is not specified. TestFailureKind_TEST_FAILURE_KIND_UNSPECIFIED TestFailureKind = 0 // Plain assertion failure: require.Equal, expect().toBe(), assert. TestFailureKind_TEST_FAILURE_KIND_ASSERTION TestFailureKind = 1 // Unhandled panic / exception during execution. TestFailureKind_TEST_FAILURE_KIND_PANIC TestFailureKind = 2 // Per-case timeout (NOT whole-run; that's TestRunResult.TIMED_OUT). TestFailureKind_TEST_FAILURE_KIND_TIMEOUT TestFailureKind = 3 // Compile/build failure attributed to this suite (no cases // actually ran, but the runner reports them as "failed"). TestFailureKind_TEST_FAILURE_KIND_BUILD_ERROR TestFailureKind = 4 // Setup or teardown crash (BeforeEach, fixture, BeforeAll). TestFailureKind_TEST_FAILURE_KIND_SETUP TestFailureKind = 5 )
func (TestFailureKind) Descriptor ¶ added in v0.1.157
func (TestFailureKind) Descriptor() protoreflect.EnumDescriptor
func (TestFailureKind) Enum ¶ added in v0.1.157
func (x TestFailureKind) Enum() *TestFailureKind
func (TestFailureKind) EnumDescriptor
deprecated
added in
v0.1.157
func (TestFailureKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use TestFailureKind.Descriptor instead.
func (TestFailureKind) Number ¶ added in v0.1.157
func (x TestFailureKind) Number() protoreflect.EnumNumber
func (TestFailureKind) String ¶ added in v0.1.157
func (x TestFailureKind) String() string
func (TestFailureKind) Type ¶ added in v0.1.157
func (TestFailureKind) Type() protoreflect.EnumType
type TestFileCoverage ¶ added in v0.1.157
type TestFileCoverage struct {
// file is a workspace- or service-relative source file path.
File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
// pct is the file coverage percentage from 0 to 100.
Pct float32 `protobuf:"fixed32,2,opt,name=pct,proto3" json:"pct,omitempty"`
// lines_covered is the number of covered source lines.
LinesCovered int32 `protobuf:"varint,3,opt,name=lines_covered,json=linesCovered,proto3" json:"lines_covered,omitempty"`
// lines_total is the total number of coverable source lines.
LinesTotal int32 `protobuf:"varint,4,opt,name=lines_total,json=linesTotal,proto3" json:"lines_total,omitempty"`
// contains filtered or unexported fields
}
TestFileCoverage records coverage statistics for one source file.
func (*TestFileCoverage) Descriptor
deprecated
added in
v0.1.157
func (*TestFileCoverage) Descriptor() ([]byte, []int)
Deprecated: Use TestFileCoverage.ProtoReflect.Descriptor instead.
func (*TestFileCoverage) GetFile ¶ added in v0.1.157
func (x *TestFileCoverage) GetFile() string
func (*TestFileCoverage) GetLinesCovered ¶ added in v0.1.157
func (x *TestFileCoverage) GetLinesCovered() int32
func (*TestFileCoverage) GetLinesTotal ¶ added in v0.1.157
func (x *TestFileCoverage) GetLinesTotal() int32
func (*TestFileCoverage) GetPct ¶ added in v0.1.157
func (x *TestFileCoverage) GetPct() float32
func (*TestFileCoverage) ProtoMessage ¶ added in v0.1.157
func (*TestFileCoverage) ProtoMessage()
func (*TestFileCoverage) ProtoReflect ¶ added in v0.1.157
func (x *TestFileCoverage) ProtoReflect() protoreflect.Message
func (*TestFileCoverage) Reset ¶ added in v0.1.157
func (x *TestFileCoverage) Reset()
func (*TestFileCoverage) String ¶ added in v0.1.157
func (x *TestFileCoverage) String() string
type TestLocation ¶ added in v0.1.157
type TestLocation struct {
// File path. Absolute or repo-relative — agent's choice; consumers
// resolve via SourceLocation when needed.
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"`
// Function name when available (Go: TestFoo; pytest: test_foo).
Function string `protobuf:"bytes,4,opt,name=function,proto3" json:"function,omitempty"`
// contains filtered or unexported fields
}
TestLocation pins a source location for IDE jump.
func (*TestLocation) Descriptor
deprecated
added in
v0.1.157
func (*TestLocation) Descriptor() ([]byte, []int)
Deprecated: Use TestLocation.ProtoReflect.Descriptor instead.
func (*TestLocation) GetColumn ¶ added in v0.1.157
func (x *TestLocation) GetColumn() int32
func (*TestLocation) GetFile ¶ added in v0.1.157
func (x *TestLocation) GetFile() string
func (*TestLocation) GetFunction ¶ added in v0.1.157
func (x *TestLocation) GetFunction() string
func (*TestLocation) GetLine ¶ added in v0.1.157
func (x *TestLocation) GetLine() int32
func (*TestLocation) ProtoMessage ¶ added in v0.1.157
func (*TestLocation) ProtoMessage()
func (*TestLocation) ProtoReflect ¶ added in v0.1.157
func (x *TestLocation) ProtoReflect() protoreflect.Message
func (*TestLocation) Reset ¶ added in v0.1.157
func (x *TestLocation) Reset()
func (*TestLocation) String ¶ added in v0.1.157
func (x *TestLocation) String() string
type TestRequest ¶
type TestRequest struct {
// Optional target: package or directory scope (e.g. "./handlers" for Go,
// "tests/unit" for Python). For name-pattern filtering, prefer `filters`.
// Empty runs the agent's default scope.
Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
// Optional: run with verbose output.
Verbose bool `protobuf:"varint,2,opt,name=verbose,proto3" json:"verbose,omitempty"`
// Optional: run with race detector.
Race bool `protobuf:"varint,3,opt,name=race,proto3" json:"race,omitempty"`
// Optional: timeout per test (e.g. "30s"). Empty uses agent default.
Timeout string `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty"`
// Optional: run with coverage instrumentation. Off by default —
// -cover roughly doubles compile time for test binaries.
Coverage bool `protobuf:"varint,5,opt,name=coverage,proto3" json:"coverage,omitempty"`
// Optional: name-pattern filters (regex). Multiple values are combined
// with OR. Each agent maps these to its native filter mechanism:
//
// Go (go test): -run "(p1|p2|...)"
// JS (vitest/jest): --testNamePattern "(p1|p2|...)"
// JS (playwright): --grep "(p1|p2|...)"
// Python (pytest): -k "p1 or p2 or ..."
//
// Empty list matches everything.
Filters []string `protobuf:"bytes,6,rep,name=filters,proto3" json:"filters,omitempty"`
// Optional: named test suite. Agents decide what each name means.
// Conventional values:
//
// "unit" — fast, no infra (default if empty)
// "integration" — needs dependencies via withDependencies
// "e2e" — full stack via Playwright/Cypress/etc.
// "smoke" — minimal post-deploy checks
//
// Agents that only run one kind of test ignore this.
Suite string `protobuf:"bytes,7,opt,name=suite,proto3" json:"suite,omitempty"`
// Optional: extra args appended verbatim to the underlying test runner
// command. Power-user escape hatch for flags codefly does not model.
// Agents must NOT interpret these — pass through unchanged.
ExtraArgs []string `protobuf:"bytes,8,rep,name=extra_args,json=extraArgs,proto3" json:"extra_args,omitempty"`
// contains filtered or unexported fields
}
TestRequest asks the runtime agent to run native tests for this service.
func (*TestRequest) Descriptor
deprecated
func (*TestRequest) Descriptor() ([]byte, []int)
Deprecated: Use TestRequest.ProtoReflect.Descriptor instead.
func (*TestRequest) GetCoverage ¶ added in v0.1.155
func (x *TestRequest) GetCoverage() bool
func (*TestRequest) GetExtraArgs ¶ added in v0.1.157
func (x *TestRequest) GetExtraArgs() []string
func (*TestRequest) GetFilters ¶ added in v0.1.157
func (x *TestRequest) GetFilters() []string
func (*TestRequest) GetRace ¶ added in v0.1.155
func (x *TestRequest) GetRace() bool
func (*TestRequest) GetSuite ¶ added in v0.1.157
func (x *TestRequest) GetSuite() string
func (*TestRequest) GetTarget ¶ added in v0.1.155
func (x *TestRequest) GetTarget() string
func (*TestRequest) GetTimeout ¶ added in v0.1.155
func (x *TestRequest) GetTimeout() string
func (*TestRequest) GetVerbose ¶ added in v0.1.155
func (x *TestRequest) GetVerbose() bool
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 {
// --- Legacy flat fields ---
// Kept populated for backward compatibility while consumers migrate
// to the structured tree below. New code SHOULD prefer `result`,
// `counts`, and `suites`. The flat fields are computed from the
// structured tree — single source of truth.
//
// Deprecated: Marked as deprecated in codefly/services/runtime/v0/runtime.proto.
Status *TestStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
// Legacy: full runner output dump. Wastes bandwidth + Mind context
// on large suites. New consumers read per-case `captured_output`
// from `suites[].cases[]` (populated only for FAILED/ERRORED cases
// unless TestRequest.verbose is true).
//
// Deprecated: Marked as deprecated in codefly/services/runtime/v0/runtime.proto.
Output string `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"`
// tests_run is the total number of tests executed.
//
// Deprecated: Marked as deprecated in codefly/services/runtime/v0/runtime.proto.
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.
//
// Deprecated: Marked as deprecated in codefly/services/runtime/v0/runtime.proto.
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.
//
// Deprecated: Marked as deprecated in codefly/services/runtime/v0/runtime.proto.
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.
//
// Deprecated: Marked as deprecated in codefly/services/runtime/v0/runtime.proto.
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.
//
// Deprecated: Marked as deprecated in codefly/services/runtime/v0/runtime.proto.
CoveragePct float32 `protobuf:"fixed32,7,opt,name=coverage_pct,json=coveragePct,proto3" json:"coverage_pct,omitempty"`
// failures are concise failing test names or messages.
//
// Deprecated: Marked as deprecated in codefly/services/runtime/v0/runtime.proto.
Failures []string `protobuf:"bytes,8,rep,name=failures,proto3" json:"failures,omitempty"`
// Run-level metadata (which runner ran, how long, etc).
Run *TestRun `protobuf:"bytes,9,opt,name=run,proto3" json:"run,omitempty"`
// Overall outcome of the entire run. Independent from per-case
// states because a run can ERROR (build failure, infra setup
// failure) without any individual case running.
Result *TestRunResult `protobuf:"bytes,10,opt,name=result,proto3" json:"result,omitempty"`
// Aggregate counts. Computed from `suites`; surfaced top-level for
// fast access (callers wanting "did the run pass?" don't have to
// walk the tree).
Counts *TestCounts `protobuf:"bytes,11,opt,name=counts,proto3" json:"counts,omitempty"`
// Hierarchical results: a run contains suites; suites contain
// sub-suites and/or cases. A "suite" is whatever the runner's
// grouping primitive is — a Go package, a pytest test file, a
// Jest describe block. Nesting allowed (Jest describe-in-describe,
// pytest classes inside files).
Suites []*TestSuite `protobuf:"bytes,12,rep,name=suites,proto3" json:"suites,omitempty"`
// Optional coverage breakdown. Only set when TestRequest.coverage
// was true.
Coverage *TestCoverage `protobuf:"bytes,13,opt,name=coverage,proto3" json:"coverage,omitempty"`
// Truncation metadata — surfaces when the runner emitted more
// output than the agent's caps allow. Mind/CLI display the cap
// and offer to fetch the full output for specific cases on demand.
Truncation *TestTruncation `protobuf:"bytes,14,opt,name=truncation,proto3" json:"truncation,omitempty"`
// contains filtered or unexported fields
}
TestResponse returns both legacy flat counts and structured test results.
func (*TestResponse) Descriptor
deprecated
func (*TestResponse) Descriptor() ([]byte, []int)
Deprecated: Use TestResponse.ProtoReflect.Descriptor instead.
func (*TestResponse) GetCounts ¶ added in v0.1.157
func (x *TestResponse) GetCounts() *TestCounts
func (*TestResponse) GetCoverage ¶ added in v0.1.157
func (x *TestResponse) GetCoverage() *TestCoverage
func (*TestResponse) GetCoveragePct
deprecated
added in
v0.1.155
func (x *TestResponse) GetCoveragePct() float32
Deprecated: Marked as deprecated in codefly/services/runtime/v0/runtime.proto.
func (*TestResponse) GetFailures
deprecated
added in
v0.1.155
func (x *TestResponse) GetFailures() []string
Deprecated: Marked as deprecated in codefly/services/runtime/v0/runtime.proto.
func (*TestResponse) GetOutput
deprecated
added in
v0.1.155
func (x *TestResponse) GetOutput() string
Deprecated: Marked as deprecated in codefly/services/runtime/v0/runtime.proto.
func (*TestResponse) GetResult ¶ added in v0.1.157
func (x *TestResponse) GetResult() *TestRunResult
func (*TestResponse) GetRun ¶ added in v0.1.157
func (x *TestResponse) GetRun() *TestRun
func (*TestResponse) GetStatus
deprecated
func (x *TestResponse) GetStatus() *TestStatus
Deprecated: Marked as deprecated in codefly/services/runtime/v0/runtime.proto.
func (*TestResponse) GetSuites ¶ added in v0.1.157
func (x *TestResponse) GetSuites() []*TestSuite
func (*TestResponse) GetTestsFailed
deprecated
added in
v0.1.155
func (x *TestResponse) GetTestsFailed() int32
Deprecated: Marked as deprecated in codefly/services/runtime/v0/runtime.proto.
func (*TestResponse) GetTestsPassed
deprecated
added in
v0.1.155
func (x *TestResponse) GetTestsPassed() int32
Deprecated: Marked as deprecated in codefly/services/runtime/v0/runtime.proto.
func (*TestResponse) GetTestsRun
deprecated
added in
v0.1.155
func (x *TestResponse) GetTestsRun() int32
Deprecated: Marked as deprecated in codefly/services/runtime/v0/runtime.proto.
func (*TestResponse) GetTestsSkipped
deprecated
added in
v0.1.155
func (x *TestResponse) GetTestsSkipped() int32
Deprecated: Marked as deprecated in codefly/services/runtime/v0/runtime.proto.
func (*TestResponse) GetTruncation ¶ added in v0.1.157
func (x *TestResponse) GetTruncation() *TestTruncation
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 TestRetry ¶ added in v0.1.157
type TestRetry struct {
// attempt is the 1-based retry attempt number.
Attempt int32 `protobuf:"varint,1,opt,name=attempt,proto3" json:"attempt,omitempty"` // 1-indexed
// state is the machine-readable lifecycle state.
State TestCaseState `protobuf:"varint,2,opt,name=state,proto3,enum=codefly.services.runtime.v0.TestCaseState" json:"state,omitempty"`
// duration is wall-clock time spent on the run, suite, case, or operation.
Duration *durationpb.Duration `protobuf:"bytes,3,opt,name=duration,proto3" json:"duration,omitempty"`
// Failure detail if the attempt failed. Empty if it passed.
Failure *TestFailure `protobuf:"bytes,4,opt,name=failure,proto3" json:"failure,omitempty"`
// contains filtered or unexported fields
}
TestRetry is one attempt of a case that was retried.
func (*TestRetry) Descriptor
deprecated
added in
v0.1.157
func (*TestRetry) GetAttempt ¶ added in v0.1.157
func (*TestRetry) GetDuration ¶ added in v0.1.157
func (x *TestRetry) GetDuration() *durationpb.Duration
func (*TestRetry) GetFailure ¶ added in v0.1.157
func (x *TestRetry) GetFailure() *TestFailure
func (*TestRetry) GetState ¶ added in v0.1.157
func (x *TestRetry) GetState() TestCaseState
func (*TestRetry) ProtoMessage ¶ added in v0.1.157
func (*TestRetry) ProtoMessage()
func (*TestRetry) ProtoReflect ¶ added in v0.1.157
func (x *TestRetry) ProtoReflect() protoreflect.Message
type TestRun ¶ added in v0.1.157
type TestRun struct {
// Runner identity. Conventional values:
//
// "go-test" — `go test -json`
// "pytest" — pytest with junit-xml or pytest-json-report
// "vitest" — vitest with --reporter=json
// "jest" — jest with --json
// "playwright" — playwright with --reporter=json
Runner string `protobuf:"bytes,1,opt,name=runner,proto3" json:"runner,omitempty"`
// The TestRequest.suite the agent honored ("unit" | "integration"
// | "e2e" | "smoke" | ""). Echoed so consumers that buffer
// multiple runs can group by suite.
SuiteName string `protobuf:"bytes,2,opt,name=suite_name,json=suiteName,proto3" json:"suite_name,omitempty"`
// Wall-clock duration of the entire run.
Duration *durationpb.Duration `protobuf:"bytes,3,opt,name=duration,proto3" json:"duration,omitempty"`
// contains filtered or unexported fields
}
TestRun carries metadata about the run itself — independent of what passed or failed.
func (*TestRun) Descriptor
deprecated
added in
v0.1.157
func (*TestRun) GetDuration ¶ added in v0.1.157
func (x *TestRun) GetDuration() *durationpb.Duration
func (*TestRun) GetSuiteName ¶ added in v0.1.157
func (*TestRun) ProtoMessage ¶ added in v0.1.157
func (*TestRun) ProtoMessage()
func (*TestRun) ProtoReflect ¶ added in v0.1.157
func (x *TestRun) ProtoReflect() protoreflect.Message
type TestRunResult ¶ added in v0.1.157
type TestRunResult struct {
// state is the machine-readable lifecycle state.
State TestRunResult_State `protobuf:"varint,1,opt,name=state,proto3,enum=codefly.services.runtime.v0.TestRunResult_State" json:"state,omitempty"`
// Human-readable summary suitable for a status line.
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
TestRunResult is the run-level outcome. Distinct from per-case state because a run can be aborted before/during cases: BUILD_ERROR (compile-fail), SETUP_ERROR (fixture failed), TIMEOUT (whole-run timeout fired).
func (*TestRunResult) Descriptor
deprecated
added in
v0.1.157
func (*TestRunResult) Descriptor() ([]byte, []int)
Deprecated: Use TestRunResult.ProtoReflect.Descriptor instead.
func (*TestRunResult) GetMessage ¶ added in v0.1.157
func (x *TestRunResult) GetMessage() string
func (*TestRunResult) GetState ¶ added in v0.1.157
func (x *TestRunResult) GetState() TestRunResult_State
func (*TestRunResult) ProtoMessage ¶ added in v0.1.157
func (*TestRunResult) ProtoMessage()
func (*TestRunResult) ProtoReflect ¶ added in v0.1.157
func (x *TestRunResult) ProtoReflect() protoreflect.Message
func (*TestRunResult) Reset ¶ added in v0.1.157
func (x *TestRunResult) Reset()
func (*TestRunResult) String ¶ added in v0.1.157
func (x *TestRunResult) String() string
type TestRunResult_State ¶ added in v0.1.157
type TestRunResult_State int32
State enumerates run-level outcomes.
const ( // UNKNOWN is the default value when state is not specified. TestRunResult_UNKNOWN TestRunResult_State = 0 // All cases passed (or skipped); zero failures + zero errors. TestRunResult_PASSED TestRunResult_State = 1 // At least one case failed an assertion. TestRunResult_FAILED TestRunResult_State = 2 // Run-level error: build failure, setup/teardown crash, infra // unreachable. Distinct from FAILED — the agent may not even // know how many cases would have run. TestRunResult_ERRORED TestRunResult_State = 3 // Whole-run timeout fired before completion. TestRunResult_TIMED_OUT TestRunResult_State = 4 )
func (TestRunResult_State) Descriptor ¶ added in v0.1.157
func (TestRunResult_State) Descriptor() protoreflect.EnumDescriptor
func (TestRunResult_State) Enum ¶ added in v0.1.157
func (x TestRunResult_State) Enum() *TestRunResult_State
func (TestRunResult_State) EnumDescriptor
deprecated
added in
v0.1.157
func (TestRunResult_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use TestRunResult_State.Descriptor instead.
func (TestRunResult_State) Number ¶ added in v0.1.157
func (x TestRunResult_State) Number() protoreflect.EnumNumber
func (TestRunResult_State) String ¶ added in v0.1.157
func (x TestRunResult_State) String() string
func (TestRunResult_State) Type ¶ added in v0.1.157
func (TestRunResult_State) Type() protoreflect.EnumType
type TestStatus ¶
type TestStatus struct {
// state is the machine-readable lifecycle state.
State TestStatus_Status `protobuf:"varint,1,opt,name=state,proto3,enum=codefly.services.runtime.v0.TestStatus_Status" json:"state,omitempty"`
// message is a human-readable status or diagnostic summary.
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
TestStatus reports the state and message for the test lifecycle phase.
func (*TestStatus) Descriptor
deprecated
func (*TestStatus) Descriptor() ([]byte, []int)
Deprecated: Use TestStatus.ProtoReflect.Descriptor instead.
func (*TestStatus) GetMessage ¶
func (x *TestStatus) GetMessage() string
func (*TestStatus) GetState ¶
func (x *TestStatus) GetState() TestStatus_Status
func (*TestStatus) ProtoMessage ¶
func (*TestStatus) ProtoMessage()
func (*TestStatus) ProtoReflect ¶
func (x *TestStatus) ProtoReflect() protoreflect.Message
func (*TestStatus) Reset ¶
func (x *TestStatus) Reset()
func (*TestStatus) String ¶
func (x *TestStatus) String() string
type TestStatus_Status ¶
type TestStatus_Status int32
Status enumerates lifecycle status values.
const ( // UNKNOWN is the default value when status is not specified. TestStatus_UNKNOWN TestStatus_Status = 0 // SUCCESS means the operation completed successfully. TestStatus_SUCCESS TestStatus_Status = 1 // ERROR means the phase failed and message carries diagnostics. TestStatus_ERROR TestStatus_Status = 2 )
func (TestStatus_Status) Descriptor ¶
func (TestStatus_Status) Descriptor() protoreflect.EnumDescriptor
func (TestStatus_Status) Enum ¶
func (x TestStatus_Status) Enum() *TestStatus_Status
func (TestStatus_Status) EnumDescriptor
deprecated
func (TestStatus_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use TestStatus_Status.Descriptor instead.
func (TestStatus_Status) Number ¶
func (x TestStatus_Status) Number() protoreflect.EnumNumber
func (TestStatus_Status) String ¶
func (x TestStatus_Status) String() string
func (TestStatus_Status) Type ¶
func (TestStatus_Status) Type() protoreflect.EnumType
type TestSuite ¶ added in v0.1.157
type TestSuite struct {
// Logical name. Conventionally:
//
// Go: "github.com/codefly-dev/core/policy"
// Python: "tests/test_users.py"
// Jest: "describe block path"
// Playwright: "project: tests/login.spec.ts"
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Filesystem path to the suite source (absolute or repo-relative).
// Used for IDE jump.
File string `protobuf:"bytes,2,opt,name=file,proto3" json:"file,omitempty"`
// Wall-clock duration of the suite (sum of cases + setup/teardown).
Duration *durationpb.Duration `protobuf:"bytes,3,opt,name=duration,proto3" json:"duration,omitempty"`
// Suite-level counts (sum of contained cases + sub-suites).
Counts *TestCounts `protobuf:"bytes,4,opt,name=counts,proto3" json:"counts,omitempty"`
// Sub-suites (Jest describe-in-describe, pytest class-in-file).
Suites []*TestSuite `protobuf:"bytes,5,rep,name=suites,proto3" json:"suites,omitempty"`
// Test cases directly in this suite.
Cases []*TestCase `protobuf:"bytes,6,rep,name=cases,proto3" json:"cases,omitempty"`
// contains filtered or unexported fields
}
TestSuite is a grouping primitive — a Go package, a Python test file, a Jest describe block, a Playwright project. Suites can nest (`suites`) AND contain cases (`cases`); both populated is fine for runners that allow case-AND-subgroup mixing.
func (*TestSuite) Descriptor
deprecated
added in
v0.1.157
func (*TestSuite) GetCounts ¶ added in v0.1.157
func (x *TestSuite) GetCounts() *TestCounts
func (*TestSuite) GetDuration ¶ added in v0.1.157
func (x *TestSuite) GetDuration() *durationpb.Duration
func (*TestSuite) ProtoMessage ¶ added in v0.1.157
func (*TestSuite) ProtoMessage()
func (*TestSuite) ProtoReflect ¶ added in v0.1.157
func (x *TestSuite) ProtoReflect() protoreflect.Message
type TestTruncation ¶ added in v0.1.157
type TestTruncation struct {
// True iff any cap fired during this run.
Happened bool `protobuf:"varint,1,opt,name=happened,proto3" json:"happened,omitempty"`
// Cap applied per case (bytes). 0 means "no cap".
MaxPerCaseBytes int32 `protobuf:"varint,2,opt,name=max_per_case_bytes,json=maxPerCaseBytes,proto3" json:"max_per_case_bytes,omitempty"`
// Cap applied to the full TestResponse. 0 means "no cap".
MaxTotalBytes int32 `protobuf:"varint,3,opt,name=max_total_bytes,json=maxTotalBytes,proto3" json:"max_total_bytes,omitempty"`
// How many cases had their `captured_output` truncated.
TruncatedCases int32 `protobuf:"varint,4,opt,name=truncated_cases,json=truncatedCases,proto3" json:"truncated_cases,omitempty"`
// How many cases were dropped from `suites[].cases[]` entirely
// (extreme overflow). 0 in normal operation.
DroppedCases int32 `protobuf:"varint,5,opt,name=dropped_cases,json=droppedCases,proto3" json:"dropped_cases,omitempty"`
// contains filtered or unexported fields
}
TestTruncation surfaces when the agent's output caps fired and dropped data. Mind/CLI shows "N cases had truncated output, use --verbose for full" rather than silently lying about completeness.
func (*TestTruncation) Descriptor
deprecated
added in
v0.1.157
func (*TestTruncation) Descriptor() ([]byte, []int)
Deprecated: Use TestTruncation.ProtoReflect.Descriptor instead.
func (*TestTruncation) GetDroppedCases ¶ added in v0.1.157
func (x *TestTruncation) GetDroppedCases() int32
func (*TestTruncation) GetHappened ¶ added in v0.1.157
func (x *TestTruncation) GetHappened() bool
func (*TestTruncation) GetMaxPerCaseBytes ¶ added in v0.1.157
func (x *TestTruncation) GetMaxPerCaseBytes() int32
func (*TestTruncation) GetMaxTotalBytes ¶ added in v0.1.157
func (x *TestTruncation) GetMaxTotalBytes() int32
func (*TestTruncation) GetTruncatedCases ¶ added in v0.1.157
func (x *TestTruncation) GetTruncatedCases() int32
func (*TestTruncation) ProtoMessage ¶ added in v0.1.157
func (*TestTruncation) ProtoMessage()
func (*TestTruncation) ProtoReflect ¶ added in v0.1.157
func (x *TestTruncation) ProtoReflect() protoreflect.Message
func (*TestTruncation) Reset ¶ added in v0.1.157
func (x *TestTruncation) Reset()
func (*TestTruncation) String ¶ added in v0.1.157
func (x *TestTruncation) String() string
type UnimplementedRuntimeServer ¶
type UnimplementedRuntimeServer struct{}
UnimplementedRuntimeServer 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 (UnimplementedRuntimeServer) Build ¶ added in v0.1.155
func (UnimplementedRuntimeServer) Build(context.Context, *BuildRequest) (*BuildResponse, error)
func (UnimplementedRuntimeServer) Communicate ¶
func (UnimplementedRuntimeServer) Communicate(grpc.BidiStreamingServer[v0.Answer, v0.Question]) error
func (UnimplementedRuntimeServer) Destroy ¶
func (UnimplementedRuntimeServer) Destroy(context.Context, *DestroyRequest) (*DestroyResponse, error)
func (UnimplementedRuntimeServer) Information ¶
func (UnimplementedRuntimeServer) Information(context.Context, *InformationRequest) (*InformationResponse, error)
func (UnimplementedRuntimeServer) Init ¶
func (UnimplementedRuntimeServer) Init(context.Context, *InitRequest) (*InitResponse, error)
func (UnimplementedRuntimeServer) Lint ¶ added in v0.1.155
func (UnimplementedRuntimeServer) Lint(context.Context, *LintRequest) (*LintResponse, error)
func (UnimplementedRuntimeServer) Load ¶
func (UnimplementedRuntimeServer) Load(context.Context, *LoadRequest) (*LoadResponse, error)
func (UnimplementedRuntimeServer) Start ¶
func (UnimplementedRuntimeServer) Start(context.Context, *StartRequest) (*StartResponse, error)
func (UnimplementedRuntimeServer) Stop ¶
func (UnimplementedRuntimeServer) Stop(context.Context, *StopRequest) (*StopResponse, error)
func (UnimplementedRuntimeServer) Test ¶
func (UnimplementedRuntimeServer) Test(context.Context, *TestRequest) (*TestResponse, error)
type UnsafeRuntimeServer ¶
type UnsafeRuntimeServer interface {
// contains filtered or unexported methods
}
UnsafeRuntimeServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RuntimeServer will result in compilation errors.