Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterBuilderServer(s grpc.ServiceRegistrar, srv BuilderServer)
- type AuditFinding
- func (*AuditFinding) Descriptor() ([]byte, []int)deprecated
- func (x *AuditFinding) GetCurrentVersion() string
- func (x *AuditFinding) GetFixedVersion() string
- func (x *AuditFinding) GetId() string
- func (x *AuditFinding) GetPackage() string
- func (x *AuditFinding) GetSeverity() AuditFinding_Severity
- func (x *AuditFinding) GetSummary() string
- func (x *AuditFinding) GetUrl() string
- func (*AuditFinding) ProtoMessage()
- func (x *AuditFinding) ProtoReflect() protoreflect.Message
- func (x *AuditFinding) Reset()
- func (x *AuditFinding) String() string
- type AuditFinding_Severity
- func (AuditFinding_Severity) Descriptor() protoreflect.EnumDescriptor
- func (x AuditFinding_Severity) Enum() *AuditFinding_Severity
- func (AuditFinding_Severity) EnumDescriptor() ([]byte, []int)deprecated
- func (x AuditFinding_Severity) Number() protoreflect.EnumNumber
- func (x AuditFinding_Severity) String() string
- func (AuditFinding_Severity) Type() protoreflect.EnumType
- type AuditRequest
- func (*AuditRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuditRequest) GetFailOnVuln() bool
- func (x *AuditRequest) GetIncludeOutdated() bool
- func (*AuditRequest) ProtoMessage()
- func (x *AuditRequest) ProtoReflect() protoreflect.Message
- func (x *AuditRequest) Reset()
- func (x *AuditRequest) String() string
- type AuditResponse
- func (*AuditResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuditResponse) GetFindings() []*AuditFinding
- func (x *AuditResponse) GetLanguage() string
- func (x *AuditResponse) GetOutdated() []*OutdatedDep
- func (x *AuditResponse) GetState() *AuditStatus
- func (x *AuditResponse) GetTool() string
- func (*AuditResponse) ProtoMessage()
- func (x *AuditResponse) ProtoReflect() protoreflect.Message
- func (x *AuditResponse) Reset()
- func (x *AuditResponse) String() string
- type AuditStatus
- func (*AuditStatus) Descriptor() ([]byte, []int)deprecated
- func (x *AuditStatus) GetMessage() string
- func (x *AuditStatus) GetState() AuditStatus_Status
- func (*AuditStatus) ProtoMessage()
- func (x *AuditStatus) ProtoReflect() protoreflect.Message
- func (x *AuditStatus) Reset()
- func (x *AuditStatus) String() string
- type AuditStatus_Status
- func (AuditStatus_Status) Descriptor() protoreflect.EnumDescriptor
- func (x AuditStatus_Status) Enum() *AuditStatus_Status
- func (AuditStatus_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x AuditStatus_Status) Number() protoreflect.EnumNumber
- func (x AuditStatus_Status) String() string
- func (AuditStatus_Status) Type() protoreflect.EnumType
- type BuildContext
- func (*BuildContext) Descriptor() ([]byte, []int)deprecated
- func (x *BuildContext) GetDockerBuildContext() *DockerBuildContext
- func (x *BuildContext) GetKind() isBuildContext_Kind
- func (*BuildContext) ProtoMessage()
- func (x *BuildContext) ProtoReflect() protoreflect.Message
- func (x *BuildContext) Reset()
- func (x *BuildContext) String() string
- type BuildContext_DockerBuildContext
- type BuildRequest
- type BuildResponse
- func (*BuildResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BuildResponse) GetResult() *BuildResult
- func (x *BuildResponse) GetState() *BuildStatus
- func (*BuildResponse) ProtoMessage()
- func (x *BuildResponse) ProtoReflect() protoreflect.Message
- func (x *BuildResponse) Reset()
- func (x *BuildResponse) String() string
- type BuildResult
- func (*BuildResult) Descriptor() ([]byte, []int)deprecated
- func (x *BuildResult) GetApiHash() string
- func (x *BuildResult) GetDockerBuildResult() *DockerBuildResult
- func (x *BuildResult) GetKind() isBuildResult_Kind
- func (x *BuildResult) GetRunningHash() string
- func (x *BuildResult) GetVersion() string
- func (*BuildResult) ProtoMessage()
- func (x *BuildResult) ProtoReflect() protoreflect.Message
- func (x *BuildResult) Reset()
- func (x *BuildResult) String() string
- type BuildResult_DockerBuildResult
- 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 BuilderClient
- type BuilderServer
- type Builder_CommunicateClient
- type Builder_CommunicateServer
- type CreateRequest
- type CreateResponse
- func (*CreateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateResponse) GetEndpoints() []*v0.Endpoint
- func (x *CreateResponse) GetState() *CreateStatus
- func (*CreateResponse) ProtoMessage()
- func (x *CreateResponse) ProtoReflect() protoreflect.Message
- func (x *CreateResponse) Reset()
- func (x *CreateResponse) String() string
- type CreateStatus
- func (*CreateStatus) Descriptor() ([]byte, []int)deprecated
- func (x *CreateStatus) GetMessage() string
- func (x *CreateStatus) GetState() CreateStatus_Status
- func (*CreateStatus) ProtoMessage()
- func (x *CreateStatus) ProtoReflect() protoreflect.Message
- func (x *CreateStatus) Reset()
- func (x *CreateStatus) String() string
- type CreateStatus_Status
- func (CreateStatus_Status) Descriptor() protoreflect.EnumDescriptor
- func (x CreateStatus_Status) Enum() *CreateStatus_Status
- func (CreateStatus_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x CreateStatus_Status) Number() protoreflect.EnumNumber
- func (x CreateStatus_Status) String() string
- func (CreateStatus_Status) Type() protoreflect.EnumType
- type CreationMode
- type Deployment
- func (*Deployment) Descriptor() ([]byte, []int)deprecated
- func (x *Deployment) GetKind() isDeployment_Kind
- func (x *Deployment) GetKubernetes() *KubernetesDeployment
- func (*Deployment) ProtoMessage()
- func (x *Deployment) ProtoReflect() protoreflect.Message
- func (x *Deployment) Reset()
- func (x *Deployment) String() string
- type DeploymentKind
- func (DeploymentKind) Descriptor() protoreflect.EnumDescriptor
- func (x DeploymentKind) Enum() *DeploymentKind
- func (DeploymentKind) EnumDescriptor() ([]byte, []int)deprecated
- func (x DeploymentKind) Number() protoreflect.EnumNumber
- func (x DeploymentKind) String() string
- func (DeploymentKind) Type() protoreflect.EnumType
- type DeploymentOutput
- func (*DeploymentOutput) Descriptor() ([]byte, []int)deprecated
- func (x *DeploymentOutput) GetKind() isDeploymentOutput_Kind
- func (x *DeploymentOutput) GetKubernetes() *KubernetesDeploymentOutput
- func (*DeploymentOutput) ProtoMessage()
- func (x *DeploymentOutput) ProtoReflect() protoreflect.Message
- func (x *DeploymentOutput) Reset()
- func (x *DeploymentOutput) String() string
- type DeploymentOutput_Kubernetes
- type DeploymentRequest
- func (*DeploymentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeploymentRequest) GetConfiguration() *v0.Configuration
- func (x *DeploymentRequest) GetDependenciesConfigurations() []*v0.Configuration
- func (x *DeploymentRequest) GetDependenciesNetworkMappings() []*v0.NetworkMapping
- func (x *DeploymentRequest) GetDeployment() *Deployment
- func (x *DeploymentRequest) GetEnvironment() *v0.Environment
- func (x *DeploymentRequest) GetNetworkMappings() []*v0.NetworkMapping
- func (*DeploymentRequest) ProtoMessage()
- func (x *DeploymentRequest) ProtoReflect() protoreflect.Message
- func (x *DeploymentRequest) Reset()
- func (x *DeploymentRequest) String() string
- type DeploymentResponse
- func (*DeploymentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeploymentResponse) GetConfiguration() *v0.Configuration
- func (x *DeploymentResponse) GetDeployment() *DeploymentOutput
- func (x *DeploymentResponse) GetState() *DeploymentStatus
- func (*DeploymentResponse) ProtoMessage()
- func (x *DeploymentResponse) ProtoReflect() protoreflect.Message
- func (x *DeploymentResponse) Reset()
- func (x *DeploymentResponse) String() string
- type DeploymentStatus
- func (*DeploymentStatus) Descriptor() ([]byte, []int)deprecated
- func (x *DeploymentStatus) GetMessage() string
- func (x *DeploymentStatus) GetState() DeploymentStatus_Status
- func (*DeploymentStatus) ProtoMessage()
- func (x *DeploymentStatus) ProtoReflect() protoreflect.Message
- func (x *DeploymentStatus) Reset()
- func (x *DeploymentStatus) String() string
- type DeploymentStatus_Status
- func (DeploymentStatus_Status) Descriptor() protoreflect.EnumDescriptor
- func (x DeploymentStatus_Status) Enum() *DeploymentStatus_Status
- func (DeploymentStatus_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x DeploymentStatus_Status) Number() protoreflect.EnumNumber
- func (x DeploymentStatus_Status) String() string
- func (DeploymentStatus_Status) Type() protoreflect.EnumType
- type Deployment_Kubernetes
- type DockerBuildContext
- func (*DockerBuildContext) Descriptor() ([]byte, []int)deprecated
- func (x *DockerBuildContext) GetDockerRepository() string
- func (*DockerBuildContext) ProtoMessage()
- func (x *DockerBuildContext) ProtoReflect() protoreflect.Message
- func (x *DockerBuildContext) Reset()
- func (x *DockerBuildContext) String() string
- type DockerBuildResult
- type InitRequest
- type InitResponse
- 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 KubernetesDeployment
- func (*KubernetesDeployment) Descriptor() ([]byte, []int)deprecated
- func (x *KubernetesDeployment) GetBuildContext() *DockerBuildContext
- func (x *KubernetesDeployment) GetDestination() string
- func (x *KubernetesDeployment) GetNamespace() string
- func (*KubernetesDeployment) ProtoMessage()
- func (x *KubernetesDeployment) ProtoReflect() protoreflect.Message
- func (x *KubernetesDeployment) Reset()
- func (x *KubernetesDeployment) String() string
- type KubernetesDeploymentOutput
- func (*KubernetesDeploymentOutput) Descriptor() ([]byte, []int)deprecated
- func (x *KubernetesDeploymentOutput) GetKind() KubernetesDeploymentOutput_Kind
- func (*KubernetesDeploymentOutput) ProtoMessage()
- func (x *KubernetesDeploymentOutput) ProtoReflect() protoreflect.Message
- func (x *KubernetesDeploymentOutput) Reset()
- func (x *KubernetesDeploymentOutput) String() string
- type KubernetesDeploymentOutput_Kind
- func (KubernetesDeploymentOutput_Kind) Descriptor() protoreflect.EnumDescriptor
- func (x KubernetesDeploymentOutput_Kind) Enum() *KubernetesDeploymentOutput_Kind
- func (KubernetesDeploymentOutput_Kind) EnumDescriptor() ([]byte, []int)deprecated
- func (x KubernetesDeploymentOutput_Kind) Number() protoreflect.EnumNumber
- func (x KubernetesDeploymentOutput_Kind) String() string
- func (KubernetesDeploymentOutput_Kind) Type() protoreflect.EnumType
- type LoadRequest
- func (*LoadRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoadRequest) GetCreationMode() *CreationMode
- func (x *LoadRequest) GetDeveloperDebug() bool
- func (x *LoadRequest) GetDisableCatch() bool
- func (x *LoadRequest) GetIdentity() *v0.ServiceIdentity
- func (x *LoadRequest) GetSyncMode() *SyncMode
- 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) GetGettingStarted() string
- func (x *LoadResponse) GetState() *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 OutdatedDep
- func (*OutdatedDep) Descriptor() ([]byte, []int)deprecated
- func (x *OutdatedDep) GetCurrent() string
- func (x *OutdatedDep) GetLatestMajor() string
- func (x *OutdatedDep) GetLatestSafe() string
- func (x *OutdatedDep) GetPackage() string
- func (*OutdatedDep) ProtoMessage()
- func (x *OutdatedDep) ProtoReflect() protoreflect.Message
- func (x *OutdatedDep) Reset()
- func (x *OutdatedDep) String() string
- type SyncMode
- type SyncRequest
- type SyncResponse
- type SyncStatus
- func (*SyncStatus) Descriptor() ([]byte, []int)deprecated
- func (x *SyncStatus) GetMessage() string
- func (x *SyncStatus) GetState() SyncStatus_Status
- func (*SyncStatus) ProtoMessage()
- func (x *SyncStatus) ProtoReflect() protoreflect.Message
- func (x *SyncStatus) Reset()
- func (x *SyncStatus) String() string
- type SyncStatus_Status
- func (SyncStatus_Status) Descriptor() protoreflect.EnumDescriptor
- func (x SyncStatus_Status) Enum() *SyncStatus_Status
- func (SyncStatus_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x SyncStatus_Status) Number() protoreflect.EnumNumber
- func (x SyncStatus_Status) String() string
- func (SyncStatus_Status) Type() protoreflect.EnumType
- type UnimplementedBuilderServer
- func (UnimplementedBuilderServer) Audit(context.Context, *AuditRequest) (*AuditResponse, error)
- func (UnimplementedBuilderServer) Build(context.Context, *BuildRequest) (*BuildResponse, error)
- func (UnimplementedBuilderServer) Communicate(grpc.BidiStreamingServer[v0.Answer, v0.Question]) error
- func (UnimplementedBuilderServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
- func (UnimplementedBuilderServer) Deploy(context.Context, *DeploymentRequest) (*DeploymentResponse, error)
- func (UnimplementedBuilderServer) Init(context.Context, *InitRequest) (*InitResponse, error)
- func (UnimplementedBuilderServer) Load(context.Context, *LoadRequest) (*LoadResponse, error)
- func (UnimplementedBuilderServer) Sync(context.Context, *SyncRequest) (*SyncResponse, error)
- func (UnimplementedBuilderServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
- func (UnimplementedBuilderServer) Upgrade(context.Context, *UpgradeRequest) (*UpgradeResponse, error)
- type UnsafeBuilderServer
- type UpdateRequest
- type UpdateResponse
- type UpdateStatus
- func (*UpdateStatus) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateStatus) GetMessage() string
- func (x *UpdateStatus) GetState() UpdateStatus_Status
- func (*UpdateStatus) ProtoMessage()
- func (x *UpdateStatus) ProtoReflect() protoreflect.Message
- func (x *UpdateStatus) Reset()
- func (x *UpdateStatus) String() string
- type UpdateStatus_Status
- func (UpdateStatus_Status) Descriptor() protoreflect.EnumDescriptor
- func (x UpdateStatus_Status) Enum() *UpdateStatus_Status
- func (UpdateStatus_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x UpdateStatus_Status) Number() protoreflect.EnumNumber
- func (x UpdateStatus_Status) String() string
- func (UpdateStatus_Status) Type() protoreflect.EnumType
- type UpgradeChange
- func (*UpgradeChange) Descriptor() ([]byte, []int)deprecated
- func (x *UpgradeChange) GetFrom() string
- func (x *UpgradeChange) GetPackage() string
- func (x *UpgradeChange) GetTo() string
- func (*UpgradeChange) ProtoMessage()
- func (x *UpgradeChange) ProtoReflect() protoreflect.Message
- func (x *UpgradeChange) Reset()
- func (x *UpgradeChange) String() string
- type UpgradeRequest
- func (*UpgradeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpgradeRequest) GetDryRun() bool
- func (x *UpgradeRequest) GetIncludeMajor() bool
- func (x *UpgradeRequest) GetOnly() []string
- func (*UpgradeRequest) ProtoMessage()
- func (x *UpgradeRequest) ProtoReflect() protoreflect.Message
- func (x *UpgradeRequest) Reset()
- func (x *UpgradeRequest) String() string
- type UpgradeResponse
- func (*UpgradeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpgradeResponse) GetChanges() []*UpgradeChange
- func (x *UpgradeResponse) GetLockfileDiff() string
- func (x *UpgradeResponse) GetState() *UpgradeStatus
- func (*UpgradeResponse) ProtoMessage()
- func (x *UpgradeResponse) ProtoReflect() protoreflect.Message
- func (x *UpgradeResponse) Reset()
- func (x *UpgradeResponse) String() string
- type UpgradeStatus
- func (*UpgradeStatus) Descriptor() ([]byte, []int)deprecated
- func (x *UpgradeStatus) GetMessage() string
- func (x *UpgradeStatus) GetState() UpgradeStatus_Status
- func (*UpgradeStatus) ProtoMessage()
- func (x *UpgradeStatus) ProtoReflect() protoreflect.Message
- func (x *UpgradeStatus) Reset()
- func (x *UpgradeStatus) String() string
- type UpgradeStatus_Status
- func (UpgradeStatus_Status) Descriptor() protoreflect.EnumDescriptor
- func (x UpgradeStatus_Status) Enum() *UpgradeStatus_Status
- func (UpgradeStatus_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x UpgradeStatus_Status) Number() protoreflect.EnumNumber
- func (x UpgradeStatus_Status) String() string
- func (UpgradeStatus_Status) Type() protoreflect.EnumType
Constants ¶
const ( Builder_Load_FullMethodName = "/codefly.services.builder.v0.Builder/Load" Builder_Init_FullMethodName = "/codefly.services.builder.v0.Builder/Init" Builder_Create_FullMethodName = "/codefly.services.builder.v0.Builder/Create" Builder_Update_FullMethodName = "/codefly.services.builder.v0.Builder/Update" Builder_Sync_FullMethodName = "/codefly.services.builder.v0.Builder/Sync" Builder_Build_FullMethodName = "/codefly.services.builder.v0.Builder/Build" Builder_Deploy_FullMethodName = "/codefly.services.builder.v0.Builder/Deploy" Builder_Audit_FullMethodName = "/codefly.services.builder.v0.Builder/Audit" Builder_Upgrade_FullMethodName = "/codefly.services.builder.v0.Builder/Upgrade" Builder_Communicate_FullMethodName = "/codefly.services.builder.v0.Builder/Communicate" )
Variables ¶
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 ( CreateStatus_Status_name = map[int32]string{ 0: "UNKNOWN", 1: "CREATED", 2: "ERROR", } CreateStatus_Status_value = map[string]int32{ "UNKNOWN": 0, "CREATED": 1, "ERROR": 2, } )
Enum value maps for CreateStatus_Status.
var ( InitStatus_Status_name = map[int32]string{ 0: "UNKNOWN", 1: "SUCCESS", 2: "ERROR", } InitStatus_Status_value = map[string]int32{ "UNKNOWN": 0, "SUCCESS": 1, "ERROR": 2, } )
Enum value maps for InitStatus_Status.
var ( UpdateStatus_Status_name = map[int32]string{ 0: "UNKNOWN", 1: "SUCCESS", 2: "ERROR", } UpdateStatus_Status_value = map[string]int32{ "UNKNOWN": 0, "SUCCESS": 1, "ERROR": 2, } )
Enum value maps for UpdateStatus_Status.
var ( SyncStatus_Status_name = map[int32]string{ 0: "UNKNOWN", 1: "SUCCESS", 2: "ERROR", } SyncStatus_Status_value = map[string]int32{ "UNKNOWN": 0, "SUCCESS": 1, "ERROR": 2, } )
Enum value maps for SyncStatus_Status.
var ( BuildStatus_Status_name = map[int32]string{ 0: "UNKNOWN", 1: "SUCCESS", 2: "ERROR", 3: "NOOP", } BuildStatus_Status_value = map[string]int32{ "UNKNOWN": 0, "SUCCESS": 1, "ERROR": 2, "NOOP": 3, } )
Enum value maps for BuildStatus_Status.
var ( DeploymentStatus_Status_name = map[int32]string{ 0: "UNKNOWN", 1: "SUCCESS", 2: "ERROR", 3: "NOOP", } DeploymentStatus_Status_value = map[string]int32{ "UNKNOWN": 0, "SUCCESS": 1, "ERROR": 2, "NOOP": 3, } )
Enum value maps for DeploymentStatus_Status.
var ( AuditFinding_Severity_name = map[int32]string{ 0: "UNKNOWN", 1: "LOW", 2: "MEDIUM", 3: "HIGH", 4: "CRITICAL", } AuditFinding_Severity_value = map[string]int32{ "UNKNOWN": 0, "LOW": 1, "MEDIUM": 2, "HIGH": 3, "CRITICAL": 4, } )
Enum value maps for AuditFinding_Severity.
var ( AuditStatus_Status_name = map[int32]string{ 0: "UNKNOWN", 1: "CLEAN", 2: "FINDINGS", 3: "ERROR", } AuditStatus_Status_value = map[string]int32{ "UNKNOWN": 0, "CLEAN": 1, "FINDINGS": 2, "ERROR": 3, } )
Enum value maps for AuditStatus_Status.
var ( UpgradeStatus_Status_name = map[int32]string{ 0: "UNKNOWN", 1: "SUCCESS", 2: "NOOP", 3: "ERROR", } UpgradeStatus_Status_value = map[string]int32{ "UNKNOWN": 0, "SUCCESS": 1, "NOOP": 2, "ERROR": 3, } )
Enum value maps for UpgradeStatus_Status.
var ( DeploymentKind_name = map[int32]string{ 0: "KUSTOMIZE", } DeploymentKind_value = map[string]int32{ "KUSTOMIZE": 0, } )
Enum value maps for DeploymentKind.
var ( KubernetesDeploymentOutput_Kind_name = map[int32]string{ 0: "KUSTOMIZE", } KubernetesDeploymentOutput_Kind_value = map[string]int32{ "KUSTOMIZE": 0, } )
Enum value maps for KubernetesDeploymentOutput_Kind.
var Builder_ServiceDesc = grpc.ServiceDesc{ ServiceName: "codefly.services.builder.v0.Builder", HandlerType: (*BuilderServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Load", Handler: _Builder_Load_Handler, }, { MethodName: "Init", Handler: _Builder_Init_Handler, }, { MethodName: "Create", Handler: _Builder_Create_Handler, }, { MethodName: "Update", Handler: _Builder_Update_Handler, }, { MethodName: "Sync", Handler: _Builder_Sync_Handler, }, { MethodName: "Build", Handler: _Builder_Build_Handler, }, { MethodName: "Deploy", Handler: _Builder_Deploy_Handler, }, { MethodName: "Audit", Handler: _Builder_Audit_Handler, }, { MethodName: "Upgrade", Handler: _Builder_Upgrade_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Communicate", Handler: _Builder_Communicate_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "codefly/services/builder/v0/builder.proto", }
Builder_ServiceDesc is the grpc.ServiceDesc for Builder 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_builder_v0_builder_proto protoreflect.FileDescriptor
var File_codefly_services_builder_v0_deployment_proto protoreflect.FileDescriptor
var File_codefly_services_builder_v0_docker_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBuilderServer ¶
func RegisterBuilderServer(s grpc.ServiceRegistrar, srv BuilderServer)
Types ¶
type AuditFinding ¶ added in v0.1.155
type AuditFinding struct {
// severity is the diagnostic level such as error, warning, information, or hint.
Severity AuditFinding_Severity `protobuf:"varint,1,opt,name=severity,proto3,enum=codefly.services.builder.v0.AuditFinding_Severity" json:"severity,omitempty"`
// id is the stable identifier for this record.
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // CVE-2025-xxxx, GHSA-xxxx-xxxx, OSV id
// package is the package, dependency, or artifact name.
Package string `protobuf:"bytes,3,opt,name=package,proto3" json:"package,omitempty"`
// current_version is the vulnerable or outdated version currently installed.
CurrentVersion string `protobuf:"bytes,4,opt,name=current_version,json=currentVersion,proto3" json:"current_version,omitempty"`
// fixed_version is the version that resolves the reported finding.
FixedVersion string `protobuf:"bytes,5,opt,name=fixed_version,json=fixedVersion,proto3" json:"fixed_version,omitempty"`
// summary is the compact natural-language result or state description.
Summary string `protobuf:"bytes,6,opt,name=summary,proto3" json:"summary,omitempty"`
// url links to advisory, package, or documentation details for the item.
Url string `protobuf:"bytes,7,opt,name=url,proto3" json:"url,omitempty"`
// contains filtered or unexported fields
}
AuditFinding is one vulnerability or security finding produced by an audit tool.
func (*AuditFinding) Descriptor
deprecated
added in
v0.1.155
func (*AuditFinding) Descriptor() ([]byte, []int)
Deprecated: Use AuditFinding.ProtoReflect.Descriptor instead.
func (*AuditFinding) GetCurrentVersion ¶ added in v0.1.155
func (x *AuditFinding) GetCurrentVersion() string
func (*AuditFinding) GetFixedVersion ¶ added in v0.1.155
func (x *AuditFinding) GetFixedVersion() string
func (*AuditFinding) GetId ¶ added in v0.1.155
func (x *AuditFinding) GetId() string
func (*AuditFinding) GetPackage ¶ added in v0.1.155
func (x *AuditFinding) GetPackage() string
func (*AuditFinding) GetSeverity ¶ added in v0.1.155
func (x *AuditFinding) GetSeverity() AuditFinding_Severity
func (*AuditFinding) GetSummary ¶ added in v0.1.155
func (x *AuditFinding) GetSummary() string
func (*AuditFinding) GetUrl ¶ added in v0.1.155
func (x *AuditFinding) GetUrl() string
func (*AuditFinding) ProtoMessage ¶ added in v0.1.155
func (*AuditFinding) ProtoMessage()
func (*AuditFinding) ProtoReflect ¶ added in v0.1.155
func (x *AuditFinding) ProtoReflect() protoreflect.Message
func (*AuditFinding) Reset ¶ added in v0.1.155
func (x *AuditFinding) Reset()
func (*AuditFinding) String ¶ added in v0.1.155
func (x *AuditFinding) String() string
type AuditFinding_Severity ¶ added in v0.1.155
type AuditFinding_Severity int32
Severity enumerates diagnostic severity levels.
const ( // UNKNOWN is the default value when severity is not specified. AuditFinding_UNKNOWN AuditFinding_Severity = 0 // LOW is an informational or low-impact finding. AuditFinding_LOW AuditFinding_Severity = 1 // MEDIUM is a moderate-impact finding. AuditFinding_MEDIUM AuditFinding_Severity = 2 // HIGH is a high-impact finding. AuditFinding_HIGH AuditFinding_Severity = 3 // CRITICAL is an urgent finding that should normally fail release gates. AuditFinding_CRITICAL AuditFinding_Severity = 4 )
func (AuditFinding_Severity) Descriptor ¶ added in v0.1.155
func (AuditFinding_Severity) Descriptor() protoreflect.EnumDescriptor
func (AuditFinding_Severity) Enum ¶ added in v0.1.155
func (x AuditFinding_Severity) Enum() *AuditFinding_Severity
func (AuditFinding_Severity) EnumDescriptor
deprecated
added in
v0.1.155
func (AuditFinding_Severity) EnumDescriptor() ([]byte, []int)
Deprecated: Use AuditFinding_Severity.Descriptor instead.
func (AuditFinding_Severity) Number ¶ added in v0.1.155
func (x AuditFinding_Severity) Number() protoreflect.EnumNumber
func (AuditFinding_Severity) String ¶ added in v0.1.155
func (x AuditFinding_Severity) String() string
func (AuditFinding_Severity) Type ¶ added in v0.1.155
func (AuditFinding_Severity) Type() protoreflect.EnumType
type AuditRequest ¶ added in v0.1.155
type AuditRequest struct {
// include_outdated reports patch+minor "available" upgrades alongside
// CVEs. Default true. Set false for a vuln-only scan.
IncludeOutdated bool `protobuf:"varint,1,opt,name=include_outdated,json=includeOutdated,proto3" json:"include_outdated,omitempty"`
// fail_on_vuln makes the agent return state=ERROR if any finding has
// severity HIGH or above. Default false (report-only).
FailOnVuln bool `protobuf:"varint,2,opt,name=fail_on_vuln,json=failOnVuln,proto3" json:"fail_on_vuln,omitempty"`
// contains filtered or unexported fields
}
AuditRequest asks the builder agent to scan dependencies and artifacts for risk.
func (*AuditRequest) Descriptor
deprecated
added in
v0.1.155
func (*AuditRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuditRequest.ProtoReflect.Descriptor instead.
func (*AuditRequest) GetFailOnVuln ¶ added in v0.1.155
func (x *AuditRequest) GetFailOnVuln() bool
func (*AuditRequest) GetIncludeOutdated ¶ added in v0.1.155
func (x *AuditRequest) GetIncludeOutdated() bool
func (*AuditRequest) ProtoMessage ¶ added in v0.1.155
func (*AuditRequest) ProtoMessage()
func (*AuditRequest) ProtoReflect ¶ added in v0.1.155
func (x *AuditRequest) ProtoReflect() protoreflect.Message
func (*AuditRequest) Reset ¶ added in v0.1.155
func (x *AuditRequest) Reset()
func (*AuditRequest) String ¶ added in v0.1.155
func (x *AuditRequest) String() string
type AuditResponse ¶ added in v0.1.155
type AuditResponse struct {
// state is the machine-readable lifecycle state.
State *AuditStatus `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
// findings are vulnerability or security findings returned by the audit.
Findings []*AuditFinding `protobuf:"bytes,2,rep,name=findings,proto3" json:"findings,omitempty"`
// outdated are dependency update opportunities returned by the audit.
Outdated []*OutdatedDep `protobuf:"bytes,3,rep,name=outdated,proto3" json:"outdated,omitempty"`
// tool identifies what produced the report, e.g. "govulncheck+go-list-u",
// "npm-audit+outdated", "pip-audit", "trivy", or "missing" when the
// required tool is not installed (still returns a successful empty scan).
Tool string `protobuf:"bytes,4,opt,name=tool,proto3" json:"tool,omitempty"`
// language is the source language the agent audited (matches
// core/languages constants: GO, PYTHON, TYPESCRIPT, RUST, DOCKER).
Language string `protobuf:"bytes,5,opt,name=language,proto3" json:"language,omitempty"`
// contains filtered or unexported fields
}
AuditResponse returns vulnerability findings, outdated dependencies, and tool metadata.
func (*AuditResponse) Descriptor
deprecated
added in
v0.1.155
func (*AuditResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuditResponse.ProtoReflect.Descriptor instead.
func (*AuditResponse) GetFindings ¶ added in v0.1.155
func (x *AuditResponse) GetFindings() []*AuditFinding
func (*AuditResponse) GetLanguage ¶ added in v0.1.155
func (x *AuditResponse) GetLanguage() string
func (*AuditResponse) GetOutdated ¶ added in v0.1.155
func (x *AuditResponse) GetOutdated() []*OutdatedDep
func (*AuditResponse) GetState ¶ added in v0.1.155
func (x *AuditResponse) GetState() *AuditStatus
func (*AuditResponse) GetTool ¶ added in v0.1.155
func (x *AuditResponse) GetTool() string
func (*AuditResponse) ProtoMessage ¶ added in v0.1.155
func (*AuditResponse) ProtoMessage()
func (*AuditResponse) ProtoReflect ¶ added in v0.1.155
func (x *AuditResponse) ProtoReflect() protoreflect.Message
func (*AuditResponse) Reset ¶ added in v0.1.155
func (x *AuditResponse) Reset()
func (*AuditResponse) String ¶ added in v0.1.155
func (x *AuditResponse) String() string
type AuditStatus ¶ added in v0.1.155
type AuditStatus struct {
// state is the machine-readable lifecycle state.
State AuditStatus_Status `protobuf:"varint,1,opt,name=state,proto3,enum=codefly.services.builder.v0.AuditStatus_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
}
AuditStatus reports the state and message for the audit lifecycle phase.
func (*AuditStatus) Descriptor
deprecated
added in
v0.1.155
func (*AuditStatus) Descriptor() ([]byte, []int)
Deprecated: Use AuditStatus.ProtoReflect.Descriptor instead.
func (*AuditStatus) GetMessage ¶ added in v0.1.155
func (x *AuditStatus) GetMessage() string
func (*AuditStatus) GetState ¶ added in v0.1.155
func (x *AuditStatus) GetState() AuditStatus_Status
func (*AuditStatus) ProtoMessage ¶ added in v0.1.155
func (*AuditStatus) ProtoMessage()
func (*AuditStatus) ProtoReflect ¶ added in v0.1.155
func (x *AuditStatus) ProtoReflect() protoreflect.Message
func (*AuditStatus) Reset ¶ added in v0.1.155
func (x *AuditStatus) Reset()
func (*AuditStatus) String ¶ added in v0.1.155
func (x *AuditStatus) String() string
type AuditStatus_Status ¶ added in v0.1.155
type AuditStatus_Status int32
Status enumerates lifecycle status values.
const ( // UNKNOWN is the default value when status is not specified. AuditStatus_UNKNOWN AuditStatus_Status = 0 // CLEAN means the audit found no actionable issues. AuditStatus_CLEAN AuditStatus_Status = 1 // no findings // FINDINGS means the audit completed and returned issues to review. AuditStatus_FINDINGS AuditStatus_Status = 2 // findings present (still a successful scan) // ERROR means the phase failed and message carries diagnostics. AuditStatus_ERROR AuditStatus_Status = 3 // tool failed or fail_on_vuln tripped )
func (AuditStatus_Status) Descriptor ¶ added in v0.1.155
func (AuditStatus_Status) Descriptor() protoreflect.EnumDescriptor
func (AuditStatus_Status) Enum ¶ added in v0.1.155
func (x AuditStatus_Status) Enum() *AuditStatus_Status
func (AuditStatus_Status) EnumDescriptor
deprecated
added in
v0.1.155
func (AuditStatus_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use AuditStatus_Status.Descriptor instead.
func (AuditStatus_Status) Number ¶ added in v0.1.155
func (x AuditStatus_Status) Number() protoreflect.EnumNumber
func (AuditStatus_Status) String ¶ added in v0.1.155
func (x AuditStatus_Status) String() string
func (AuditStatus_Status) Type ¶ added in v0.1.155
func (AuditStatus_Status) Type() protoreflect.EnumType
type BuildContext ¶
type BuildContext struct {
// kind selects one build-context implementation.
//
// Types that are valid to be assigned to Kind:
//
// *BuildContext_DockerBuildContext
Kind isBuildContext_Kind `protobuf_oneof:"kind"`
// contains filtered or unexported fields
}
BuildContext selects the concrete packaging/build system for this service.
func (*BuildContext) Descriptor
deprecated
func (*BuildContext) Descriptor() ([]byte, []int)
Deprecated: Use BuildContext.ProtoReflect.Descriptor instead.
func (*BuildContext) GetDockerBuildContext ¶
func (x *BuildContext) GetDockerBuildContext() *DockerBuildContext
func (*BuildContext) GetKind ¶
func (x *BuildContext) GetKind() isBuildContext_Kind
func (*BuildContext) ProtoMessage ¶
func (*BuildContext) ProtoMessage()
func (*BuildContext) ProtoReflect ¶
func (x *BuildContext) ProtoReflect() protoreflect.Message
func (*BuildContext) Reset ¶
func (x *BuildContext) Reset()
func (*BuildContext) String ¶
func (x *BuildContext) String() string
type BuildContext_DockerBuildContext ¶
type BuildContext_DockerBuildContext struct {
// docker_build_context carries the DockerBuildContext variant for BuildContext.
DockerBuildContext *DockerBuildContext `protobuf:"bytes,1,opt,name=docker_build_context,json=dockerBuildContext,proto3,oneof"`
}
type BuildRequest ¶
type BuildRequest struct {
// build_context is the container build context supplied to the builder.
BuildContext *BuildContext `protobuf:"bytes,1,opt,name=build_context,json=buildContext,proto3" json:"build_context,omitempty"`
// contains filtered or unexported fields
}
BuildRequest provides the container/package build context for a service.
func (*BuildRequest) Descriptor
deprecated
func (*BuildRequest) Descriptor() ([]byte, []int)
Deprecated: Use BuildRequest.ProtoReflect.Descriptor instead.
func (*BuildRequest) GetBuildContext ¶
func (x *BuildRequest) GetBuildContext() *BuildContext
func (*BuildRequest) ProtoMessage ¶
func (*BuildRequest) ProtoMessage()
func (*BuildRequest) ProtoReflect ¶
func (x *BuildRequest) ProtoReflect() protoreflect.Message
func (*BuildRequest) Reset ¶
func (x *BuildRequest) Reset()
func (*BuildRequest) String ¶
func (x *BuildRequest) String() string
type BuildResponse ¶
type BuildResponse struct {
// state is the machine-readable lifecycle state.
State *BuildStatus `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
// result is the structured operation outcome.
Result *BuildResult `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"`
// contains filtered or unexported fields
}
BuildResponse returns the structured build outcome.
func (*BuildResponse) Descriptor
deprecated
func (*BuildResponse) Descriptor() ([]byte, []int)
Deprecated: Use BuildResponse.ProtoReflect.Descriptor instead.
func (*BuildResponse) GetResult ¶
func (x *BuildResponse) GetResult() *BuildResult
func (*BuildResponse) GetState ¶
func (x *BuildResponse) GetState() *BuildStatus
func (*BuildResponse) ProtoMessage ¶
func (*BuildResponse) ProtoMessage()
func (*BuildResponse) ProtoReflect ¶
func (x *BuildResponse) ProtoReflect() protoreflect.Message
func (*BuildResponse) Reset ¶
func (x *BuildResponse) Reset()
func (*BuildResponse) String ¶
func (x *BuildResponse) String() string
type BuildResult ¶
type BuildResult struct {
// version is the semantic or service-specific version for this resource.
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
// running_hash identifies the runtime artifact built for execution.
RunningHash string `protobuf:"bytes,2,opt,name=running_hash,json=runningHash,proto3" json:"running_hash,omitempty"`
// api_hash identifies the API surface used to detect contract changes.
ApiHash string `protobuf:"bytes,3,opt,name=api_hash,json=apiHash,proto3" json:"api_hash,omitempty"`
// kind selects one build-result implementation.
//
// Types that are valid to be assigned to Kind:
//
// *BuildResult_DockerBuildResult
Kind isBuildResult_Kind `protobuf_oneof:"kind"`
// contains filtered or unexported fields
}
BuildResult captures the outcome of build.
func (*BuildResult) Descriptor
deprecated
func (*BuildResult) Descriptor() ([]byte, []int)
Deprecated: Use BuildResult.ProtoReflect.Descriptor instead.
func (*BuildResult) GetApiHash ¶ added in v0.1.124
func (x *BuildResult) GetApiHash() string
func (*BuildResult) GetDockerBuildResult ¶
func (x *BuildResult) GetDockerBuildResult() *DockerBuildResult
func (*BuildResult) GetKind ¶
func (x *BuildResult) GetKind() isBuildResult_Kind
func (*BuildResult) GetRunningHash ¶ added in v0.1.124
func (x *BuildResult) GetRunningHash() string
func (*BuildResult) GetVersion ¶ added in v0.1.124
func (x *BuildResult) GetVersion() string
func (*BuildResult) ProtoMessage ¶
func (*BuildResult) ProtoMessage()
func (*BuildResult) ProtoReflect ¶
func (x *BuildResult) ProtoReflect() protoreflect.Message
func (*BuildResult) Reset ¶
func (x *BuildResult) Reset()
func (*BuildResult) String ¶
func (x *BuildResult) String() string
type BuildResult_DockerBuildResult ¶
type BuildResult_DockerBuildResult struct {
// docker_build_result carries the DockerBuildResult variant for BuildResult.
DockerBuildResult *DockerBuildResult `protobuf:"bytes,4,opt,name=docker_build_result,json=dockerBuildResult,proto3,oneof"`
}
type BuildStatus ¶
type BuildStatus struct {
// state is the machine-readable lifecycle state.
State BuildStatus_Status `protobuf:"varint,1,opt,name=state,proto3,enum=codefly.services.builder.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
func (*BuildStatus) Descriptor() ([]byte, []int)
Deprecated: Use BuildStatus.ProtoReflect.Descriptor instead.
func (*BuildStatus) GetMessage ¶
func (x *BuildStatus) GetMessage() string
func (*BuildStatus) GetState ¶
func (x *BuildStatus) GetState() BuildStatus_Status
func (*BuildStatus) ProtoMessage ¶
func (*BuildStatus) ProtoMessage()
func (*BuildStatus) ProtoReflect ¶
func (x *BuildStatus) ProtoReflect() protoreflect.Message
func (*BuildStatus) Reset ¶
func (x *BuildStatus) Reset()
func (*BuildStatus) String ¶
func (x *BuildStatus) String() string
type BuildStatus_Status ¶
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 // NOOP means no lifecycle transition is currently requested. BuildStatus_NOOP BuildStatus_Status = 3 )
func (BuildStatus_Status) Descriptor ¶
func (BuildStatus_Status) Descriptor() protoreflect.EnumDescriptor
func (BuildStatus_Status) Enum ¶
func (x BuildStatus_Status) Enum() *BuildStatus_Status
func (BuildStatus_Status) EnumDescriptor
deprecated
func (BuildStatus_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use BuildStatus_Status.Descriptor instead.
func (BuildStatus_Status) Number ¶
func (x BuildStatus_Status) Number() protoreflect.EnumNumber
func (BuildStatus_Status) String ¶
func (x BuildStatus_Status) String() string
func (BuildStatus_Status) Type ¶
func (BuildStatus_Status) Type() protoreflect.EnumType
type BuilderClient ¶
type BuilderClient interface {
// Load reads service metadata and prepares the builder agent.
Load(ctx context.Context, in *LoadRequest, opts ...grpc.CallOption) (*LoadResponse, error)
// Init prepares dependency metadata and builder state.
Init(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (*InitResponse, error)
// Create scaffolds service source code.
Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
// Update refreshes an existing service from agent rules or templates.
Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error)
// Sync regenerates configuration-derived or template-derived service files.
Sync(ctx context.Context, in *SyncRequest, opts ...grpc.CallOption) (*SyncResponse, error)
// Build compiles or packages the service artifact.
Build(ctx context.Context, in *BuildRequest, opts ...grpc.CallOption) (*BuildResponse, error)
// Deploy emits or applies deployment artifacts for the target environment.
Deploy(ctx context.Context, in *DeploymentRequest, opts ...grpc.CallOption) (*DeploymentResponse, error)
// Audit runs dependency and image vulnerability checks.
Audit(ctx context.Context, in *AuditRequest, opts ...grpc.CallOption) (*AuditResponse, error)
// Upgrade applies or previews dependency version bumps.
Upgrade(ctx context.Context, in *UpgradeRequest, opts ...grpc.CallOption) (*UpgradeResponse, error)
// Bidirectional streaming for interactive Q&A (e.g. during Create/Sync).
// Plugin streams Questions, CLI streams Answers.
Communicate(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[v0.Answer, v0.Question], error)
}
BuilderClient is the client API for Builder 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.
Builder is responsible for: - creation - Docker build - Deployment manifests - Dependency audit / upgrade
func NewBuilderClient ¶
func NewBuilderClient(cc grpc.ClientConnInterface) BuilderClient
type BuilderServer ¶
type BuilderServer interface {
// Load reads service metadata and prepares the builder agent.
Load(context.Context, *LoadRequest) (*LoadResponse, error)
// Init prepares dependency metadata and builder state.
Init(context.Context, *InitRequest) (*InitResponse, error)
// Create scaffolds service source code.
Create(context.Context, *CreateRequest) (*CreateResponse, error)
// Update refreshes an existing service from agent rules or templates.
Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
// Sync regenerates configuration-derived or template-derived service files.
Sync(context.Context, *SyncRequest) (*SyncResponse, error)
// Build compiles or packages the service artifact.
Build(context.Context, *BuildRequest) (*BuildResponse, error)
// Deploy emits or applies deployment artifacts for the target environment.
Deploy(context.Context, *DeploymentRequest) (*DeploymentResponse, error)
// Audit runs dependency and image vulnerability checks.
Audit(context.Context, *AuditRequest) (*AuditResponse, error)
// Upgrade applies or previews dependency version bumps.
Upgrade(context.Context, *UpgradeRequest) (*UpgradeResponse, error)
// Bidirectional streaming for interactive Q&A (e.g. during Create/Sync).
// Plugin streams Questions, CLI streams Answers.
Communicate(grpc.BidiStreamingServer[v0.Answer, v0.Question]) error
// contains filtered or unexported methods
}
BuilderServer is the server API for Builder service. All implementations must embed UnimplementedBuilderServer for forward compatibility.
Builder is responsible for: - creation - Docker build - Deployment manifests - Dependency audit / upgrade
type Builder_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 Builder_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 CreateRequest ¶
type CreateRequest struct {
// contains filtered or unexported fields
}
CreateRequest asks the builder to scaffold service code.
func (*CreateRequest) Descriptor
deprecated
func (*CreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) ProtoReflect ¶
func (x *CreateRequest) ProtoReflect() protoreflect.Message
func (*CreateRequest) Reset ¶
func (x *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (x *CreateRequest) String() string
type CreateResponse ¶
type CreateResponse struct {
// state is the machine-readable lifecycle state.
State *CreateStatus `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
// endpoints are logical APIs created by the scaffolded service.
Endpoints []*v0.Endpoint `protobuf:"bytes,2,rep,name=endpoints,proto3" json:"endpoints,omitempty"` // The endpoints of the created service
// contains filtered or unexported fields
}
CreateResponse reports generated endpoints and creation status.
func (*CreateResponse) Descriptor
deprecated
func (*CreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.
func (*CreateResponse) GetEndpoints ¶
func (x *CreateResponse) GetEndpoints() []*v0.Endpoint
func (*CreateResponse) GetState ¶
func (x *CreateResponse) GetState() *CreateStatus
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) ProtoReflect ¶
func (x *CreateResponse) ProtoReflect() protoreflect.Message
func (*CreateResponse) Reset ¶
func (x *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (x *CreateResponse) String() string
type CreateStatus ¶
type CreateStatus struct {
// state is the machine-readable lifecycle state.
State CreateStatus_Status `protobuf:"varint,1,opt,name=state,proto3,enum=codefly.services.builder.v0.CreateStatus_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
}
CreateStatus reports the state and message for the create lifecycle phase.
func (*CreateStatus) Descriptor
deprecated
func (*CreateStatus) Descriptor() ([]byte, []int)
Deprecated: Use CreateStatus.ProtoReflect.Descriptor instead.
func (*CreateStatus) GetMessage ¶
func (x *CreateStatus) GetMessage() string
func (*CreateStatus) GetState ¶
func (x *CreateStatus) GetState() CreateStatus_Status
func (*CreateStatus) ProtoMessage ¶
func (*CreateStatus) ProtoMessage()
func (*CreateStatus) ProtoReflect ¶
func (x *CreateStatus) ProtoReflect() protoreflect.Message
func (*CreateStatus) Reset ¶
func (x *CreateStatus) Reset()
func (*CreateStatus) String ¶
func (x *CreateStatus) String() string
type CreateStatus_Status ¶
type CreateStatus_Status int32
Status enumerates lifecycle status values.
const ( // UNKNOWN is the default value when status is not specified. CreateStatus_UNKNOWN CreateStatus_Status = 0 // CREATED means the builder generated the requested service files. CreateStatus_CREATED CreateStatus_Status = 1 // ERROR means the phase failed and message carries diagnostics. CreateStatus_ERROR CreateStatus_Status = 2 )
func (CreateStatus_Status) Descriptor ¶
func (CreateStatus_Status) Descriptor() protoreflect.EnumDescriptor
func (CreateStatus_Status) Enum ¶
func (x CreateStatus_Status) Enum() *CreateStatus_Status
func (CreateStatus_Status) EnumDescriptor
deprecated
func (CreateStatus_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use CreateStatus_Status.Descriptor instead.
func (CreateStatus_Status) Number ¶
func (x CreateStatus_Status) Number() protoreflect.EnumNumber
func (CreateStatus_Status) String ¶
func (x CreateStatus_Status) String() string
func (CreateStatus_Status) Type ¶
func (CreateStatus_Status) Type() protoreflect.EnumType
type CreationMode ¶
type CreationMode struct {
// communicate enables interactive agent questions during this mode.
Communicate bool `protobuf:"varint,1,opt,name=communicate,proto3" json:"communicate,omitempty"`
// contains filtered or unexported fields
}
CreationMode configures Builder.Create behavior.
func (*CreationMode) Descriptor
deprecated
func (*CreationMode) Descriptor() ([]byte, []int)
Deprecated: Use CreationMode.ProtoReflect.Descriptor instead.
func (*CreationMode) GetCommunicate ¶
func (x *CreationMode) GetCommunicate() bool
func (*CreationMode) ProtoMessage ¶
func (*CreationMode) ProtoMessage()
func (*CreationMode) ProtoReflect ¶
func (x *CreationMode) ProtoReflect() protoreflect.Message
func (*CreationMode) Reset ¶
func (x *CreationMode) Reset()
func (*CreationMode) String ¶
func (x *CreationMode) String() string
type Deployment ¶
type Deployment struct {
// kind selects one deployment implementation.
//
// Types that are valid to be assigned to Kind:
//
// *Deployment_Kubernetes
Kind isDeployment_Kind `protobuf_oneof:"kind"`
// contains filtered or unexported fields
}
Deployment selects the deployment target and input format.
func (*Deployment) Descriptor
deprecated
func (*Deployment) Descriptor() ([]byte, []int)
Deprecated: Use Deployment.ProtoReflect.Descriptor instead.
func (*Deployment) GetKind ¶
func (x *Deployment) GetKind() isDeployment_Kind
func (*Deployment) GetKubernetes ¶
func (x *Deployment) GetKubernetes() *KubernetesDeployment
func (*Deployment) ProtoMessage ¶
func (*Deployment) ProtoMessage()
func (*Deployment) ProtoReflect ¶
func (x *Deployment) ProtoReflect() protoreflect.Message
func (*Deployment) Reset ¶
func (x *Deployment) Reset()
func (*Deployment) String ¶
func (x *Deployment) String() string
type DeploymentKind ¶
type DeploymentKind int32
DeploymentKind enumerates deployment artifact formats produced by builders.
const ( // KUSTOMIZE is a Kubernetes kustomize deployment output. DeploymentKind_KUSTOMIZE DeploymentKind = 0 )
func (DeploymentKind) Descriptor ¶
func (DeploymentKind) Descriptor() protoreflect.EnumDescriptor
func (DeploymentKind) Enum ¶
func (x DeploymentKind) Enum() *DeploymentKind
func (DeploymentKind) EnumDescriptor
deprecated
func (DeploymentKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use DeploymentKind.Descriptor instead.
func (DeploymentKind) Number ¶
func (x DeploymentKind) Number() protoreflect.EnumNumber
func (DeploymentKind) String ¶
func (x DeploymentKind) String() string
func (DeploymentKind) Type ¶
func (DeploymentKind) Type() protoreflect.EnumType
type DeploymentOutput ¶
type DeploymentOutput struct {
// kind selects one deployment output implementation.
//
// Types that are valid to be assigned to Kind:
//
// *DeploymentOutput_Kubernetes
Kind isDeploymentOutput_Kind `protobuf_oneof:"kind"`
// contains filtered or unexported fields
}
DeploymentOutput selects the deployment artifact emitted by the builder.
func (*DeploymentOutput) Descriptor
deprecated
func (*DeploymentOutput) Descriptor() ([]byte, []int)
Deprecated: Use DeploymentOutput.ProtoReflect.Descriptor instead.
func (*DeploymentOutput) GetKind ¶
func (x *DeploymentOutput) GetKind() isDeploymentOutput_Kind
func (*DeploymentOutput) GetKubernetes ¶
func (x *DeploymentOutput) GetKubernetes() *KubernetesDeploymentOutput
func (*DeploymentOutput) ProtoMessage ¶
func (*DeploymentOutput) ProtoMessage()
func (*DeploymentOutput) ProtoReflect ¶
func (x *DeploymentOutput) ProtoReflect() protoreflect.Message
func (*DeploymentOutput) Reset ¶
func (x *DeploymentOutput) Reset()
func (*DeploymentOutput) String ¶
func (x *DeploymentOutput) String() string
type DeploymentOutput_Kubernetes ¶
type DeploymentOutput_Kubernetes struct {
// kubernetes carries the KubernetesDeploymentOutput variant for DeploymentOutput.
Kubernetes *KubernetesDeploymentOutput `protobuf:"bytes,2,opt,name=kubernetes,proto3,oneof"`
}
type DeploymentRequest ¶
type DeploymentRequest struct {
// environment is the target Codefly environment such as local, staging, or production.
Environment *v0.Environment `protobuf:"bytes,1,opt,name=environment,proto3" json:"environment,omitempty"`
// deployment is the deployment target and payload handled by the builder.
Deployment *Deployment `protobuf:"bytes,2,opt,name=deployment,proto3" json:"deployment,omitempty"`
// configuration is the service or workspace configuration payload.
Configuration *v0.Configuration `protobuf:"bytes,3,opt,name=configuration,proto3" json:"configuration,omitempty"`
// dependencies_configurations are configuration values exposed by upstream services.
DependenciesConfigurations []*v0.Configuration `` /* 139-byte string literal not displayed */
// network_mappings map logical endpoints to concrete network instances.
NetworkMappings []*v0.NetworkMapping `protobuf:"bytes,5,rep,name=network_mappings,json=networkMappings,proto3" json:"network_mappings,omitempty"`
// dependencies_network_mappings are reachable addresses for upstream services.
DependenciesNetworkMappings []*v0.NetworkMapping `` /* 144-byte string literal not displayed */
// contains filtered or unexported fields
}
DeploymentRequest provides target environment, build output, and dependency data for deploy.
func (*DeploymentRequest) Descriptor
deprecated
func (*DeploymentRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeploymentRequest.ProtoReflect.Descriptor instead.
func (*DeploymentRequest) GetConfiguration ¶
func (x *DeploymentRequest) GetConfiguration() *v0.Configuration
func (*DeploymentRequest) GetDependenciesConfigurations ¶
func (x *DeploymentRequest) GetDependenciesConfigurations() []*v0.Configuration
func (*DeploymentRequest) GetDependenciesNetworkMappings ¶
func (x *DeploymentRequest) GetDependenciesNetworkMappings() []*v0.NetworkMapping
func (*DeploymentRequest) GetDeployment ¶
func (x *DeploymentRequest) GetDeployment() *Deployment
func (*DeploymentRequest) GetEnvironment ¶
func (x *DeploymentRequest) GetEnvironment() *v0.Environment
func (*DeploymentRequest) GetNetworkMappings ¶
func (x *DeploymentRequest) GetNetworkMappings() []*v0.NetworkMapping
func (*DeploymentRequest) ProtoMessage ¶
func (*DeploymentRequest) ProtoMessage()
func (*DeploymentRequest) ProtoReflect ¶
func (x *DeploymentRequest) ProtoReflect() protoreflect.Message
func (*DeploymentRequest) Reset ¶
func (x *DeploymentRequest) Reset()
func (*DeploymentRequest) String ¶
func (x *DeploymentRequest) String() string
type DeploymentResponse ¶
type DeploymentResponse struct {
// state is the machine-readable lifecycle state.
State *DeploymentStatus `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
// configuration is the service or workspace configuration payload.
Configuration *v0.Configuration `protobuf:"bytes,2,opt,name=configuration,proto3" json:"configuration,omitempty"`
// deployment is the deployment target and payload handled by the builder.
Deployment *DeploymentOutput `protobuf:"bytes,3,opt,name=deployment,proto3" json:"deployment,omitempty"`
// contains filtered or unexported fields
}
DeploymentResponse returns deployment status and any configuration produced by deployment.
func (*DeploymentResponse) Descriptor
deprecated
func (*DeploymentResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeploymentResponse.ProtoReflect.Descriptor instead.
func (*DeploymentResponse) GetConfiguration ¶
func (x *DeploymentResponse) GetConfiguration() *v0.Configuration
func (*DeploymentResponse) GetDeployment ¶
func (x *DeploymentResponse) GetDeployment() *DeploymentOutput
func (*DeploymentResponse) GetState ¶
func (x *DeploymentResponse) GetState() *DeploymentStatus
func (*DeploymentResponse) ProtoMessage ¶
func (*DeploymentResponse) ProtoMessage()
func (*DeploymentResponse) ProtoReflect ¶
func (x *DeploymentResponse) ProtoReflect() protoreflect.Message
func (*DeploymentResponse) Reset ¶
func (x *DeploymentResponse) Reset()
func (*DeploymentResponse) String ¶
func (x *DeploymentResponse) String() string
type DeploymentStatus ¶
type DeploymentStatus struct {
// state is the machine-readable lifecycle state.
State DeploymentStatus_Status `protobuf:"varint,1,opt,name=state,proto3,enum=codefly.services.builder.v0.DeploymentStatus_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
}
DeploymentStatus reports the state and message for the deployment lifecycle phase.
func (*DeploymentStatus) Descriptor
deprecated
func (*DeploymentStatus) Descriptor() ([]byte, []int)
Deprecated: Use DeploymentStatus.ProtoReflect.Descriptor instead.
func (*DeploymentStatus) GetMessage ¶
func (x *DeploymentStatus) GetMessage() string
func (*DeploymentStatus) GetState ¶
func (x *DeploymentStatus) GetState() DeploymentStatus_Status
func (*DeploymentStatus) ProtoMessage ¶
func (*DeploymentStatus) ProtoMessage()
func (*DeploymentStatus) ProtoReflect ¶
func (x *DeploymentStatus) ProtoReflect() protoreflect.Message
func (*DeploymentStatus) Reset ¶
func (x *DeploymentStatus) Reset()
func (*DeploymentStatus) String ¶
func (x *DeploymentStatus) String() string
type DeploymentStatus_Status ¶
type DeploymentStatus_Status int32
Status enumerates lifecycle status values.
const ( // UNKNOWN is the default value when status is not specified. DeploymentStatus_UNKNOWN DeploymentStatus_Status = 0 // SUCCESS means the operation completed successfully. DeploymentStatus_SUCCESS DeploymentStatus_Status = 1 // ERROR means the phase failed and message carries diagnostics. DeploymentStatus_ERROR DeploymentStatus_Status = 2 // NOOP means no lifecycle transition is currently requested. DeploymentStatus_NOOP DeploymentStatus_Status = 3 )
func (DeploymentStatus_Status) Descriptor ¶
func (DeploymentStatus_Status) Descriptor() protoreflect.EnumDescriptor
func (DeploymentStatus_Status) Enum ¶
func (x DeploymentStatus_Status) Enum() *DeploymentStatus_Status
func (DeploymentStatus_Status) EnumDescriptor
deprecated
func (DeploymentStatus_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use DeploymentStatus_Status.Descriptor instead.
func (DeploymentStatus_Status) Number ¶
func (x DeploymentStatus_Status) Number() protoreflect.EnumNumber
func (DeploymentStatus_Status) String ¶
func (x DeploymentStatus_Status) String() string
func (DeploymentStatus_Status) Type ¶
func (DeploymentStatus_Status) Type() protoreflect.EnumType
type Deployment_Kubernetes ¶
type Deployment_Kubernetes struct {
// kubernetes carries the KubernetesDeployment variant for Deployment.
Kubernetes *KubernetesDeployment `protobuf:"bytes,2,opt,name=kubernetes,proto3,oneof"`
}
type DockerBuildContext ¶
type DockerBuildContext struct {
// docker_repository is the image repository used for Docker builds.
DockerRepository string `protobuf:"bytes,1,opt,name=docker_repository,json=dockerRepository,proto3" json:"docker_repository,omitempty"`
// contains filtered or unexported fields
}
DockerBuildContext contains Docker-specific image build inputs.
func (*DockerBuildContext) Descriptor
deprecated
func (*DockerBuildContext) Descriptor() ([]byte, []int)
Deprecated: Use DockerBuildContext.ProtoReflect.Descriptor instead.
func (*DockerBuildContext) GetDockerRepository ¶
func (x *DockerBuildContext) GetDockerRepository() string
func (*DockerBuildContext) ProtoMessage ¶
func (*DockerBuildContext) ProtoMessage()
func (*DockerBuildContext) ProtoReflect ¶
func (x *DockerBuildContext) ProtoReflect() protoreflect.Message
func (*DockerBuildContext) Reset ¶
func (x *DockerBuildContext) Reset()
func (*DockerBuildContext) String ¶
func (x *DockerBuildContext) String() string
type DockerBuildResult ¶
type DockerBuildResult struct {
// images are image tags or digests produced by the Docker build.
Images []string `protobuf:"bytes,1,rep,name=images,proto3" json:"images,omitempty"`
// contains filtered or unexported fields
}
DockerBuildResult captures Docker image references produced by a build.
func (*DockerBuildResult) Descriptor
deprecated
func (*DockerBuildResult) Descriptor() ([]byte, []int)
Deprecated: Use DockerBuildResult.ProtoReflect.Descriptor instead.
func (*DockerBuildResult) GetImages ¶
func (x *DockerBuildResult) GetImages() []string
func (*DockerBuildResult) ProtoMessage ¶
func (*DockerBuildResult) ProtoMessage()
func (*DockerBuildResult) ProtoReflect ¶
func (x *DockerBuildResult) ProtoReflect() protoreflect.Message
func (*DockerBuildResult) Reset ¶
func (x *DockerBuildResult) Reset()
func (*DockerBuildResult) String ¶
func (x *DockerBuildResult) String() string
type InitRequest ¶
type InitRequest struct {
// dependencies_endpoints are logical endpoints exposed by upstream services.
DependenciesEndpoints []*v0.Endpoint `protobuf:"bytes,1,rep,name=dependencies_endpoints,json=dependenciesEndpoints,proto3" json:"dependencies_endpoints,omitempty"`
// contains filtered or unexported fields
}
InitRequest provides dependency metadata needed before build/deploy operations.
func (*InitRequest) Descriptor
deprecated
func (*InitRequest) Descriptor() ([]byte, []int)
Deprecated: Use InitRequest.ProtoReflect.Descriptor instead.
func (*InitRequest) GetDependenciesEndpoints ¶
func (x *InitRequest) GetDependenciesEndpoints() []*v0.Endpoint
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 {
// state is the machine-readable lifecycle state.
State *InitStatus `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
// contains filtered or unexported fields
}
InitResponse reports whether builder initialization succeeded.
func (*InitResponse) Descriptor
deprecated
func (*InitResponse) Descriptor() ([]byte, []int)
Deprecated: Use InitResponse.ProtoReflect.Descriptor instead.
func (*InitResponse) GetState ¶
func (x *InitResponse) GetState() *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.builder.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
}
Init
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 // SUCCESS means the operation completed successfully. InitStatus_SUCCESS 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 KubernetesDeployment ¶
type KubernetesDeployment struct {
// namespace is the Kubernetes namespace used for deployment.
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
// destination is the deployment destination path or environment.
Destination string `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"`
// build_context is the Docker image build context used by the deployment.
BuildContext *DockerBuildContext `protobuf:"bytes,3,opt,name=build_context,json=buildContext,proto3" json:"build_context,omitempty"`
// contains filtered or unexported fields
}
KubernetesDeployment contains inputs for Kubernetes manifest generation.
func (*KubernetesDeployment) Descriptor
deprecated
func (*KubernetesDeployment) Descriptor() ([]byte, []int)
Deprecated: Use KubernetesDeployment.ProtoReflect.Descriptor instead.
func (*KubernetesDeployment) GetBuildContext ¶
func (x *KubernetesDeployment) GetBuildContext() *DockerBuildContext
func (*KubernetesDeployment) GetDestination ¶
func (x *KubernetesDeployment) GetDestination() string
func (*KubernetesDeployment) GetNamespace ¶
func (x *KubernetesDeployment) GetNamespace() string
func (*KubernetesDeployment) ProtoMessage ¶
func (*KubernetesDeployment) ProtoMessage()
func (*KubernetesDeployment) ProtoReflect ¶
func (x *KubernetesDeployment) ProtoReflect() protoreflect.Message
func (*KubernetesDeployment) Reset ¶
func (x *KubernetesDeployment) Reset()
func (*KubernetesDeployment) String ¶
func (x *KubernetesDeployment) String() string
type KubernetesDeploymentOutput ¶
type KubernetesDeploymentOutput struct {
// kind identifies the generated Kubernetes artifact format.
Kind KubernetesDeploymentOutput_Kind `` /* 127-byte string literal not displayed */
// contains filtered or unexported fields
}
KubernetesDeploymentOutput describes generated Kubernetes deployment artifacts.
func (*KubernetesDeploymentOutput) Descriptor
deprecated
func (*KubernetesDeploymentOutput) Descriptor() ([]byte, []int)
Deprecated: Use KubernetesDeploymentOutput.ProtoReflect.Descriptor instead.
func (*KubernetesDeploymentOutput) GetKind ¶
func (x *KubernetesDeploymentOutput) GetKind() KubernetesDeploymentOutput_Kind
func (*KubernetesDeploymentOutput) ProtoMessage ¶
func (*KubernetesDeploymentOutput) ProtoMessage()
func (*KubernetesDeploymentOutput) ProtoReflect ¶
func (x *KubernetesDeploymentOutput) ProtoReflect() protoreflect.Message
func (*KubernetesDeploymentOutput) Reset ¶
func (x *KubernetesDeploymentOutput) Reset()
func (*KubernetesDeploymentOutput) String ¶
func (x *KubernetesDeploymentOutput) String() string
type KubernetesDeploymentOutput_Kind ¶
type KubernetesDeploymentOutput_Kind int32
Kind enumerates Kubernetes deployment artifact formats.
const ( // KUSTOMIZE means the builder emitted kustomize-compatible manifests. KubernetesDeploymentOutput_KUSTOMIZE KubernetesDeploymentOutput_Kind = 0 )
func (KubernetesDeploymentOutput_Kind) Descriptor ¶
func (KubernetesDeploymentOutput_Kind) Descriptor() protoreflect.EnumDescriptor
func (KubernetesDeploymentOutput_Kind) Enum ¶
func (x KubernetesDeploymentOutput_Kind) Enum() *KubernetesDeploymentOutput_Kind
func (KubernetesDeploymentOutput_Kind) EnumDescriptor
deprecated
func (KubernetesDeploymentOutput_Kind) EnumDescriptor() ([]byte, []int)
Deprecated: Use KubernetesDeploymentOutput_Kind.Descriptor instead.
func (KubernetesDeploymentOutput_Kind) Number ¶
func (x KubernetesDeploymentOutput_Kind) Number() protoreflect.EnumNumber
func (KubernetesDeploymentOutput_Kind) String ¶
func (x KubernetesDeploymentOutput_Kind) String() string
func (KubernetesDeploymentOutput_Kind) Type ¶
func (KubernetesDeploymentOutput_Kind) Type() protoreflect.EnumType
type LoadRequest ¶
type LoadRequest struct {
// developer_debug enables agent-side debug behavior.
DeveloperDebug bool `protobuf:"varint,1,opt,name=developer_debug,json=developerDebug,proto3" json:"developer_debug,omitempty"`
// disable_catch disables agent panic/error catching for debugging.
DisableCatch bool `protobuf:"varint,2,opt,name=disable_catch,json=disableCatch,proto3" json:"disable_catch,omitempty"`
// Identity of the service
Identity *v0.ServiceIdentity `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"`
// creation_mode configures interactive scaffolding behavior.
CreationMode *CreationMode `protobuf:"bytes,4,opt,name=creation_mode,json=creationMode,proto3" json:"creation_mode,omitempty"`
// sync_mode configures interactive synchronization behavior.
SyncMode *SyncMode `protobuf:"bytes,5,opt,name=sync_mode,json=syncMode,proto3" json:"sync_mode,omitempty"`
// contains filtered or unexported fields
}
LoadRequest starts a builder agent and asks it to read service metadata.
func (*LoadRequest) Descriptor
deprecated
func (*LoadRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoadRequest.ProtoReflect.Descriptor instead.
func (*LoadRequest) GetCreationMode ¶
func (x *LoadRequest) GetCreationMode() *CreationMode
func (*LoadRequest) GetDeveloperDebug ¶
func (x *LoadRequest) GetDeveloperDebug() bool
func (*LoadRequest) GetDisableCatch ¶
func (x *LoadRequest) GetDisableCatch() bool
func (*LoadRequest) GetIdentity ¶
func (x *LoadRequest) GetIdentity() *v0.ServiceIdentity
func (*LoadRequest) GetSyncMode ¶
func (x *LoadRequest) GetSyncMode() *SyncMode
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 {
// state is the machine-readable lifecycle state.
State *LoadStatus `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
// version is the semantic or service-specific version for this resource.
Version *v0.Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// endpoints are logical endpoints the builder knows the service will expose.
Endpoints []*v0.Endpoint `protobuf:"bytes,3,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
// getting_started is human-facing guidance printed after scaffolding or loading.
GettingStarted string `protobuf:"bytes,4,opt,name=getting_started,json=gettingStarted,proto3" json:"getting_started,omitempty"`
// contains filtered or unexported fields
}
LoadResponse returns builder metadata discovered during Load.
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) GetGettingStarted ¶
func (x *LoadResponse) GetGettingStarted() string
func (*LoadResponse) GetState ¶
func (x *LoadResponse) GetState() *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.builder.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 OutdatedDep ¶ added in v0.1.155
type OutdatedDep struct {
// package is the package, dependency, or artifact name.
Package string `protobuf:"bytes,1,opt,name=package,proto3" json:"package,omitempty"`
// current is the currently installed dependency version.
Current string `protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
// latest_safe is the newest compatible version that should not require a breaking upgrade.
LatestSafe string `protobuf:"bytes,3,opt,name=latest_safe,json=latestSafe,proto3" json:"latest_safe,omitempty"` // newest patch+minor without crossing major
// latest_major is the newest major version discovered by the audit.
LatestMajor string `protobuf:"bytes,4,opt,name=latest_major,json=latestMajor,proto3" json:"latest_major,omitempty"` // newest including major bump
// contains filtered or unexported fields
}
OutdatedDep reports an installed dependency with newer versions available.
func (*OutdatedDep) Descriptor
deprecated
added in
v0.1.155
func (*OutdatedDep) Descriptor() ([]byte, []int)
Deprecated: Use OutdatedDep.ProtoReflect.Descriptor instead.
func (*OutdatedDep) GetCurrent ¶ added in v0.1.155
func (x *OutdatedDep) GetCurrent() string
func (*OutdatedDep) GetLatestMajor ¶ added in v0.1.155
func (x *OutdatedDep) GetLatestMajor() string
func (*OutdatedDep) GetLatestSafe ¶ added in v0.1.155
func (x *OutdatedDep) GetLatestSafe() string
func (*OutdatedDep) GetPackage ¶ added in v0.1.155
func (x *OutdatedDep) GetPackage() string
func (*OutdatedDep) ProtoMessage ¶ added in v0.1.155
func (*OutdatedDep) ProtoMessage()
func (*OutdatedDep) ProtoReflect ¶ added in v0.1.155
func (x *OutdatedDep) ProtoReflect() protoreflect.Message
func (*OutdatedDep) Reset ¶ added in v0.1.155
func (x *OutdatedDep) Reset()
func (*OutdatedDep) String ¶ added in v0.1.155
func (x *OutdatedDep) String() string
type SyncMode ¶
type SyncMode struct {
// communicate enables interactive agent questions during this mode.
Communicate bool `protobuf:"varint,1,opt,name=communicate,proto3" json:"communicate,omitempty"`
// contains filtered or unexported fields
}
SyncMode configures Builder.Sync behavior.
func (*SyncMode) Descriptor
deprecated
func (*SyncMode) GetCommunicate ¶
func (*SyncMode) ProtoMessage ¶
func (*SyncMode) ProtoMessage()
func (*SyncMode) ProtoReflect ¶
func (x *SyncMode) ProtoReflect() protoreflect.Message
type SyncRequest ¶
type SyncRequest struct {
// contains filtered or unexported fields
}
SyncRequest asks the builder to resynchronize generated or configuration-derived files.
func (*SyncRequest) Descriptor
deprecated
func (*SyncRequest) Descriptor() ([]byte, []int)
Deprecated: Use SyncRequest.ProtoReflect.Descriptor instead.
func (*SyncRequest) ProtoMessage ¶
func (*SyncRequest) ProtoMessage()
func (*SyncRequest) ProtoReflect ¶
func (x *SyncRequest) ProtoReflect() protoreflect.Message
func (*SyncRequest) Reset ¶
func (x *SyncRequest) Reset()
func (*SyncRequest) String ¶
func (x *SyncRequest) String() string
type SyncResponse ¶
type SyncResponse struct {
// state is the machine-readable lifecycle state.
State *SyncStatus `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
// contains filtered or unexported fields
}
SyncResponse reports whether synchronization completed.
func (*SyncResponse) Descriptor
deprecated
func (*SyncResponse) Descriptor() ([]byte, []int)
Deprecated: Use SyncResponse.ProtoReflect.Descriptor instead.
func (*SyncResponse) GetState ¶
func (x *SyncResponse) GetState() *SyncStatus
func (*SyncResponse) ProtoMessage ¶
func (*SyncResponse) ProtoMessage()
func (*SyncResponse) ProtoReflect ¶
func (x *SyncResponse) ProtoReflect() protoreflect.Message
func (*SyncResponse) Reset ¶
func (x *SyncResponse) Reset()
func (*SyncResponse) String ¶
func (x *SyncResponse) String() string
type SyncStatus ¶
type SyncStatus struct {
// state is the machine-readable lifecycle state.
State SyncStatus_Status `protobuf:"varint,1,opt,name=state,proto3,enum=codefly.services.builder.v0.SyncStatus_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
}
SyncStatus reports the state and message for the sync lifecycle phase.
func (*SyncStatus) Descriptor
deprecated
func (*SyncStatus) Descriptor() ([]byte, []int)
Deprecated: Use SyncStatus.ProtoReflect.Descriptor instead.
func (*SyncStatus) GetMessage ¶
func (x *SyncStatus) GetMessage() string
func (*SyncStatus) GetState ¶
func (x *SyncStatus) GetState() SyncStatus_Status
func (*SyncStatus) ProtoMessage ¶
func (*SyncStatus) ProtoMessage()
func (*SyncStatus) ProtoReflect ¶
func (x *SyncStatus) ProtoReflect() protoreflect.Message
func (*SyncStatus) Reset ¶
func (x *SyncStatus) Reset()
func (*SyncStatus) String ¶
func (x *SyncStatus) String() string
type SyncStatus_Status ¶
type SyncStatus_Status int32
Status enumerates lifecycle status values.
const ( // UNKNOWN is the default value when status is not specified. SyncStatus_UNKNOWN SyncStatus_Status = 0 // SUCCESS means the operation completed successfully. SyncStatus_SUCCESS SyncStatus_Status = 1 // ERROR means the phase failed and message carries diagnostics. SyncStatus_ERROR SyncStatus_Status = 2 )
func (SyncStatus_Status) Descriptor ¶
func (SyncStatus_Status) Descriptor() protoreflect.EnumDescriptor
func (SyncStatus_Status) Enum ¶
func (x SyncStatus_Status) Enum() *SyncStatus_Status
func (SyncStatus_Status) EnumDescriptor
deprecated
func (SyncStatus_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use SyncStatus_Status.Descriptor instead.
func (SyncStatus_Status) Number ¶
func (x SyncStatus_Status) Number() protoreflect.EnumNumber
func (SyncStatus_Status) String ¶
func (x SyncStatus_Status) String() string
func (SyncStatus_Status) Type ¶
func (SyncStatus_Status) Type() protoreflect.EnumType
type UnimplementedBuilderServer ¶
type UnimplementedBuilderServer struct{}
UnimplementedBuilderServer 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 (UnimplementedBuilderServer) Audit ¶ added in v0.1.155
func (UnimplementedBuilderServer) Audit(context.Context, *AuditRequest) (*AuditResponse, error)
func (UnimplementedBuilderServer) Build ¶
func (UnimplementedBuilderServer) Build(context.Context, *BuildRequest) (*BuildResponse, error)
func (UnimplementedBuilderServer) Communicate ¶
func (UnimplementedBuilderServer) Communicate(grpc.BidiStreamingServer[v0.Answer, v0.Question]) error
func (UnimplementedBuilderServer) Create ¶
func (UnimplementedBuilderServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
func (UnimplementedBuilderServer) Deploy ¶
func (UnimplementedBuilderServer) Deploy(context.Context, *DeploymentRequest) (*DeploymentResponse, error)
func (UnimplementedBuilderServer) Init ¶
func (UnimplementedBuilderServer) Init(context.Context, *InitRequest) (*InitResponse, error)
func (UnimplementedBuilderServer) Load ¶
func (UnimplementedBuilderServer) Load(context.Context, *LoadRequest) (*LoadResponse, error)
func (UnimplementedBuilderServer) Sync ¶
func (UnimplementedBuilderServer) Sync(context.Context, *SyncRequest) (*SyncResponse, error)
func (UnimplementedBuilderServer) Update ¶
func (UnimplementedBuilderServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
func (UnimplementedBuilderServer) Upgrade ¶ added in v0.1.155
func (UnimplementedBuilderServer) Upgrade(context.Context, *UpgradeRequest) (*UpgradeResponse, error)
type UnsafeBuilderServer ¶
type UnsafeBuilderServer interface {
// contains filtered or unexported methods
}
UnsafeBuilderServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BuilderServer will result in compilation errors.
type UpdateRequest ¶
type UpdateRequest struct {
// contains filtered or unexported fields
}
UpdateRequest asks the builder to update an existing service from its template or agent rules.
func (*UpdateRequest) Descriptor
deprecated
func (*UpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) ProtoReflect ¶
func (x *UpdateRequest) ProtoReflect() protoreflect.Message
func (*UpdateRequest) Reset ¶
func (x *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (x *UpdateRequest) String() string
type UpdateResponse ¶
type UpdateResponse struct {
// state is the machine-readable lifecycle state.
State *UpdateStatus `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
// contains filtered or unexported fields
}
UpdateResponse reports whether the update completed.
func (*UpdateResponse) Descriptor
deprecated
func (*UpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.
func (*UpdateResponse) GetState ¶
func (x *UpdateResponse) GetState() *UpdateStatus
func (*UpdateResponse) ProtoMessage ¶
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) ProtoReflect ¶
func (x *UpdateResponse) ProtoReflect() protoreflect.Message
func (*UpdateResponse) Reset ¶
func (x *UpdateResponse) Reset()
func (*UpdateResponse) String ¶
func (x *UpdateResponse) String() string
type UpdateStatus ¶
type UpdateStatus struct {
// state is the machine-readable lifecycle state.
State UpdateStatus_Status `protobuf:"varint,1,opt,name=state,proto3,enum=codefly.services.builder.v0.UpdateStatus_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
}
UpdateStatus reports the state and message for the update lifecycle phase.
func (*UpdateStatus) Descriptor
deprecated
func (*UpdateStatus) Descriptor() ([]byte, []int)
Deprecated: Use UpdateStatus.ProtoReflect.Descriptor instead.
func (*UpdateStatus) GetMessage ¶
func (x *UpdateStatus) GetMessage() string
func (*UpdateStatus) GetState ¶
func (x *UpdateStatus) GetState() UpdateStatus_Status
func (*UpdateStatus) ProtoMessage ¶
func (*UpdateStatus) ProtoMessage()
func (*UpdateStatus) ProtoReflect ¶
func (x *UpdateStatus) ProtoReflect() protoreflect.Message
func (*UpdateStatus) Reset ¶
func (x *UpdateStatus) Reset()
func (*UpdateStatus) String ¶
func (x *UpdateStatus) String() string
type UpdateStatus_Status ¶
type UpdateStatus_Status int32
Status enumerates lifecycle status values.
const ( // UNKNOWN is the default value when status is not specified. UpdateStatus_UNKNOWN UpdateStatus_Status = 0 // SUCCESS means the operation completed successfully. UpdateStatus_SUCCESS UpdateStatus_Status = 1 // ERROR means the phase failed and message carries diagnostics. UpdateStatus_ERROR UpdateStatus_Status = 2 )
func (UpdateStatus_Status) Descriptor ¶
func (UpdateStatus_Status) Descriptor() protoreflect.EnumDescriptor
func (UpdateStatus_Status) Enum ¶
func (x UpdateStatus_Status) Enum() *UpdateStatus_Status
func (UpdateStatus_Status) EnumDescriptor
deprecated
func (UpdateStatus_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use UpdateStatus_Status.Descriptor instead.
func (UpdateStatus_Status) Number ¶
func (x UpdateStatus_Status) Number() protoreflect.EnumNumber
func (UpdateStatus_Status) String ¶
func (x UpdateStatus_Status) String() string
func (UpdateStatus_Status) Type ¶
func (UpdateStatus_Status) Type() protoreflect.EnumType
type UpgradeChange ¶ added in v0.1.155
type UpgradeChange struct {
// package is the package, dependency, or artifact name.
Package string `protobuf:"bytes,1,opt,name=package,proto3" json:"package,omitempty"`
// from is the currently installed version.
From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
// to is the version selected by the upgrade.
To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
// contains filtered or unexported fields
}
UpgradeChange describes one dependency version change.
func (*UpgradeChange) Descriptor
deprecated
added in
v0.1.155
func (*UpgradeChange) Descriptor() ([]byte, []int)
Deprecated: Use UpgradeChange.ProtoReflect.Descriptor instead.
func (*UpgradeChange) GetFrom ¶ added in v0.1.155
func (x *UpgradeChange) GetFrom() string
func (*UpgradeChange) GetPackage ¶ added in v0.1.155
func (x *UpgradeChange) GetPackage() string
func (*UpgradeChange) GetTo ¶ added in v0.1.155
func (x *UpgradeChange) GetTo() string
func (*UpgradeChange) ProtoMessage ¶ added in v0.1.155
func (*UpgradeChange) ProtoMessage()
func (*UpgradeChange) ProtoReflect ¶ added in v0.1.155
func (x *UpgradeChange) ProtoReflect() protoreflect.Message
func (*UpgradeChange) Reset ¶ added in v0.1.155
func (x *UpgradeChange) Reset()
func (*UpgradeChange) String ¶ added in v0.1.155
func (x *UpgradeChange) String() string
type UpgradeRequest ¶ added in v0.1.155
type UpgradeRequest struct {
// include_major also bumps across major-version boundaries. Default false.
IncludeMajor bool `protobuf:"varint,1,opt,name=include_major,json=includeMajor,proto3" json:"include_major,omitempty"`
// dry_run reports the changes that would be made without modifying
// any files. The response still has fully-populated `changes`.
DryRun bool `protobuf:"varint,2,opt,name=dry_run,json=dryRun,proto3" json:"dry_run,omitempty"`
// only restricts upgrades to the named packages. Empty = all eligible.
Only []string `protobuf:"bytes,3,rep,name=only,proto3" json:"only,omitempty"`
// contains filtered or unexported fields
}
UpgradeRequest asks the builder agent to apply or preview dependency upgrades.
func (*UpgradeRequest) Descriptor
deprecated
added in
v0.1.155
func (*UpgradeRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpgradeRequest.ProtoReflect.Descriptor instead.
func (*UpgradeRequest) GetDryRun ¶ added in v0.1.155
func (x *UpgradeRequest) GetDryRun() bool
func (*UpgradeRequest) GetIncludeMajor ¶ added in v0.1.155
func (x *UpgradeRequest) GetIncludeMajor() bool
func (*UpgradeRequest) GetOnly ¶ added in v0.1.155
func (x *UpgradeRequest) GetOnly() []string
func (*UpgradeRequest) ProtoMessage ¶ added in v0.1.155
func (*UpgradeRequest) ProtoMessage()
func (*UpgradeRequest) ProtoReflect ¶ added in v0.1.155
func (x *UpgradeRequest) ProtoReflect() protoreflect.Message
func (*UpgradeRequest) Reset ¶ added in v0.1.155
func (x *UpgradeRequest) Reset()
func (*UpgradeRequest) String ¶ added in v0.1.155
func (x *UpgradeRequest) String() string
type UpgradeResponse ¶ added in v0.1.155
type UpgradeResponse struct {
// state is the machine-readable lifecycle state.
State *UpgradeStatus `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
// changes are dependency updates applied or proposed by the upgrade.
Changes []*UpgradeChange `protobuf:"bytes,2,rep,name=changes,proto3" json:"changes,omitempty"`
// lockfile_diff is a free-form summary (e.g. truncated `git diff`)
// for the human-facing CLI output. Optional.
LockfileDiff string `protobuf:"bytes,3,opt,name=lockfile_diff,json=lockfileDiff,proto3" json:"lockfile_diff,omitempty"`
// contains filtered or unexported fields
}
UpgradeResponse reports dependency changes applied or proposed by the upgrade.
func (*UpgradeResponse) Descriptor
deprecated
added in
v0.1.155
func (*UpgradeResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpgradeResponse.ProtoReflect.Descriptor instead.
func (*UpgradeResponse) GetChanges ¶ added in v0.1.155
func (x *UpgradeResponse) GetChanges() []*UpgradeChange
func (*UpgradeResponse) GetLockfileDiff ¶ added in v0.1.155
func (x *UpgradeResponse) GetLockfileDiff() string
func (*UpgradeResponse) GetState ¶ added in v0.1.155
func (x *UpgradeResponse) GetState() *UpgradeStatus
func (*UpgradeResponse) ProtoMessage ¶ added in v0.1.155
func (*UpgradeResponse) ProtoMessage()
func (*UpgradeResponse) ProtoReflect ¶ added in v0.1.155
func (x *UpgradeResponse) ProtoReflect() protoreflect.Message
func (*UpgradeResponse) Reset ¶ added in v0.1.155
func (x *UpgradeResponse) Reset()
func (*UpgradeResponse) String ¶ added in v0.1.155
func (x *UpgradeResponse) String() string
type UpgradeStatus ¶ added in v0.1.155
type UpgradeStatus struct {
// state is the machine-readable lifecycle state.
State UpgradeStatus_Status `protobuf:"varint,1,opt,name=state,proto3,enum=codefly.services.builder.v0.UpgradeStatus_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
}
UpgradeStatus reports the state and message for the upgrade lifecycle phase.
func (*UpgradeStatus) Descriptor
deprecated
added in
v0.1.155
func (*UpgradeStatus) Descriptor() ([]byte, []int)
Deprecated: Use UpgradeStatus.ProtoReflect.Descriptor instead.
func (*UpgradeStatus) GetMessage ¶ added in v0.1.155
func (x *UpgradeStatus) GetMessage() string
func (*UpgradeStatus) GetState ¶ added in v0.1.155
func (x *UpgradeStatus) GetState() UpgradeStatus_Status
func (*UpgradeStatus) ProtoMessage ¶ added in v0.1.155
func (*UpgradeStatus) ProtoMessage()
func (*UpgradeStatus) ProtoReflect ¶ added in v0.1.155
func (x *UpgradeStatus) ProtoReflect() protoreflect.Message
func (*UpgradeStatus) Reset ¶ added in v0.1.155
func (x *UpgradeStatus) Reset()
func (*UpgradeStatus) String ¶ added in v0.1.155
func (x *UpgradeStatus) String() string
type UpgradeStatus_Status ¶ added in v0.1.155
type UpgradeStatus_Status int32
Status enumerates lifecycle status values.
const ( // UNKNOWN is the default value when status is not specified. UpgradeStatus_UNKNOWN UpgradeStatus_Status = 0 // SUCCESS means the operation completed successfully. UpgradeStatus_SUCCESS UpgradeStatus_Status = 1 // changes applied (or would be, in dry_run) // NOOP means no action was required. UpgradeStatus_NOOP UpgradeStatus_Status = 2 // nothing to upgrade // ERROR means the phase failed and message carries diagnostics. UpgradeStatus_ERROR UpgradeStatus_Status = 3 )
func (UpgradeStatus_Status) Descriptor ¶ added in v0.1.155
func (UpgradeStatus_Status) Descriptor() protoreflect.EnumDescriptor
func (UpgradeStatus_Status) Enum ¶ added in v0.1.155
func (x UpgradeStatus_Status) Enum() *UpgradeStatus_Status
func (UpgradeStatus_Status) EnumDescriptor
deprecated
added in
v0.1.155
func (UpgradeStatus_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use UpgradeStatus_Status.Descriptor instead.
func (UpgradeStatus_Status) Number ¶ added in v0.1.155
func (x UpgradeStatus_Status) Number() protoreflect.EnumNumber
func (UpgradeStatus_Status) String ¶ added in v0.1.155
func (x UpgradeStatus_Status) String() string
func (UpgradeStatus_Status) Type ¶ added in v0.1.155
func (UpgradeStatus_Status) Type() protoreflect.EnumType