Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterAgentServer(s grpc.ServiceRegistrar, srv AgentServer)
- type AgentClient
- type AgentInformation
- func (*AgentInformation) Descriptor() ([]byte, []int)deprecated
- func (x *AgentInformation) GetCapabilities() []*Capability
- func (x *AgentInformation) GetConfigurationDetails() []*ConfigurationValueDetail
- func (x *AgentInformation) GetLanguages() []*Language
- func (x *AgentInformation) GetProtocols() []*Protocol
- func (x *AgentInformation) GetReadMe() string
- func (x *AgentInformation) GetSupportedBackends() []*Backend
- func (x *AgentInformation) GetTechniques() []*AgentTechnique
- func (x *AgentInformation) GetToolchains() []*Toolchain
- func (x *AgentInformation) GetValidation() *ValidationCapabilities
- func (*AgentInformation) ProtoMessage()
- func (x *AgentInformation) ProtoReflect() protoreflect.Message
- func (x *AgentInformation) Reset()
- func (x *AgentInformation) String() string
- type AgentInformationRequest
- type AgentServer
- type AgentTechnique
- func (*AgentTechnique) Descriptor() ([]byte, []int)deprecated
- func (x *AgentTechnique) GetDescription() string
- func (x *AgentTechnique) GetId() string
- func (x *AgentTechnique) GetName() string
- func (x *AgentTechnique) GetPrompt() string
- func (x *AgentTechnique) GetTags() []string
- func (*AgentTechnique) ProtoMessage()
- func (x *AgentTechnique) ProtoReflect() protoreflect.Message
- func (x *AgentTechnique) Reset()
- func (x *AgentTechnique) String() string
- type Answer
- func (*Answer) Descriptor() ([]byte, []int)deprecated
- func (x *Answer) GetChoice() *ChoiceAnswer
- func (x *Answer) GetConfirm() *ConfirmAnswer
- func (x *Answer) GetInput() *InputAnswer
- func (x *Answer) GetSelection() *SelectionAnswer
- func (x *Answer) GetValue() isAnswer_Value
- func (*Answer) ProtoMessage()
- func (x *Answer) ProtoReflect() protoreflect.Message
- func (x *Answer) Reset()
- func (x *Answer) String() string
- type Answer_Choice
- type Answer_Confirm
- type Answer_Input
- type Answer_Selection
- type Backend
- type Backend_Type
- func (Backend_Type) Descriptor() protoreflect.EnumDescriptor
- func (x Backend_Type) Enum() *Backend_Type
- func (Backend_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x Backend_Type) Number() protoreflect.EnumNumber
- func (x Backend_Type) String() string
- func (Backend_Type) Type() protoreflect.EnumType
- type Bom
- func (*Bom) Descriptor() ([]byte, []int)deprecated
- func (x *Bom) GetBomFormat() string
- func (x *Bom) GetComponents() []*Component
- func (x *Bom) GetDependencies() []*Dependency
- func (x *Bom) GetMetadata() *Metadata
- func (x *Bom) GetSerialNumber() string
- func (x *Bom) GetSpecVersion() string
- func (x *Bom) GetVersion() int32
- func (*Bom) ProtoMessage()
- func (x *Bom) ProtoReflect() protoreflect.Message
- func (x *Bom) Reset()
- func (x *Bom) String() string
- type Capability
- type Capability_Type
- func (Capability_Type) Descriptor() protoreflect.EnumDescriptor
- func (x Capability_Type) Enum() *Capability_Type
- func (Capability_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x Capability_Type) Number() protoreflect.EnumNumber
- func (x Capability_Type) String() string
- func (Capability_Type) Type() protoreflect.EnumType
- type Choice
- type ChoiceAnswer
- type CommandDefinition
- func (*CommandDefinition) Descriptor() ([]byte, []int)deprecated
- func (x *CommandDefinition) GetAliases() []string
- func (x *CommandDefinition) GetDescription() string
- func (x *CommandDefinition) GetDestructive() bool
- func (x *CommandDefinition) GetName() string
- func (x *CommandDefinition) GetNeedsGateway() bool
- func (x *CommandDefinition) GetPlugin() string
- func (x *CommandDefinition) GetTags() []string
- func (x *CommandDefinition) GetUsage() string
- func (*CommandDefinition) ProtoMessage()
- func (x *CommandDefinition) ProtoReflect() protoreflect.Message
- func (x *CommandDefinition) Reset()
- func (x *CommandDefinition) String() string
- type Component
- func (*Component) Descriptor() ([]byte, []int)deprecated
- func (x *Component) GetBomRef() string
- func (x *Component) GetGroup() string
- func (x *Component) GetHashes() []*Hash
- func (x *Component) GetLicenses() []string
- func (x *Component) GetName() string
- func (x *Component) GetPurl() string
- func (x *Component) GetType() ComponentType
- func (x *Component) GetVersion() string
- func (*Component) ProtoMessage()
- func (x *Component) ProtoReflect() protoreflect.Message
- func (x *Component) Reset()
- func (x *Component) String() string
- type ComponentType
- func (ComponentType) Descriptor() protoreflect.EnumDescriptor
- func (x ComponentType) Enum() *ComponentType
- func (ComponentType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ComponentType) Number() protoreflect.EnumNumber
- func (x ComponentType) String() string
- func (ComponentType) Type() protoreflect.EnumType
- type ConfigurationValueDetail
- func (*ConfigurationValueDetail) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigurationValueDetail) GetDescription() string
- func (x *ConfigurationValueDetail) GetFields() []*ConfigurationValueInformation
- func (x *ConfigurationValueDetail) GetName() string
- func (*ConfigurationValueDetail) ProtoMessage()
- func (x *ConfigurationValueDetail) ProtoReflect() protoreflect.Message
- func (x *ConfigurationValueDetail) Reset()
- func (x *ConfigurationValueDetail) String() string
- type ConfigurationValueInformation
- func (*ConfigurationValueInformation) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigurationValueInformation) GetDescription() string
- func (x *ConfigurationValueInformation) GetName() string
- func (*ConfigurationValueInformation) ProtoMessage()
- func (x *ConfigurationValueInformation) ProtoReflect() protoreflect.Message
- func (x *ConfigurationValueInformation) Reset()
- func (x *ConfigurationValueInformation) String() string
- type Confirm
- type ConfirmAnswer
- type Dependency
- type Display
- type Hash
- type Input
- func (*Input) Descriptor() ([]byte, []int)deprecated
- func (x *Input) GetDefault() isInput_Default
- func (x *Input) GetIntDefault() int32
- func (x *Input) GetStringDefault() string
- func (*Input) ProtoMessage()
- func (x *Input) ProtoReflect() protoreflect.Message
- func (x *Input) Reset()
- func (x *Input) String() string
- type InputAnswer
- func (*InputAnswer) Descriptor() ([]byte, []int)deprecated
- func (x *InputAnswer) GetAnswer() isInputAnswer_Answer
- func (x *InputAnswer) GetIntValue() int32
- func (x *InputAnswer) GetStringValue() string
- func (*InputAnswer) ProtoMessage()
- func (x *InputAnswer) ProtoReflect() protoreflect.Message
- func (x *InputAnswer) Reset()
- func (x *InputAnswer) String() string
- type InputAnswer_IntValue
- type InputAnswer_StringValue
- type Input_IntDefault
- type Input_StringDefault
- type Language
- type Language_Type
- func (Language_Type) Descriptor() protoreflect.EnumDescriptor
- func (x Language_Type) Enum() *Language_Type
- func (Language_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x Language_Type) Number() protoreflect.EnumNumber
- func (x Language_Type) String() string
- func (Language_Type) Type() protoreflect.EnumType
- type ListCommandsRequest
- type ListCommandsResponse
- func (*ListCommandsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListCommandsResponse) GetCommands() []*CommandDefinition
- func (*ListCommandsResponse) ProtoMessage()
- func (x *ListCommandsResponse) ProtoReflect() protoreflect.Message
- func (x *ListCommandsResponse) Reset()
- func (x *ListCommandsResponse) String() string
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetDescription() string
- func (x *Message) GetMessage() string
- func (x *Message) GetName() string
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)deprecated
- func (x *Metadata) GetComponent() *Component
- func (x *Metadata) GetTimestamp() string
- func (x *Metadata) GetTools() []*Tool
- func (*Metadata) ProtoMessage()
- func (x *Metadata) ProtoReflect() protoreflect.Message
- func (x *Metadata) Reset()
- func (x *Metadata) String() string
- type Protocol
- type Protocol_Type
- func (Protocol_Type) Descriptor() protoreflect.EnumDescriptor
- func (x Protocol_Type) Enum() *Protocol_Type
- func (Protocol_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x Protocol_Type) Number() protoreflect.EnumNumber
- func (x Protocol_Type) String() string
- func (Protocol_Type) Type() protoreflect.EnumType
- type Question
- func (*Question) Descriptor() ([]byte, []int)deprecated
- func (x *Question) GetChoice() *Choice
- func (x *Question) GetConfirm() *Confirm
- func (x *Question) GetDisplay() *Display
- func (x *Question) GetInput() *Input
- func (x *Question) GetMessage() *Message
- func (x *Question) GetSelection() *Selection
- func (x *Question) GetValue() isQuestion_Value
- func (*Question) ProtoMessage()
- func (x *Question) ProtoReflect() protoreflect.Message
- func (x *Question) Reset()
- func (x *Question) String() string
- type Question_Choice
- type Question_Confirm
- type Question_Display
- type Question_Input
- type Question_Selection
- type RunPluginCommandRequest
- func (*RunPluginCommandRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RunPluginCommandRequest) GetArgs() []string
- func (x *RunPluginCommandRequest) GetCommand() string
- func (*RunPluginCommandRequest) ProtoMessage()
- func (x *RunPluginCommandRequest) ProtoReflect() protoreflect.Message
- func (x *RunPluginCommandRequest) Reset()
- func (x *RunPluginCommandRequest) String() string
- type RunPluginCommandResponse
- func (*RunPluginCommandResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RunPluginCommandResponse) GetError() string
- func (x *RunPluginCommandResponse) GetFailure() *v0.Failure
- func (x *RunPluginCommandResponse) GetOutput() string
- func (x *RunPluginCommandResponse) GetSuccess() bool
- func (*RunPluginCommandResponse) ProtoMessage()
- func (x *RunPluginCommandResponse) ProtoReflect() protoreflect.Message
- func (x *RunPluginCommandResponse) Reset()
- func (x *RunPluginCommandResponse) String() string
- type Selection
- func (*Selection) Descriptor() ([]byte, []int)deprecated
- func (x *Selection) GetDefault() *SelectionDefault
- func (x *Selection) GetOptions() []*Message
- func (*Selection) ProtoMessage()
- func (x *Selection) ProtoReflect() protoreflect.Message
- func (x *Selection) Reset()
- func (x *Selection) String() string
- type SelectionAnswer
- type SelectionDefault
- type TestDependencyMode
- func (TestDependencyMode) Descriptor() protoreflect.EnumDescriptor
- func (x TestDependencyMode) Enum() *TestDependencyMode
- func (TestDependencyMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x TestDependencyMode) Number() protoreflect.EnumNumber
- func (x TestDependencyMode) String() string
- func (TestDependencyMode) Type() protoreflect.EnumType
- type TestSuiteCapability
- func (*TestSuiteCapability) Descriptor() ([]byte, []int)deprecated
- func (x *TestSuiteCapability) GetDefaultSuite() bool
- func (x *TestSuiteCapability) GetDependencyMode() TestDependencyMode
- func (x *TestSuiteCapability) GetName() string
- func (*TestSuiteCapability) ProtoMessage()
- func (x *TestSuiteCapability) ProtoReflect() protoreflect.Message
- func (x *TestSuiteCapability) Reset()
- func (x *TestSuiteCapability) String() string
- type TestValidationCapability
- func (*TestValidationCapability) Descriptor() ([]byte, []int)deprecated
- func (x *TestValidationCapability) GetScopes() []ValidationScope
- func (x *TestValidationCapability) GetSuites() []*TestSuiteCapability
- func (x *TestValidationCapability) GetSupported() bool
- func (*TestValidationCapability) ProtoMessage()
- func (x *TestValidationCapability) ProtoReflect() protoreflect.Message
- func (x *TestValidationCapability) Reset()
- func (x *TestValidationCapability) String() string
- type Tool
- type Toolchain
- type Toolchain_Type
- func (Toolchain_Type) Descriptor() protoreflect.EnumDescriptor
- func (x Toolchain_Type) Enum() *Toolchain_Type
- func (Toolchain_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x Toolchain_Type) Number() protoreflect.EnumNumber
- func (x Toolchain_Type) String() string
- func (Toolchain_Type) Type() protoreflect.EnumType
- type UnimplementedAgentServer
- func (UnimplementedAgentServer) GetAgentInformation(context.Context, *AgentInformationRequest) (*AgentInformation, error)
- func (UnimplementedAgentServer) ListCommands(context.Context, *ListCommandsRequest) (*ListCommandsResponse, error)
- func (UnimplementedAgentServer) RunPluginCommand(context.Context, *RunPluginCommandRequest) (*RunPluginCommandResponse, error)
- type UnsafeAgentServer
- type ValidationCapabilities
- func (*ValidationCapabilities) Descriptor() ([]byte, []int)deprecated
- func (x *ValidationCapabilities) GetArtifactBuild() *ValidationOperationCapability
- func (x *ValidationCapabilities) GetAudit() *ValidationOperationCapability
- func (x *ValidationCapabilities) GetCompile() *ValidationOperationCapability
- func (x *ValidationCapabilities) GetLint() *ValidationOperationCapability
- func (x *ValidationCapabilities) GetSbom() *ValidationOperationCapability
- func (x *ValidationCapabilities) GetSourcePackage() *ValidationOperationCapability
- func (x *ValidationCapabilities) GetSync() *ValidationOperationCapability
- func (x *ValidationCapabilities) GetTest() *TestValidationCapability
- func (*ValidationCapabilities) ProtoMessage()
- func (x *ValidationCapabilities) ProtoReflect() protoreflect.Message
- func (x *ValidationCapabilities) Reset()
- func (x *ValidationCapabilities) String() string
- type ValidationOperationCapability
- func (*ValidationOperationCapability) Descriptor() ([]byte, []int)deprecated
- func (x *ValidationOperationCapability) GetScopes() []ValidationScope
- func (x *ValidationOperationCapability) GetSupported() bool
- func (*ValidationOperationCapability) ProtoMessage()
- func (x *ValidationOperationCapability) ProtoReflect() protoreflect.Message
- func (x *ValidationOperationCapability) Reset()
- func (x *ValidationOperationCapability) String() string
- type ValidationScope
- func (ValidationScope) Descriptor() protoreflect.EnumDescriptor
- func (x ValidationScope) Enum() *ValidationScope
- func (ValidationScope) EnumDescriptor() ([]byte, []int)deprecated
- func (x ValidationScope) Number() protoreflect.EnumNumber
- func (x ValidationScope) String() string
- func (ValidationScope) Type() protoreflect.EnumType
Constants ¶
const ( Agent_GetAgentInformation_FullMethodName = "/codefly.services.agent.v0.Agent/GetAgentInformation" Agent_ListCommands_FullMethodName = "/codefly.services.agent.v0.Agent/ListCommands" Agent_RunPluginCommand_FullMethodName = "/codefly.services.agent.v0.Agent/RunPluginCommand" )
Variables ¶
var ( ValidationScope_name = map[int32]string{ 0: "VALIDATION_SCOPE_UNSPECIFIED", 1: "VALIDATION_SCOPE_WORKSPACE", 2: "VALIDATION_SCOPE_PACKAGE", 3: "VALIDATION_SCOPE_FILE", 4: "VALIDATION_SCOPE_CASE", } ValidationScope_value = map[string]int32{ "VALIDATION_SCOPE_UNSPECIFIED": 0, "VALIDATION_SCOPE_WORKSPACE": 1, "VALIDATION_SCOPE_PACKAGE": 2, "VALIDATION_SCOPE_FILE": 3, "VALIDATION_SCOPE_CASE": 4, } )
Enum value maps for ValidationScope.
var ( TestDependencyMode_name = map[int32]string{ 0: "TEST_DEPENDENCY_MODE_UNSPECIFIED", 1: "TEST_DEPENDENCY_MODE_NONE", 2: "TEST_DEPENDENCY_MODE_START_DEPENDENCIES", 3: "TEST_DEPENDENCY_MODE_START_STACK", } TestDependencyMode_value = map[string]int32{ "TEST_DEPENDENCY_MODE_UNSPECIFIED": 0, "TEST_DEPENDENCY_MODE_NONE": 1, "TEST_DEPENDENCY_MODE_START_DEPENDENCIES": 2, "TEST_DEPENDENCY_MODE_START_STACK": 3, } )
Enum value maps for TestDependencyMode.
var ( Language_Type_name = map[int32]string{ 0: "GO", 1: "PYTHON", 2: "JAVASCRIPT", 3: "TYPESCRIPT", 4: "RUBY", 5: "RUST", 6: "SWIFT", } Language_Type_value = map[string]int32{ "GO": 0, "PYTHON": 1, "JAVASCRIPT": 2, "TYPESCRIPT": 3, "RUBY": 4, "RUST": 5, "SWIFT": 6, } )
Enum value maps for Language_Type.
var ( Protocol_Type_name = map[int32]string{ 0: "HTTP", 1: "GRPC", } Protocol_Type_value = map[string]int32{ "HTTP": 0, "GRPC": 1, } )
Enum value maps for Protocol_Type.
var ( Capability_Type_name = map[int32]string{ 0: "UNKNOWN", 1: "BUILDER", 2: "RUNTIME", 3: "HOT_RELOAD", 4: "EXECUTION_EXPORTER", } Capability_Type_value = map[string]int32{ "UNKNOWN": 0, "BUILDER": 1, "RUNTIME": 2, "HOT_RELOAD": 3, "EXECUTION_EXPORTER": 4, } )
Enum value maps for Capability_Type.
var ( Backend_Type_name = map[int32]string{ 0: "UNKNOWN", 1: "LOCAL", 2: "NIX", 3: "DOCKER", } Backend_Type_value = map[string]int32{ "UNKNOWN": 0, "LOCAL": 1, "NIX": 2, "DOCKER": 3, } )
Enum value maps for Backend_Type.
var ( Toolchain_Type_name = map[int32]string{ 0: "UNKNOWN", 1: "GO", 2: "NPM", 3: "PYTHON", 4: "PYTHON_POETRY", 5: "RUBY", 6: "RUBY_GEM", 7: "RUBY_BUNDLE", 8: "RUST", 9: "CARGO", 10: "SWIFT", } Toolchain_Type_value = map[string]int32{ "UNKNOWN": 0, "GO": 1, "NPM": 2, "PYTHON": 3, "PYTHON_POETRY": 4, "RUBY": 5, "RUBY_GEM": 6, "RUBY_BUNDLE": 7, "RUST": 8, "CARGO": 9, "SWIFT": 10, } )
Enum value maps for Toolchain_Type.
var ( ComponentType_name = map[int32]string{ 0: "COMPONENT_TYPE_UNSPECIFIED", 1: "LIBRARY", 2: "FRAMEWORK", 3: "MODULE", 4: "CONTAINER", 5: "APPLICATION", } ComponentType_value = map[string]int32{ "COMPONENT_TYPE_UNSPECIFIED": 0, "LIBRARY": 1, "FRAMEWORK": 2, "MODULE": 3, "CONTAINER": 4, "APPLICATION": 5, } )
Enum value maps for ComponentType.
var Agent_ServiceDesc = grpc.ServiceDesc{ ServiceName: "codefly.services.agent.v0.Agent", HandlerType: (*AgentServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAgentInformation", Handler: _Agent_GetAgentInformation_Handler, }, { MethodName: "ListCommands", Handler: _Agent_ListCommands_Handler, }, { MethodName: "RunPluginCommand", Handler: _Agent_RunPluginCommand_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "codefly/services/agent/v0/agent.proto", }
Agent_ServiceDesc is the grpc.ServiceDesc for Agent service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_codefly_services_agent_v0_agent_proto protoreflect.FileDescriptor
var File_codefly_services_agent_v0_communicate_proto protoreflect.FileDescriptor
var File_codefly_services_agent_v0_cyclonedx_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAgentServer ¶
func RegisterAgentServer(s grpc.ServiceRegistrar, srv AgentServer)
Types ¶
type AgentClient ¶
type AgentClient interface {
// GetAgentInformation returns the agent manifest, capabilities, and configuration docs.
GetAgentInformation(ctx context.Context, in *AgentInformationRequest, opts ...grpc.CallOption) (*AgentInformation, error)
// ListCommands returns the commands this plugin agent provides.
ListCommands(ctx context.Context, in *ListCommandsRequest, opts ...grpc.CallOption) (*ListCommandsResponse, error)
// RunPluginCommand executes a plugin-provided command.
RunPluginCommand(ctx context.Context, in *RunPluginCommandRequest, opts ...grpc.CallOption) (*RunPluginCommandResponse, error)
}
AgentClient is the client API for Agent 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.
Agent exposes plugin identity, metadata, and plugin-defined commands.
func NewAgentClient ¶
func NewAgentClient(cc grpc.ClientConnInterface) AgentClient
type AgentInformation ¶
type AgentInformation struct {
// capabilities describes which optional protocol features are supported.
Capabilities []*Capability `protobuf:"bytes,2,rep,name=capabilities,proto3" json:"capabilities,omitempty"`
// protocols are endpoint protocols the agent can expose.
Protocols []*Protocol `protobuf:"bytes,3,rep,name=protocols,proto3" json:"protocols,omitempty"`
// languages are source languages the agent can create, run, or analyze.
Languages []*Language `protobuf:"bytes,4,rep,name=languages,proto3" json:"languages,omitempty"`
// read_me is the agent README or equivalent human-facing documentation.
ReadMe string `protobuf:"bytes,5,opt,name=read_me,json=readMe,proto3" json:"read_me,omitempty"`
// configuration_details documents service YAML fields understood by the agent.
ConfigurationDetails []*ConfigurationValueDetail `protobuf:"bytes,6,rep,name=configuration_details,json=configurationDetails,proto3" json:"configuration_details,omitempty"`
// techniques are reusable workflows or prompts the agent can apply.
Techniques []*AgentTechnique `protobuf:"bytes,7,rep,name=techniques,proto3" json:"techniques,omitempty"`
// supported_backends are the execution environments the service can run in
// (LOCAL/NIX/DOCKER), in PREFERENCE ORDER: element [0] is the backend the
// plugin prefers, the rest are acceptable fallbacks in descending preference.
// The CLI resolves a "free" service to the first supported backend that is
// actually available in the environment (Docker reachable, nix installed,
// toolchain present), unless the user overrides via preferences.yaml or an
// explicit runtime context. Example: Go advertises [LOCAL, NIX, DOCKER] —
// prefer native, then a nix shell, then a container.
SupportedBackends []*Backend `protobuf:"bytes,8,rep,name=supported_backends,json=supportedBackends,proto3" json:"supported_backends,omitempty"`
// toolchains are host toolchains the user must have available to run the
// service in LOCAL mode (ignored for NIX/DOCKER backends).
Toolchains []*Toolchain `protobuf:"bytes,9,rep,name=toolchains,proto3" json:"toolchains,omitempty"`
// validation is the authoritative validation contract for new agents. It is
// absent for legacy agents, which keeps compatibility RPC probing explicit.
Validation *ValidationCapabilities `protobuf:"bytes,10,opt,name=validation,proto3" json:"validation,omitempty"`
// contains filtered or unexported fields
}
AgentInformation is the manifest and documentation surface returned by an agent.
func (*AgentInformation) Descriptor
deprecated
func (*AgentInformation) Descriptor() ([]byte, []int)
Deprecated: Use AgentInformation.ProtoReflect.Descriptor instead.
func (*AgentInformation) GetCapabilities ¶
func (x *AgentInformation) GetCapabilities() []*Capability
func (*AgentInformation) GetConfigurationDetails ¶
func (x *AgentInformation) GetConfigurationDetails() []*ConfigurationValueDetail
func (*AgentInformation) GetLanguages ¶
func (x *AgentInformation) GetLanguages() []*Language
func (*AgentInformation) GetProtocols ¶
func (x *AgentInformation) GetProtocols() []*Protocol
func (*AgentInformation) GetReadMe ¶
func (x *AgentInformation) GetReadMe() string
func (*AgentInformation) GetSupportedBackends ¶ added in v0.2.15
func (x *AgentInformation) GetSupportedBackends() []*Backend
func (*AgentInformation) GetTechniques ¶ added in v0.1.155
func (x *AgentInformation) GetTechniques() []*AgentTechnique
func (*AgentInformation) GetToolchains ¶ added in v0.2.15
func (x *AgentInformation) GetToolchains() []*Toolchain
func (*AgentInformation) GetValidation ¶ added in v0.2.23
func (x *AgentInformation) GetValidation() *ValidationCapabilities
func (*AgentInformation) ProtoMessage ¶
func (*AgentInformation) ProtoMessage()
func (*AgentInformation) ProtoReflect ¶
func (x *AgentInformation) ProtoReflect() protoreflect.Message
func (*AgentInformation) Reset ¶
func (x *AgentInformation) Reset()
func (*AgentInformation) String ¶
func (x *AgentInformation) String() string
type AgentInformationRequest ¶
type AgentInformationRequest struct {
// contains filtered or unexported fields
}
AgentInformationRequest asks an agent to describe its capabilities and settings.
func (*AgentInformationRequest) Descriptor
deprecated
func (*AgentInformationRequest) Descriptor() ([]byte, []int)
Deprecated: Use AgentInformationRequest.ProtoReflect.Descriptor instead.
func (*AgentInformationRequest) ProtoMessage ¶
func (*AgentInformationRequest) ProtoMessage()
func (*AgentInformationRequest) ProtoReflect ¶
func (x *AgentInformationRequest) ProtoReflect() protoreflect.Message
func (*AgentInformationRequest) Reset ¶
func (x *AgentInformationRequest) Reset()
func (*AgentInformationRequest) String ¶
func (x *AgentInformationRequest) String() string
type AgentServer ¶
type AgentServer interface {
// GetAgentInformation returns the agent manifest, capabilities, and configuration docs.
GetAgentInformation(context.Context, *AgentInformationRequest) (*AgentInformation, error)
// ListCommands returns the commands this plugin agent provides.
ListCommands(context.Context, *ListCommandsRequest) (*ListCommandsResponse, error)
// RunPluginCommand executes a plugin-provided command.
RunPluginCommand(context.Context, *RunPluginCommandRequest) (*RunPluginCommandResponse, error)
// contains filtered or unexported methods
}
AgentServer is the server API for Agent service. All implementations must embed UnimplementedAgentServer for forward compatibility.
Agent exposes plugin identity, metadata, and plugin-defined commands.
type AgentTechnique ¶ added in v0.1.155
type AgentTechnique struct {
// id is the stable identifier for this record.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// name is the technique display name.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// description explains when the technique should be used.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// tags are labels used for filtering, grouping, or display.
Tags []string `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty"`
// prompt is the reusable instruction text for this technique.
Prompt string `protobuf:"bytes,5,opt,name=prompt,proto3" json:"prompt,omitempty"`
// contains filtered or unexported fields
}
AgentTechnique documents an agent-supported workflow or prompt technique.
func (*AgentTechnique) Descriptor
deprecated
added in
v0.1.155
func (*AgentTechnique) Descriptor() ([]byte, []int)
Deprecated: Use AgentTechnique.ProtoReflect.Descriptor instead.
func (*AgentTechnique) GetDescription ¶ added in v0.1.155
func (x *AgentTechnique) GetDescription() string
func (*AgentTechnique) GetId ¶ added in v0.1.155
func (x *AgentTechnique) GetId() string
func (*AgentTechnique) GetName ¶ added in v0.1.155
func (x *AgentTechnique) GetName() string
func (*AgentTechnique) GetPrompt ¶ added in v0.1.155
func (x *AgentTechnique) GetPrompt() string
func (*AgentTechnique) GetTags ¶ added in v0.1.155
func (x *AgentTechnique) GetTags() []string
func (*AgentTechnique) ProtoMessage ¶ added in v0.1.155
func (*AgentTechnique) ProtoMessage()
func (*AgentTechnique) ProtoReflect ¶ added in v0.1.155
func (x *AgentTechnique) ProtoReflect() protoreflect.Message
func (*AgentTechnique) Reset ¶ added in v0.1.155
func (x *AgentTechnique) Reset()
func (*AgentTechnique) String ¶ added in v0.1.155
func (x *AgentTechnique) String() string
type Answer ¶
type Answer struct {
// value is the concrete answer payload returned by the CLI.
//
// Types that are valid to be assigned to Value:
//
// *Answer_Confirm
// *Answer_Input
// *Answer_Choice
// *Answer_Selection
Value isAnswer_Value `protobuf_oneof:"value"`
// contains filtered or unexported fields
}
Answer is sent by the CLI back to the plugin.
func (*Answer) Descriptor
deprecated
func (*Answer) GetChoice ¶
func (x *Answer) GetChoice() *ChoiceAnswer
func (*Answer) GetConfirm ¶
func (x *Answer) GetConfirm() *ConfirmAnswer
func (*Answer) GetInput ¶
func (x *Answer) GetInput() *InputAnswer
func (*Answer) GetSelection ¶
func (x *Answer) GetSelection() *SelectionAnswer
func (*Answer) ProtoMessage ¶
func (*Answer) ProtoMessage()
func (*Answer) ProtoReflect ¶
func (x *Answer) ProtoReflect() protoreflect.Message
type Answer_Choice ¶
type Answer_Choice struct {
// choice carries the ChoiceAnswer variant for Answer.
Choice *ChoiceAnswer `protobuf:"bytes,7,opt,name=choice,proto3,oneof"`
}
type Answer_Confirm ¶
type Answer_Confirm struct {
// confirm carries the ConfirmAnswer variant for Answer.
Confirm *ConfirmAnswer `protobuf:"bytes,5,opt,name=confirm,proto3,oneof"`
}
type Answer_Input ¶
type Answer_Input struct {
// input carries a scalar input answer.
Input *InputAnswer `protobuf:"bytes,6,opt,name=input,proto3,oneof"`
}
type Answer_Selection ¶
type Answer_Selection struct {
// selection carries the SelectionAnswer variant for Answer.
Selection *SelectionAnswer `protobuf:"bytes,8,opt,name=selection,proto3,oneof"`
}
type Backend ¶ added in v0.2.15
type Backend struct {
// type is a supported execution backend.
Type Backend_Type `protobuf:"varint,1,opt,name=type,proto3,enum=codefly.services.agent.v0.Backend_Type" json:"type,omitempty"`
// contains filtered or unexported fields
}
Backend describes an execution environment a service can run in. It is orthogonal to Toolchain: a backend is HOW the service runs (native process, nix shell, container), a toolchain is WHAT the host needs for LOCAL mode.
func (*Backend) Descriptor
deprecated
added in
v0.2.15
func (*Backend) GetType ¶ added in v0.2.15
func (x *Backend) GetType() Backend_Type
func (*Backend) ProtoMessage ¶ added in v0.2.15
func (*Backend) ProtoMessage()
func (*Backend) ProtoReflect ¶ added in v0.2.15
func (x *Backend) ProtoReflect() protoreflect.Message
type Backend_Type ¶ added in v0.2.15
type Backend_Type int32
Type enumerates supported execution backends.
const ( // UNKNOWN is the default value when type is not specified. Backend_UNKNOWN Backend_Type = 0 // LOCAL runs the service's binary/interpreter directly on the host. Backend_LOCAL Backend_Type = 1 // NIX runs the service Docker-free inside a nix shell. Backend_NIX Backend_Type = 2 // DOCKER runs the service inside a container image. Backend_DOCKER Backend_Type = 3 )
func (Backend_Type) Descriptor ¶ added in v0.2.15
func (Backend_Type) Descriptor() protoreflect.EnumDescriptor
func (Backend_Type) Enum ¶ added in v0.2.15
func (x Backend_Type) Enum() *Backend_Type
func (Backend_Type) EnumDescriptor
deprecated
added in
v0.2.15
func (Backend_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Backend_Type.Descriptor instead.
func (Backend_Type) Number ¶ added in v0.2.15
func (x Backend_Type) Number() protoreflect.EnumNumber
func (Backend_Type) String ¶ added in v0.2.15
func (x Backend_Type) String() string
func (Backend_Type) Type ¶ added in v0.2.15
func (Backend_Type) Type() protoreflect.EnumType
type Bom ¶
type Bom struct {
// bom_format is the SBOM format name, normally CycloneDX.
BomFormat string `protobuf:"bytes,1,opt,name=bom_format,json=bomFormat,proto3" json:"bom_format,omitempty"` // Always "CycloneDX"
// spec_version is the CycloneDX specification version.
SpecVersion string `protobuf:"bytes,2,opt,name=spec_version,json=specVersion,proto3" json:"spec_version,omitempty"`
// serial_number is the unique SBOM serial number.
SerialNumber string `protobuf:"bytes,3,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"`
// version is the SBOM document version.
Version int32 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
// components are software components included in the SBOM.
Components []*Component `protobuf:"bytes,5,rep,name=components,proto3" json:"components,omitempty"`
// dependencies is the direct dependency graph keyed by component bom_ref.
Dependencies []*Dependency `protobuf:"bytes,6,rep,name=dependencies,proto3" json:"dependencies,omitempty"`
// metadata identifies the SBOM subject and generator.
Metadata *Metadata `protobuf:"bytes,7,opt,name=metadata,proto3" json:"metadata,omitempty"`
// contains filtered or unexported fields
}
Bom is the CycloneDX software bill of materials emitted by an agent.
func (*Bom) Descriptor
deprecated
func (*Bom) GetBomFormat ¶
func (*Bom) GetComponents ¶
func (*Bom) GetDependencies ¶ added in v0.2.23
func (x *Bom) GetDependencies() []*Dependency
func (*Bom) GetMetadata ¶ added in v0.2.23
func (*Bom) GetSerialNumber ¶
func (*Bom) GetSpecVersion ¶
func (*Bom) GetVersion ¶
func (*Bom) ProtoMessage ¶
func (*Bom) ProtoMessage()
func (*Bom) ProtoReflect ¶
func (x *Bom) ProtoReflect() protoreflect.Message
type Capability ¶
type Capability struct {
// type is the advertised capability.
Type Capability_Type `protobuf:"varint,1,opt,name=type,proto3,enum=codefly.services.agent.v0.Capability_Type" json:"type,omitempty"`
// contains filtered or unexported fields
}
Capability identifies one agent interface or lifecycle feature.
func (*Capability) Descriptor
deprecated
func (*Capability) Descriptor() ([]byte, []int)
Deprecated: Use Capability.ProtoReflect.Descriptor instead.
func (*Capability) GetType ¶
func (x *Capability) GetType() Capability_Type
func (*Capability) ProtoMessage ¶
func (*Capability) ProtoMessage()
func (*Capability) ProtoReflect ¶
func (x *Capability) ProtoReflect() protoreflect.Message
func (*Capability) Reset ¶
func (x *Capability) Reset()
func (*Capability) String ¶
func (x *Capability) String() string
type Capability_Type ¶
type Capability_Type int32
Type enumerates agent capabilities advertised to the CLI.
const ( // UNKNOWN is the default value when type is not specified. Capability_UNKNOWN Capability_Type = 0 // BUILDER means the agent implements the Builder service. Capability_BUILDER Capability_Type = 1 // RUNTIME means the agent implements the Runtime service. Capability_RUNTIME Capability_Type = 2 // Hot Reload is a runtime where a running process will NOT be restarted Capability_HOT_RELOAD Capability_Type = 3 // EXECUTION_EXPORTER means the plugin implements the product-neutral // ExecutionExporter service. Capability_EXECUTION_EXPORTER Capability_Type = 4 )
func (Capability_Type) Descriptor ¶
func (Capability_Type) Descriptor() protoreflect.EnumDescriptor
func (Capability_Type) Enum ¶
func (x Capability_Type) Enum() *Capability_Type
func (Capability_Type) EnumDescriptor
deprecated
func (Capability_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Capability_Type.Descriptor instead.
func (Capability_Type) Number ¶
func (x Capability_Type) Number() protoreflect.EnumNumber
func (Capability_Type) String ¶
func (x Capability_Type) String() string
func (Capability_Type) Type ¶
func (Capability_Type) Type() protoreflect.EnumType
type Choice ¶
type Choice struct {
// options are the choices shown to the user.
Options []*Message `protobuf:"bytes,1,rep,name=options,proto3" json:"options,omitempty"`
// default_option is the stable option name selected by non-interactive
// callers. Empty means no default was declared.
DefaultOption string `protobuf:"bytes,2,opt,name=default_option,json=defaultOption,proto3" json:"default_option,omitempty"`
// contains filtered or unexported fields
}
Choice asks the user to select exactly one option.
func (*Choice) Descriptor
deprecated
func (*Choice) GetDefaultOption ¶ added in v0.2.39
func (*Choice) GetOptions ¶
func (*Choice) ProtoMessage ¶
func (*Choice) ProtoMessage()
func (*Choice) ProtoReflect ¶
func (x *Choice) ProtoReflect() protoreflect.Message
type ChoiceAnswer ¶
type ChoiceAnswer struct {
// option is the selected choice value.
Option string `protobuf:"bytes,1,opt,name=option,proto3" json:"option,omitempty"`
// contains filtered or unexported fields
}
ChoiceAnswer returns the selected option name.
func (*ChoiceAnswer) Descriptor
deprecated
func (*ChoiceAnswer) Descriptor() ([]byte, []int)
Deprecated: Use ChoiceAnswer.ProtoReflect.Descriptor instead.
func (*ChoiceAnswer) GetOption ¶
func (x *ChoiceAnswer) GetOption() string
func (*ChoiceAnswer) ProtoMessage ¶
func (*ChoiceAnswer) ProtoMessage()
func (*ChoiceAnswer) ProtoReflect ¶
func (x *ChoiceAnswer) ProtoReflect() protoreflect.Message
func (*ChoiceAnswer) Reset ¶
func (x *ChoiceAnswer) Reset()
func (*ChoiceAnswer) String ¶
func (x *ChoiceAnswer) String() string
type CommandDefinition ¶ added in v0.1.155
type CommandDefinition struct {
// name is the command name exposed by the plugin.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // e.g. "reset_db", "deploy", "migrate"
// description tells users and agents when to run this command.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // "Reset the database to a clean state"
// usage is the command-line shape shown to users and agents.
Usage string `protobuf:"bytes,3,opt,name=usage,proto3" json:"usage,omitempty"` // "! reset_db [--seed]"
// aliases are alternate command names accepted by the plugin.
Aliases []string `protobuf:"bytes,4,rep,name=aliases,proto3" json:"aliases,omitempty"` // ["reset-db", "db-reset"]
// tags are labels used for filtering, grouping, or display.
Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"` // ["database", "destructive"]
// plugin identifies the plugin that provides this command; empty means built-in.
Plugin string `protobuf:"bytes,6,opt,name=plugin,proto3" json:"plugin,omitempty"` // which plugin provides this command
// destructive is true when the operation can mutate or delete user state.
Destructive bool `protobuf:"varint,7,opt,name=destructive,proto3" json:"destructive,omitempty"` // if true, requires confirmation before execution
// needs_gateway is true when the command must call through the Mind gateway.
NeedsGateway bool `protobuf:"varint,8,opt,name=needs_gateway,json=needsGateway,proto3" json:"needs_gateway,omitempty"` // if true, requires a gateway connection
// contains filtered or unexported fields
}
CommandDefinition describes a command that a plugin agent provides. Commands are registered at startup and routed through the Gateway.
func (*CommandDefinition) Descriptor
deprecated
added in
v0.1.155
func (*CommandDefinition) Descriptor() ([]byte, []int)
Deprecated: Use CommandDefinition.ProtoReflect.Descriptor instead.
func (*CommandDefinition) GetAliases ¶ added in v0.1.155
func (x *CommandDefinition) GetAliases() []string
func (*CommandDefinition) GetDescription ¶ added in v0.1.155
func (x *CommandDefinition) GetDescription() string
func (*CommandDefinition) GetDestructive ¶ added in v0.1.155
func (x *CommandDefinition) GetDestructive() bool
func (*CommandDefinition) GetName ¶ added in v0.1.155
func (x *CommandDefinition) GetName() string
func (*CommandDefinition) GetNeedsGateway ¶ added in v0.1.155
func (x *CommandDefinition) GetNeedsGateway() bool
func (*CommandDefinition) GetPlugin ¶ added in v0.1.155
func (x *CommandDefinition) GetPlugin() string
func (*CommandDefinition) GetTags ¶ added in v0.1.155
func (x *CommandDefinition) GetTags() []string
func (*CommandDefinition) GetUsage ¶ added in v0.1.155
func (x *CommandDefinition) GetUsage() string
func (*CommandDefinition) ProtoMessage ¶ added in v0.1.155
func (*CommandDefinition) ProtoMessage()
func (*CommandDefinition) ProtoReflect ¶ added in v0.1.155
func (x *CommandDefinition) ProtoReflect() protoreflect.Message
func (*CommandDefinition) Reset ¶ added in v0.1.155
func (x *CommandDefinition) Reset()
func (*CommandDefinition) String ¶ added in v0.1.155
func (x *CommandDefinition) String() string
type Component ¶
type Component struct {
// name is the component name.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// version is the component version.
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// type is the CycloneDX component category.
Type ComponentType `protobuf:"varint,3,opt,name=type,proto3,enum=codefly.services.agent.v0.ComponentType" json:"type,omitempty"`
// group is the CycloneDX component group or package namespace.
Group string `protobuf:"bytes,4,opt,name=group,proto3" json:"group,omitempty"` // Optional
// purl is the package URL identifying a software component.
Purl string `protobuf:"bytes,5,opt,name=purl,proto3" json:"purl,omitempty"` // Package URL
// bom_ref is the stable identifier used by dependency relationships.
BomRef string `protobuf:"bytes,6,opt,name=bom_ref,json=bomRef,proto3" json:"bom_ref,omitempty"`
// licenses contains SPDX license identifiers declared by the component.
Licenses []string `protobuf:"bytes,7,rep,name=licenses,proto3" json:"licenses,omitempty"`
// hashes contains content digests when the package manager exposes them.
Hashes []*Hash `protobuf:"bytes,8,rep,name=hashes,proto3" json:"hashes,omitempty"`
// contains filtered or unexported fields
}
Component is one software component in a CycloneDX SBOM.
func (*Component) Descriptor
deprecated
func (*Component) GetLicenses ¶ added in v0.2.23
func (*Component) GetType ¶
func (x *Component) GetType() ComponentType
func (*Component) GetVersion ¶
func (*Component) ProtoMessage ¶
func (*Component) ProtoMessage()
func (*Component) ProtoReflect ¶
func (x *Component) ProtoReflect() protoreflect.Message
type ComponentType ¶
type ComponentType int32
ComponentType enumerates the CycloneDX component categories Codefly currently emits.
const ( // COMPONENT_TYPE_UNSPECIFIED is invalid for an emitted component. ComponentType_COMPONENT_TYPE_UNSPECIFIED ComponentType = 0 // LIBRARY is a software library dependency. ComponentType_LIBRARY ComponentType = 1 // FRAMEWORK is an application framework dependency. ComponentType_FRAMEWORK ComponentType = 2 // MODULE is a Codefly or language module component. ComponentType_MODULE ComponentType = 3 // CONTAINER is a container image component. ComponentType_CONTAINER ComponentType = 4 // APPLICATION is a runnable service, agent, or toolbox artifact. ComponentType_APPLICATION ComponentType = 5 )
func (ComponentType) Descriptor ¶
func (ComponentType) Descriptor() protoreflect.EnumDescriptor
func (ComponentType) Enum ¶
func (x ComponentType) Enum() *ComponentType
func (ComponentType) EnumDescriptor
deprecated
func (ComponentType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ComponentType.Descriptor instead.
func (ComponentType) Number ¶
func (x ComponentType) Number() protoreflect.EnumNumber
func (ComponentType) String ¶
func (x ComponentType) String() string
func (ComponentType) Type ¶
func (ComponentType) Type() protoreflect.EnumType
type ConfigurationValueDetail ¶
type ConfigurationValueDetail struct {
// name is the configuration detail group name.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// description explains the configuration group shown in generated docs.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// fields are agent-specific structured settings from service YAML.
Fields []*ConfigurationValueInformation `protobuf:"bytes,3,rep,name=fields,proto3" json:"fields,omitempty"`
// contains filtered or unexported fields
}
ConfigurationValueDetail groups related configuration fields for an agent.
func (*ConfigurationValueDetail) Descriptor
deprecated
func (*ConfigurationValueDetail) Descriptor() ([]byte, []int)
Deprecated: Use ConfigurationValueDetail.ProtoReflect.Descriptor instead.
func (*ConfigurationValueDetail) GetDescription ¶
func (x *ConfigurationValueDetail) GetDescription() string
func (*ConfigurationValueDetail) GetFields ¶
func (x *ConfigurationValueDetail) GetFields() []*ConfigurationValueInformation
func (*ConfigurationValueDetail) GetName ¶
func (x *ConfigurationValueDetail) GetName() string
func (*ConfigurationValueDetail) ProtoMessage ¶
func (*ConfigurationValueDetail) ProtoMessage()
func (*ConfigurationValueDetail) ProtoReflect ¶
func (x *ConfigurationValueDetail) ProtoReflect() protoreflect.Message
func (*ConfigurationValueDetail) Reset ¶
func (x *ConfigurationValueDetail) Reset()
func (*ConfigurationValueDetail) String ¶
func (x *ConfigurationValueDetail) String() string
type ConfigurationValueInformation ¶
type ConfigurationValueInformation struct {
// name is the configuration field name.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// description explains how to fill this configuration field.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// contains filtered or unexported fields
}
ConfigurationValueInformation documents one configuration field accepted by an agent.
func (*ConfigurationValueInformation) Descriptor
deprecated
func (*ConfigurationValueInformation) Descriptor() ([]byte, []int)
Deprecated: Use ConfigurationValueInformation.ProtoReflect.Descriptor instead.
func (*ConfigurationValueInformation) GetDescription ¶
func (x *ConfigurationValueInformation) GetDescription() string
func (*ConfigurationValueInformation) GetName ¶
func (x *ConfigurationValueInformation) GetName() string
func (*ConfigurationValueInformation) ProtoMessage ¶
func (*ConfigurationValueInformation) ProtoMessage()
func (*ConfigurationValueInformation) ProtoReflect ¶
func (x *ConfigurationValueInformation) ProtoReflect() protoreflect.Message
func (*ConfigurationValueInformation) Reset ¶
func (x *ConfigurationValueInformation) Reset()
func (*ConfigurationValueInformation) String ¶
func (x *ConfigurationValueInformation) String() string
type Confirm ¶
type Confirm struct {
// default is the preselected answer shown to the user.
Default bool `protobuf:"varint,1,opt,name=default,proto3" json:"default,omitempty"`
// contains filtered or unexported fields
}
Confirm asks the user a yes/no question.
func (*Confirm) Descriptor
deprecated
func (*Confirm) GetDefault ¶
func (*Confirm) ProtoMessage ¶
func (*Confirm) ProtoMessage()
func (*Confirm) ProtoReflect ¶
func (x *Confirm) ProtoReflect() protoreflect.Message
type ConfirmAnswer ¶
type ConfirmAnswer struct {
// confirmed is the boolean answer returned by a confirmation prompt.
Confirmed bool `protobuf:"varint,1,opt,name=confirmed,proto3" json:"confirmed,omitempty"`
// contains filtered or unexported fields
}
ConfirmAnswer returns the user's yes/no choice.
func (*ConfirmAnswer) Descriptor
deprecated
func (*ConfirmAnswer) Descriptor() ([]byte, []int)
Deprecated: Use ConfirmAnswer.ProtoReflect.Descriptor instead.
func (*ConfirmAnswer) GetConfirmed ¶
func (x *ConfirmAnswer) GetConfirmed() bool
func (*ConfirmAnswer) ProtoMessage ¶
func (*ConfirmAnswer) ProtoMessage()
func (*ConfirmAnswer) ProtoReflect ¶
func (x *ConfirmAnswer) ProtoReflect() protoreflect.Message
func (*ConfirmAnswer) Reset ¶
func (x *ConfirmAnswer) Reset()
func (*ConfirmAnswer) String ¶
func (x *ConfirmAnswer) String() string
type Dependency ¶ added in v0.2.23
type Dependency struct {
// ref identifies the component whose dependencies are listed.
Ref string `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"`
// depends_on contains bom_ref values for direct dependencies.
DependsOn []string `protobuf:"bytes,2,rep,name=depends_on,json=dependsOn,proto3" json:"depends_on,omitempty"`
// contains filtered or unexported fields
}
Dependency describes one CycloneDX dependency-graph edge set.
func (*Dependency) Descriptor
deprecated
added in
v0.2.23
func (*Dependency) Descriptor() ([]byte, []int)
Deprecated: Use Dependency.ProtoReflect.Descriptor instead.
func (*Dependency) GetDependsOn ¶ added in v0.2.23
func (x *Dependency) GetDependsOn() []string
func (*Dependency) GetRef ¶ added in v0.2.23
func (x *Dependency) GetRef() string
func (*Dependency) ProtoMessage ¶ added in v0.2.23
func (*Dependency) ProtoMessage()
func (*Dependency) ProtoReflect ¶ added in v0.2.23
func (x *Dependency) ProtoReflect() protoreflect.Message
func (*Dependency) Reset ¶ added in v0.2.23
func (x *Dependency) Reset()
func (*Dependency) String ¶ added in v0.2.23
func (x *Dependency) String() string
type Display ¶
type Display struct {
// data contains structured key/value details to display.
Data map[string]string `` /* 135-byte string literal not displayed */
// contains filtered or unexported fields
}
Display is a non-interactive message shown during agent communication.
func (*Display) Descriptor
deprecated
func (*Display) ProtoMessage ¶
func (*Display) ProtoMessage()
func (*Display) ProtoReflect ¶
func (x *Display) ProtoReflect() protoreflect.Message
type Hash ¶ added in v0.2.23
type Hash struct {
// algorithm is the canonical digest name, for example SHA-256 or SHA-512.
Algorithm string `protobuf:"bytes,1,opt,name=algorithm,proto3" json:"algorithm,omitempty"`
// content is the lowercase hexadecimal digest.
Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
// contains filtered or unexported fields
}
Hash is a content digest attached to a component.
func (*Hash) Descriptor
deprecated
added in
v0.2.23
func (*Hash) GetAlgorithm ¶ added in v0.2.23
func (*Hash) GetContent ¶ added in v0.2.23
func (*Hash) ProtoMessage ¶ added in v0.2.23
func (*Hash) ProtoMessage()
func (*Hash) ProtoReflect ¶ added in v0.2.23
func (x *Hash) ProtoReflect() protoreflect.Message
type Input ¶
type Input struct {
// default is the optional prompt prefill.
//
// Types that are valid to be assigned to Default:
//
// *Input_StringDefault
// *Input_IntDefault
Default isInput_Default `protobuf_oneof:"default"`
// contains filtered or unexported fields
}
Input asks the user for a typed scalar value.
func (*Input) Descriptor
deprecated
func (*Input) GetDefault ¶
func (x *Input) GetDefault() isInput_Default
func (*Input) GetIntDefault ¶
func (*Input) GetStringDefault ¶
func (*Input) ProtoMessage ¶
func (*Input) ProtoMessage()
func (*Input) ProtoReflect ¶
func (x *Input) ProtoReflect() protoreflect.Message
type InputAnswer ¶
type InputAnswer struct {
// answer selects exactly one supported answer variant.
//
// Types that are valid to be assigned to Answer:
//
// *InputAnswer_StringValue
// *InputAnswer_IntValue
Answer isInputAnswer_Answer `protobuf_oneof:"answer"`
// contains filtered or unexported fields
}
InputAnswer returns the typed scalar value supplied by the user.
func (*InputAnswer) Descriptor
deprecated
func (*InputAnswer) Descriptor() ([]byte, []int)
Deprecated: Use InputAnswer.ProtoReflect.Descriptor instead.
func (*InputAnswer) GetAnswer ¶
func (x *InputAnswer) GetAnswer() isInputAnswer_Answer
func (*InputAnswer) GetIntValue ¶
func (x *InputAnswer) GetIntValue() int32
func (*InputAnswer) GetStringValue ¶
func (x *InputAnswer) GetStringValue() string
func (*InputAnswer) ProtoMessage ¶
func (*InputAnswer) ProtoMessage()
func (*InputAnswer) ProtoReflect ¶
func (x *InputAnswer) ProtoReflect() protoreflect.Message
func (*InputAnswer) Reset ¶
func (x *InputAnswer) Reset()
func (*InputAnswer) String ¶
func (x *InputAnswer) String() string
type InputAnswer_IntValue ¶
type InputAnswer_IntValue struct {
// int_value carries the int32 variant for InputAnswer.
IntValue int32 `protobuf:"varint,2,opt,name=int_value,json=intValue,proto3,oneof"`
}
type InputAnswer_StringValue ¶
type InputAnswer_StringValue struct {
// string_value carries the string variant for InputAnswer.
StringValue string `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3,oneof"`
}
type Input_IntDefault ¶
type Input_IntDefault struct {
// int_default carries the int32 variant for Input.
IntDefault int32 `protobuf:"varint,2,opt,name=int_default,json=intDefault,proto3,oneof"`
}
type Input_StringDefault ¶
type Input_StringDefault struct {
// string_default carries the string variant for Input.
StringDefault string `protobuf:"bytes,1,opt,name=string_default,json=stringDefault,proto3,oneof"`
}
type Language ¶
type Language struct {
// type is the language represented by this entry.
Type Language_Type `protobuf:"varint,1,opt,name=type,proto3,enum=codefly.services.agent.v0.Language_Type" json:"type,omitempty"`
// contains filtered or unexported fields
}
Language identifies an implementation language supported by an agent.
func (*Language) Descriptor
deprecated
func (*Language) GetType ¶
func (x *Language) GetType() Language_Type
func (*Language) ProtoMessage ¶
func (*Language) ProtoMessage()
func (*Language) ProtoReflect ¶
func (x *Language) ProtoReflect() protoreflect.Message
type Language_Type ¶
type Language_Type int32
Type enumerates implementation languages an agent can generate or analyze.
const ( // GO is the Go language. Language_GO Language_Type = 0 // PYTHON is the Python language. Language_PYTHON Language_Type = 1 // JAVASCRIPT is the JavaScript language. Language_JAVASCRIPT Language_Type = 2 // TYPESCRIPT is the TypeScript language. Language_TYPESCRIPT Language_Type = 3 // RUBY is the Ruby language. Language_RUBY Language_Type = 4 // RUST is the Rust language. Language_RUST Language_Type = 5 // SWIFT is the Swift language. Language_SWIFT Language_Type = 6 )
func (Language_Type) Descriptor ¶
func (Language_Type) Descriptor() protoreflect.EnumDescriptor
func (Language_Type) Enum ¶
func (x Language_Type) Enum() *Language_Type
func (Language_Type) EnumDescriptor
deprecated
func (Language_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Language_Type.Descriptor instead.
func (Language_Type) Number ¶
func (x Language_Type) Number() protoreflect.EnumNumber
func (Language_Type) String ¶
func (x Language_Type) String() string
func (Language_Type) Type ¶
func (Language_Type) Type() protoreflect.EnumType
type ListCommandsRequest ¶ added in v0.1.155
type ListCommandsRequest struct {
// contains filtered or unexported fields
}
ListCommandsRequest carries optional filters for listing commands.
func (*ListCommandsRequest) Descriptor
deprecated
added in
v0.1.155
func (*ListCommandsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListCommandsRequest.ProtoReflect.Descriptor instead.
func (*ListCommandsRequest) ProtoMessage ¶ added in v0.1.155
func (*ListCommandsRequest) ProtoMessage()
func (*ListCommandsRequest) ProtoReflect ¶ added in v0.1.155
func (x *ListCommandsRequest) ProtoReflect() protoreflect.Message
func (*ListCommandsRequest) Reset ¶ added in v0.1.155
func (x *ListCommandsRequest) Reset()
func (*ListCommandsRequest) String ¶ added in v0.1.155
func (x *ListCommandsRequest) String() string
type ListCommandsResponse ¶ added in v0.1.155
type ListCommandsResponse struct {
// commands are plugin or built-in commands available to callers.
Commands []*CommandDefinition `protobuf:"bytes,1,rep,name=commands,proto3" json:"commands,omitempty"`
// contains filtered or unexported fields
}
ListCommandsResponse returns plugin and built-in commands available to callers.
func (*ListCommandsResponse) Descriptor
deprecated
added in
v0.1.155
func (*ListCommandsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListCommandsResponse.ProtoReflect.Descriptor instead.
func (*ListCommandsResponse) GetCommands ¶ added in v0.1.155
func (x *ListCommandsResponse) GetCommands() []*CommandDefinition
func (*ListCommandsResponse) ProtoMessage ¶ added in v0.1.155
func (*ListCommandsResponse) ProtoMessage()
func (*ListCommandsResponse) ProtoReflect ¶ added in v0.1.155
func (x *ListCommandsResponse) ProtoReflect() protoreflect.Message
func (*ListCommandsResponse) Reset ¶ added in v0.1.155
func (x *ListCommandsResponse) Reset()
func (*ListCommandsResponse) String ¶ added in v0.1.155
func (x *ListCommandsResponse) String() string
type Message ¶
type Message struct {
// name is the stable option or field name.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// message is the primary text shown to the user.
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// description provides optional help text for the prompt.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// contains filtered or unexported fields
}
Message is the human-readable label and help text attached to an interactive question.
func (*Message) Descriptor
deprecated
func (*Message) GetDescription ¶
func (*Message) GetMessage ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type Metadata ¶ added in v0.2.23
type Metadata struct {
// timestamp is an RFC3339 UTC generation time.
Timestamp string `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// component is the root application, module, or artifact being described.
Component *Component `protobuf:"bytes,2,opt,name=component,proto3" json:"component,omitempty"`
// tools identifies every generator involved in producing the document.
Tools []*Tool `protobuf:"bytes,3,rep,name=tools,proto3" json:"tools,omitempty"`
// contains filtered or unexported fields
}
Metadata identifies the subject and generator of the SBOM.
func (*Metadata) Descriptor
deprecated
added in
v0.2.23
func (*Metadata) GetComponent ¶ added in v0.2.23
func (*Metadata) GetTimestamp ¶ added in v0.2.23
func (*Metadata) ProtoMessage ¶ added in v0.2.23
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶ added in v0.2.23
func (x *Metadata) ProtoReflect() protoreflect.Message
type Protocol ¶
type Protocol struct {
// type is the protocol represented by this entry.
Type Protocol_Type `protobuf:"varint,1,opt,name=type,proto3,enum=codefly.services.agent.v0.Protocol_Type" json:"type,omitempty"`
// contains filtered or unexported fields
}
Protocol identifies an API protocol supported by an agent.
func (*Protocol) Descriptor
deprecated
func (*Protocol) GetType ¶
func (x *Protocol) GetType() Protocol_Type
func (*Protocol) ProtoMessage ¶
func (*Protocol) ProtoMessage()
func (*Protocol) ProtoReflect ¶
func (x *Protocol) ProtoReflect() protoreflect.Message
type Protocol_Type ¶
type Protocol_Type int32
Type enumerates endpoint protocols an agent can expose.
const ( // HTTP is a generic HTTP endpoint. Protocol_HTTP Protocol_Type = 0 // GRPC is a gRPC endpoint. Protocol_GRPC Protocol_Type = 1 )
func (Protocol_Type) Descriptor ¶
func (Protocol_Type) Descriptor() protoreflect.EnumDescriptor
func (Protocol_Type) Enum ¶
func (x Protocol_Type) Enum() *Protocol_Type
func (Protocol_Type) EnumDescriptor
deprecated
func (Protocol_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Protocol_Type.Descriptor instead.
func (Protocol_Type) Number ¶
func (x Protocol_Type) Number() protoreflect.EnumNumber
func (Protocol_Type) String ¶
func (x Protocol_Type) String() string
func (Protocol_Type) Type ¶
func (Protocol_Type) Type() protoreflect.EnumType
type Question ¶
type Question struct {
// message is a human-readable status or diagnostic summary.
Message *Message `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
// value is the concrete question payload the plugin wants answered.
//
// Types that are valid to be assigned to Value:
//
// *Question_Display
// *Question_Confirm
// *Question_Input
// *Question_Choice
// *Question_Selection
Value isQuestion_Value `protobuf_oneof:"value"`
// contains filtered or unexported fields
}
Question is sent by the plugin to the CLI during Communicate streaming.
func (*Question) Descriptor
deprecated
func (*Question) GetConfirm ¶
func (*Question) GetDisplay ¶
func (*Question) GetMessage ¶
func (*Question) GetSelection ¶
func (*Question) ProtoMessage ¶
func (*Question) ProtoMessage()
func (*Question) ProtoReflect ¶
func (x *Question) ProtoReflect() protoreflect.Message
type Question_Choice ¶
type Question_Choice struct {
// choice carries the Choice variant for Question.
Choice *Choice `protobuf:"bytes,7,opt,name=choice,proto3,oneof"`
}
type Question_Confirm ¶
type Question_Confirm struct {
// confirm carries the Confirm variant for Question.
Confirm *Confirm `protobuf:"bytes,5,opt,name=confirm,proto3,oneof"`
}
type Question_Display ¶
type Question_Display struct {
// display carries the Display variant for Question.
Display *Display `protobuf:"bytes,4,opt,name=display,proto3,oneof"`
}
type Question_Input ¶
type Question_Input struct {
// input carries a scalar input prompt.
Input *Input `protobuf:"bytes,6,opt,name=input,proto3,oneof"`
}
type Question_Selection ¶
type Question_Selection struct {
// selection carries the Selection variant for Question.
Selection *Selection `protobuf:"bytes,8,opt,name=selection,proto3,oneof"`
}
type RunPluginCommandRequest ¶ added in v0.1.155
type RunPluginCommandRequest struct {
// command is the plugin command name to run.
Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"`
// args are command arguments passed to the plugin command handler.
Args []string `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"`
// contains filtered or unexported fields
}
RunPluginCommandRequest invokes one plugin-provided command by name.
func (*RunPluginCommandRequest) Descriptor
deprecated
added in
v0.1.155
func (*RunPluginCommandRequest) Descriptor() ([]byte, []int)
Deprecated: Use RunPluginCommandRequest.ProtoReflect.Descriptor instead.
func (*RunPluginCommandRequest) GetArgs ¶ added in v0.1.155
func (x *RunPluginCommandRequest) GetArgs() []string
func (*RunPluginCommandRequest) GetCommand ¶ added in v0.1.155
func (x *RunPluginCommandRequest) GetCommand() string
func (*RunPluginCommandRequest) ProtoMessage ¶ added in v0.1.155
func (*RunPluginCommandRequest) ProtoMessage()
func (*RunPluginCommandRequest) ProtoReflect ¶ added in v0.1.155
func (x *RunPluginCommandRequest) ProtoReflect() protoreflect.Message
func (*RunPluginCommandRequest) Reset ¶ added in v0.1.155
func (x *RunPluginCommandRequest) Reset()
func (*RunPluginCommandRequest) String ¶ added in v0.1.155
func (x *RunPluginCommandRequest) String() string
type RunPluginCommandResponse ¶ added in v0.1.155
type RunPluginCommandResponse struct {
// success is true when the requested operation completed successfully.
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
// output is raw command, build, lint, or test output preserved for diagnostics.
Output string `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"`
// error explains why the operation failed; empty means success at this layer.
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
// failure is the structured plugin-neutral cause when success is false.
Failure *v0.Failure `protobuf:"bytes,4,opt,name=failure,proto3" json:"failure,omitempty"`
// contains filtered or unexported fields
}
RunPluginCommandResponse reports command output and command-level failure details.
func (*RunPluginCommandResponse) Descriptor
deprecated
added in
v0.1.155
func (*RunPluginCommandResponse) Descriptor() ([]byte, []int)
Deprecated: Use RunPluginCommandResponse.ProtoReflect.Descriptor instead.
func (*RunPluginCommandResponse) GetError ¶ added in v0.1.155
func (x *RunPluginCommandResponse) GetError() string
func (*RunPluginCommandResponse) GetFailure ¶ added in v0.2.24
func (x *RunPluginCommandResponse) GetFailure() *v0.Failure
func (*RunPluginCommandResponse) GetOutput ¶ added in v0.1.155
func (x *RunPluginCommandResponse) GetOutput() string
func (*RunPluginCommandResponse) GetSuccess ¶ added in v0.1.155
func (x *RunPluginCommandResponse) GetSuccess() bool
func (*RunPluginCommandResponse) ProtoMessage ¶ added in v0.1.155
func (*RunPluginCommandResponse) ProtoMessage()
func (*RunPluginCommandResponse) ProtoReflect ¶ added in v0.1.155
func (x *RunPluginCommandResponse) ProtoReflect() protoreflect.Message
func (*RunPluginCommandResponse) Reset ¶ added in v0.1.155
func (x *RunPluginCommandResponse) Reset()
func (*RunPluginCommandResponse) String ¶ added in v0.1.155
func (x *RunPluginCommandResponse) String() string
type Selection ¶
type Selection struct {
// options are the choices shown to the user.
Options []*Message `protobuf:"bytes,1,rep,name=options,proto3" json:"options,omitempty"`
// default is the selection used by non-interactive callers. A present
// message with no options is an explicitly empty default.
Default *SelectionDefault `protobuf:"bytes,2,opt,name=default,proto3" json:"default,omitempty"`
// contains filtered or unexported fields
}
Selection asks the user to select zero or more options.
func (*Selection) Descriptor
deprecated
func (*Selection) GetDefault ¶ added in v0.2.39
func (x *Selection) GetDefault() *SelectionDefault
func (*Selection) GetOptions ¶
func (*Selection) ProtoMessage ¶
func (*Selection) ProtoMessage()
func (*Selection) ProtoReflect ¶
func (x *Selection) ProtoReflect() protoreflect.Message
type SelectionAnswer ¶
type SelectionAnswer struct {
// selected contains the option names chosen by the user.
Selected []string `protobuf:"bytes,1,rep,name=selected,proto3" json:"selected,omitempty"`
// contains filtered or unexported fields
}
SelectionAnswer returns all selected option names.
func (*SelectionAnswer) Descriptor
deprecated
func (*SelectionAnswer) Descriptor() ([]byte, []int)
Deprecated: Use SelectionAnswer.ProtoReflect.Descriptor instead.
func (*SelectionAnswer) GetSelected ¶
func (x *SelectionAnswer) GetSelected() []string
func (*SelectionAnswer) ProtoMessage ¶
func (*SelectionAnswer) ProtoMessage()
func (*SelectionAnswer) ProtoReflect ¶
func (x *SelectionAnswer) ProtoReflect() protoreflect.Message
func (*SelectionAnswer) Reset ¶
func (x *SelectionAnswer) Reset()
func (*SelectionAnswer) String ¶
func (x *SelectionAnswer) String() string
type SelectionDefault ¶ added in v0.2.39
type SelectionDefault struct {
// options are stable Message.name values.
Options []string `protobuf:"bytes,1,rep,name=options,proto3" json:"options,omitempty"`
// contains filtered or unexported fields
}
SelectionDefault distinguishes an explicitly empty default selection from the absence of a declared default.
func (*SelectionDefault) Descriptor
deprecated
added in
v0.2.39
func (*SelectionDefault) Descriptor() ([]byte, []int)
Deprecated: Use SelectionDefault.ProtoReflect.Descriptor instead.
func (*SelectionDefault) GetOptions ¶ added in v0.2.39
func (x *SelectionDefault) GetOptions() []string
func (*SelectionDefault) ProtoMessage ¶ added in v0.2.39
func (*SelectionDefault) ProtoMessage()
func (*SelectionDefault) ProtoReflect ¶ added in v0.2.39
func (x *SelectionDefault) ProtoReflect() protoreflect.Message
func (*SelectionDefault) Reset ¶ added in v0.2.39
func (x *SelectionDefault) Reset()
func (*SelectionDefault) String ¶ added in v0.2.39
func (x *SelectionDefault) String() string
type TestDependencyMode ¶ added in v0.2.23
type TestDependencyMode int32
TestDependencyMode declares which live service graph a named suite needs. Selection of validation targets remains separate from starting runtime prerequisites for one target's suite.
const ( // TEST_DEPENDENCY_MODE_UNSPECIFIED means the suite contract is incomplete. TestDependencyMode_TEST_DEPENDENCY_MODE_UNSPECIFIED TestDependencyMode = 0 // TEST_DEPENDENCY_MODE_NONE initializes only the validation target. TestDependencyMode_TEST_DEPENDENCY_MODE_NONE TestDependencyMode = 1 // TEST_DEPENDENCY_MODE_START_DEPENDENCIES starts the target's dependency // closure, but does not start the target service process. TestDependencyMode_TEST_DEPENDENCY_MODE_START_DEPENDENCIES TestDependencyMode = 2 // TEST_DEPENDENCY_MODE_START_STACK starts dependencies and the target service. TestDependencyMode_TEST_DEPENDENCY_MODE_START_STACK TestDependencyMode = 3 )
func (TestDependencyMode) Descriptor ¶ added in v0.2.23
func (TestDependencyMode) Descriptor() protoreflect.EnumDescriptor
func (TestDependencyMode) Enum ¶ added in v0.2.23
func (x TestDependencyMode) Enum() *TestDependencyMode
func (TestDependencyMode) EnumDescriptor
deprecated
added in
v0.2.23
func (TestDependencyMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use TestDependencyMode.Descriptor instead.
func (TestDependencyMode) Number ¶ added in v0.2.23
func (x TestDependencyMode) Number() protoreflect.EnumNumber
func (TestDependencyMode) String ¶ added in v0.2.23
func (x TestDependencyMode) String() string
func (TestDependencyMode) Type ¶ added in v0.2.23
func (TestDependencyMode) Type() protoreflect.EnumType
type TestSuiteCapability ¶ added in v0.2.23
type TestSuiteCapability struct {
// name is the value accepted by Runtime.Test's suite selection.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// dependency_mode controls which services remain live during this suite.
DependencyMode TestDependencyMode `` /* 154-byte string literal not displayed */
// default_suite marks the suite selected when no explicit suite was supplied.
DefaultSuite bool `protobuf:"varint,3,opt,name=default_suite,json=defaultSuite,proto3" json:"default_suite,omitempty"`
// contains filtered or unexported fields
}
TestSuiteCapability advertises one stable suite identity and its live graph.
func (*TestSuiteCapability) Descriptor
deprecated
added in
v0.2.23
func (*TestSuiteCapability) Descriptor() ([]byte, []int)
Deprecated: Use TestSuiteCapability.ProtoReflect.Descriptor instead.
func (*TestSuiteCapability) GetDefaultSuite ¶ added in v0.2.23
func (x *TestSuiteCapability) GetDefaultSuite() bool
func (*TestSuiteCapability) GetDependencyMode ¶ added in v0.2.23
func (x *TestSuiteCapability) GetDependencyMode() TestDependencyMode
func (*TestSuiteCapability) GetName ¶ added in v0.2.23
func (x *TestSuiteCapability) GetName() string
func (*TestSuiteCapability) ProtoMessage ¶ added in v0.2.23
func (*TestSuiteCapability) ProtoMessage()
func (*TestSuiteCapability) ProtoReflect ¶ added in v0.2.23
func (x *TestSuiteCapability) ProtoReflect() protoreflect.Message
func (*TestSuiteCapability) Reset ¶ added in v0.2.23
func (x *TestSuiteCapability) Reset()
func (*TestSuiteCapability) String ¶ added in v0.2.23
func (x *TestSuiteCapability) String() string
type TestValidationCapability ¶ added in v0.2.23
type TestValidationCapability struct {
// supported is authoritative when AgentInformation.validation is present.
Supported bool `protobuf:"varint,1,opt,name=supported,proto3" json:"supported,omitempty"`
// scopes are the semantic granularities Runtime.Test accepts.
Scopes []ValidationScope `protobuf:"varint,2,rep,packed,name=scopes,proto3,enum=codefly.services.agent.v0.ValidationScope" json:"scopes,omitempty"`
// suites are the named test suites the agent understands.
Suites []*TestSuiteCapability `protobuf:"bytes,3,rep,name=suites,proto3" json:"suites,omitempty"`
// contains filtered or unexported fields
}
TestValidationCapability advertises Runtime.Test behavior.
func (*TestValidationCapability) Descriptor
deprecated
added in
v0.2.23
func (*TestValidationCapability) Descriptor() ([]byte, []int)
Deprecated: Use TestValidationCapability.ProtoReflect.Descriptor instead.
func (*TestValidationCapability) GetScopes ¶ added in v0.2.23
func (x *TestValidationCapability) GetScopes() []ValidationScope
func (*TestValidationCapability) GetSuites ¶ added in v0.2.23
func (x *TestValidationCapability) GetSuites() []*TestSuiteCapability
func (*TestValidationCapability) GetSupported ¶ added in v0.2.23
func (x *TestValidationCapability) GetSupported() bool
func (*TestValidationCapability) ProtoMessage ¶ added in v0.2.23
func (*TestValidationCapability) ProtoMessage()
func (*TestValidationCapability) ProtoReflect ¶ added in v0.2.23
func (x *TestValidationCapability) ProtoReflect() protoreflect.Message
func (*TestValidationCapability) Reset ¶ added in v0.2.23
func (x *TestValidationCapability) Reset()
func (*TestValidationCapability) String ¶ added in v0.2.23
func (x *TestValidationCapability) String() string
type Tool ¶ added in v0.2.23
type Tool struct {
// vendor is the tool publisher.
Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"`
// name is the tool name.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// version is the exact tool version or protocol revision.
Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
// contains filtered or unexported fields
}
Tool identifies software that produced the SBOM.
func (*Tool) Descriptor
deprecated
added in
v0.2.23
func (*Tool) GetVersion ¶ added in v0.2.23
func (*Tool) ProtoMessage ¶ added in v0.2.23
func (*Tool) ProtoMessage()
func (*Tool) ProtoReflect ¶ added in v0.2.23
func (x *Tool) ProtoReflect() protoreflect.Message
type Toolchain ¶ added in v0.2.15
type Toolchain struct {
// type is the required toolchain.
Type Toolchain_Type `protobuf:"varint,1,opt,name=type,proto3,enum=codefly.services.agent.v0.Toolchain_Type" json:"type,omitempty"`
// version is the semantic or service-specific version for this toolchain.
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// contains filtered or unexported fields
}
Toolchain describes a host toolchain a service needs to run in LOCAL mode.
func (*Toolchain) Descriptor
deprecated
added in
v0.2.15
func (*Toolchain) GetType ¶ added in v0.2.15
func (x *Toolchain) GetType() Toolchain_Type
func (*Toolchain) GetVersion ¶ added in v0.2.15
func (*Toolchain) ProtoMessage ¶ added in v0.2.15
func (*Toolchain) ProtoMessage()
func (*Toolchain) ProtoReflect ¶ added in v0.2.15
func (x *Toolchain) ProtoReflect() protoreflect.Message
type Toolchain_Type ¶ added in v0.2.15
type Toolchain_Type int32
Type enumerates language/tool toolchains an agent may require on the host.
const ( // UNKNOWN is the default value when type is not specified. Toolchain_UNKNOWN Toolchain_Type = 0 // GO is the Go toolchain. Toolchain_GO Toolchain_Type = 1 // NPM is the Node/npm toolchain. Toolchain_NPM Toolchain_Type = 2 // PYTHON is the Python interpreter/toolchain. Toolchain_PYTHON Toolchain_Type = 3 // PYTHON_POETRY is the Python Poetry toolchain. Toolchain_PYTHON_POETRY Toolchain_Type = 4 // RUBY is the Ruby interpreter/toolchain. Toolchain_RUBY Toolchain_Type = 5 // RUBY_GEM is the RubyGems toolchain. Toolchain_RUBY_GEM Toolchain_Type = 6 // RUBY_BUNDLE is the Bundler toolchain. Toolchain_RUBY_BUNDLE Toolchain_Type = 7 // RUST is the Rust toolchain. Toolchain_RUST Toolchain_Type = 8 // CARGO is the Cargo build tool/package manager. Toolchain_CARGO Toolchain_Type = 9 // SWIFT is the Swift toolchain. Toolchain_SWIFT Toolchain_Type = 10 )
func (Toolchain_Type) Descriptor ¶ added in v0.2.15
func (Toolchain_Type) Descriptor() protoreflect.EnumDescriptor
func (Toolchain_Type) Enum ¶ added in v0.2.15
func (x Toolchain_Type) Enum() *Toolchain_Type
func (Toolchain_Type) EnumDescriptor
deprecated
added in
v0.2.15
func (Toolchain_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Toolchain_Type.Descriptor instead.
func (Toolchain_Type) Number ¶ added in v0.2.15
func (x Toolchain_Type) Number() protoreflect.EnumNumber
func (Toolchain_Type) String ¶ added in v0.2.15
func (x Toolchain_Type) String() string
func (Toolchain_Type) Type ¶ added in v0.2.15
func (Toolchain_Type) Type() protoreflect.EnumType
type UnimplementedAgentServer ¶
type UnimplementedAgentServer struct{}
UnimplementedAgentServer 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 (UnimplementedAgentServer) GetAgentInformation ¶
func (UnimplementedAgentServer) GetAgentInformation(context.Context, *AgentInformationRequest) (*AgentInformation, error)
func (UnimplementedAgentServer) ListCommands ¶ added in v0.1.155
func (UnimplementedAgentServer) ListCommands(context.Context, *ListCommandsRequest) (*ListCommandsResponse, error)
func (UnimplementedAgentServer) RunPluginCommand ¶ added in v0.1.155
func (UnimplementedAgentServer) RunPluginCommand(context.Context, *RunPluginCommandRequest) (*RunPluginCommandResponse, error)
type UnsafeAgentServer ¶
type UnsafeAgentServer interface {
// contains filtered or unexported methods
}
UnsafeAgentServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AgentServer will result in compilation errors.
type ValidationCapabilities ¶ added in v0.2.23
type ValidationCapabilities struct {
// lint describes the Runtime.Lint operation.
Lint *ValidationOperationCapability `protobuf:"bytes,1,opt,name=lint,proto3" json:"lint,omitempty"`
// compile describes Runtime.Build (native compile/typecheck/application build).
Compile *ValidationOperationCapability `protobuf:"bytes,2,opt,name=compile,proto3" json:"compile,omitempty"`
// test describes Runtime.Test, its scopes, and named suites.
Test *TestValidationCapability `protobuf:"bytes,3,opt,name=test,proto3" json:"test,omitempty"`
// audit describes Builder.Audit.
Audit *ValidationOperationCapability `protobuf:"bytes,4,opt,name=audit,proto3" json:"audit,omitempty"`
// artifact_build describes Builder.Build's deployable artifact operation.
ArtifactBuild *ValidationOperationCapability `protobuf:"bytes,5,opt,name=artifact_build,json=artifactBuild,proto3" json:"artifact_build,omitempty"`
// sbom describes Builder.SBOM's authoritative component inventory.
Sbom *ValidationOperationCapability `protobuf:"bytes,6,opt,name=sbom,proto3" json:"sbom,omitempty"`
// sync describes Builder.Sync, including non-mutating drift detection.
Sync *ValidationOperationCapability `protobuf:"bytes,7,opt,name=sync,proto3" json:"sync,omitempty"`
// source_package describes Builder.Package, which emits portable release
// artifacts from the loaded source resource without deployment semantics.
SourcePackage *ValidationOperationCapability `protobuf:"bytes,8,opt,name=source_package,json=sourcePackage,proto3" json:"source_package,omitempty"`
// contains filtered or unexported fields
}
ValidationCapabilities advertises the validation operations implemented by an agent. A nil AgentInformation.validation denotes a legacy agent whose RPCs must be compatibility-probed. A present message is authoritative: false means unsupported, while true requires the corresponding RPC to exist.
func (*ValidationCapabilities) Descriptor
deprecated
added in
v0.2.23
func (*ValidationCapabilities) Descriptor() ([]byte, []int)
Deprecated: Use ValidationCapabilities.ProtoReflect.Descriptor instead.
func (*ValidationCapabilities) GetArtifactBuild ¶ added in v0.2.23
func (x *ValidationCapabilities) GetArtifactBuild() *ValidationOperationCapability
func (*ValidationCapabilities) GetAudit ¶ added in v0.2.23
func (x *ValidationCapabilities) GetAudit() *ValidationOperationCapability
func (*ValidationCapabilities) GetCompile ¶ added in v0.2.23
func (x *ValidationCapabilities) GetCompile() *ValidationOperationCapability
func (*ValidationCapabilities) GetLint ¶ added in v0.2.23
func (x *ValidationCapabilities) GetLint() *ValidationOperationCapability
func (*ValidationCapabilities) GetSbom ¶ added in v0.2.23
func (x *ValidationCapabilities) GetSbom() *ValidationOperationCapability
func (*ValidationCapabilities) GetSourcePackage ¶ added in v0.2.24
func (x *ValidationCapabilities) GetSourcePackage() *ValidationOperationCapability
func (*ValidationCapabilities) GetSync ¶ added in v0.2.23
func (x *ValidationCapabilities) GetSync() *ValidationOperationCapability
func (*ValidationCapabilities) GetTest ¶ added in v0.2.23
func (x *ValidationCapabilities) GetTest() *TestValidationCapability
func (*ValidationCapabilities) ProtoMessage ¶ added in v0.2.23
func (*ValidationCapabilities) ProtoMessage()
func (*ValidationCapabilities) ProtoReflect ¶ added in v0.2.23
func (x *ValidationCapabilities) ProtoReflect() protoreflect.Message
func (*ValidationCapabilities) Reset ¶ added in v0.2.23
func (x *ValidationCapabilities) Reset()
func (*ValidationCapabilities) String ¶ added in v0.2.23
func (x *ValidationCapabilities) String() string
type ValidationOperationCapability ¶ added in v0.2.23
type ValidationOperationCapability struct {
// supported is authoritative when AgentInformation.validation is present.
Supported bool `protobuf:"varint,1,opt,name=supported,proto3" json:"supported,omitempty"`
// scopes are the semantic granularities the operation accepts.
Scopes []ValidationScope `protobuf:"varint,2,rep,packed,name=scopes,proto3,enum=codefly.services.agent.v0.ValidationScope" json:"scopes,omitempty"`
// contains filtered or unexported fields
}
ValidationOperationCapability advertises one non-test validation operation.
func (*ValidationOperationCapability) Descriptor
deprecated
added in
v0.2.23
func (*ValidationOperationCapability) Descriptor() ([]byte, []int)
Deprecated: Use ValidationOperationCapability.ProtoReflect.Descriptor instead.
func (*ValidationOperationCapability) GetScopes ¶ added in v0.2.23
func (x *ValidationOperationCapability) GetScopes() []ValidationScope
func (*ValidationOperationCapability) GetSupported ¶ added in v0.2.23
func (x *ValidationOperationCapability) GetSupported() bool
func (*ValidationOperationCapability) ProtoMessage ¶ added in v0.2.23
func (*ValidationOperationCapability) ProtoMessage()
func (*ValidationOperationCapability) ProtoReflect ¶ added in v0.2.23
func (x *ValidationOperationCapability) ProtoReflect() protoreflect.Message
func (*ValidationOperationCapability) Reset ¶ added in v0.2.23
func (x *ValidationOperationCapability) Reset()
func (*ValidationOperationCapability) String ¶ added in v0.2.23
func (x *ValidationOperationCapability) String() string
type ValidationScope ¶ added in v0.2.23
type ValidationScope int32
ValidationScope describes the semantic granularity an agent can validate. It is language- and runner-neutral; the agent owns translation to native package, file, or test-case selectors.
const ( // VALIDATION_SCOPE_UNSPECIFIED means no scope contract was declared. ValidationScope_VALIDATION_SCOPE_UNSPECIFIED ValidationScope = 0 // VALIDATION_SCOPE_WORKSPACE validates the complete service source tree. ValidationScope_VALIDATION_SCOPE_WORKSPACE ValidationScope = 1 // VALIDATION_SCOPE_PACKAGE validates one language package/module/crate. ValidationScope_VALIDATION_SCOPE_PACKAGE ValidationScope = 2 // VALIDATION_SCOPE_FILE validates one canonical workspace-relative file. ValidationScope_VALIDATION_SCOPE_FILE ValidationScope = 3 // VALIDATION_SCOPE_CASE validates one exact logical test case. ValidationScope_VALIDATION_SCOPE_CASE ValidationScope = 4 )
func (ValidationScope) Descriptor ¶ added in v0.2.23
func (ValidationScope) Descriptor() protoreflect.EnumDescriptor
func (ValidationScope) Enum ¶ added in v0.2.23
func (x ValidationScope) Enum() *ValidationScope
func (ValidationScope) EnumDescriptor
deprecated
added in
v0.2.23
func (ValidationScope) EnumDescriptor() ([]byte, []int)
Deprecated: Use ValidationScope.Descriptor instead.
func (ValidationScope) Number ¶ added in v0.2.23
func (x ValidationScope) Number() protoreflect.EnumNumber
func (ValidationScope) String ¶ added in v0.2.23
func (x ValidationScope) String() string
func (ValidationScope) Type ¶ added in v0.2.23
func (ValidationScope) Type() protoreflect.EnumType