Help us shape the future of Go! Take the 2026 Go Developer Survey

v0

package
v0.2.60 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_codefly_ci_v0_report_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AgentCIArtifact

type AgentCIArtifact struct {

	// kind is the stable artifact classification.
	Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
	// path is relative to the outer report directory.
	Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// sha256 is the lowercase digest prefixed with sha256:.
	Sha256 string `protobuf:"bytes,3,opt,name=sha256,proto3" json:"sha256,omitempty"`
	// target is the release platform, such as darwin/arm64 or linux/amd64.
	Target string `protobuf:"bytes,4,opt,name=target,proto3" json:"target,omitempty"`
	// contains filtered or unexported fields
}

AgentCIArtifact identifies one persisted release-evidence artifact.

func (*AgentCIArtifact) Descriptor deprecated

func (*AgentCIArtifact) Descriptor() ([]byte, []int)

Deprecated: Use AgentCIArtifact.ProtoReflect.Descriptor instead.

func (*AgentCIArtifact) GetKind

func (x *AgentCIArtifact) GetKind() string

func (*AgentCIArtifact) GetPath

func (x *AgentCIArtifact) GetPath() string

func (*AgentCIArtifact) GetSha256

func (x *AgentCIArtifact) GetSha256() string

func (*AgentCIArtifact) GetTarget

func (x *AgentCIArtifact) GetTarget() string

func (*AgentCIArtifact) ProtoMessage

func (*AgentCIArtifact) ProtoMessage()

func (*AgentCIArtifact) ProtoReflect

func (x *AgentCIArtifact) ProtoReflect() protoreflect.Message

func (*AgentCIArtifact) Reset

func (x *AgentCIArtifact) Reset()

func (*AgentCIArtifact) String

func (x *AgentCIArtifact) String() string

type AgentCIIdentity

type AgentCIIdentity struct {

	// publisher is the agent publisher namespace.
	Publisher string `protobuf:"bytes,1,opt,name=publisher,proto3" json:"publisher,omitempty"`
	// kind is the Codefly agent kind, such as codefly:service.
	Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
	// name is the agent name.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// version is the candidate agent version.
	Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

AgentCIIdentity identifies one concrete Codefly agent candidate.

func (*AgentCIIdentity) Descriptor deprecated

func (*AgentCIIdentity) Descriptor() ([]byte, []int)

Deprecated: Use AgentCIIdentity.ProtoReflect.Descriptor instead.

func (*AgentCIIdentity) GetKind

func (x *AgentCIIdentity) GetKind() string

func (*AgentCIIdentity) GetName

func (x *AgentCIIdentity) GetName() string

func (*AgentCIIdentity) GetPublisher

func (x *AgentCIIdentity) GetPublisher() string

func (*AgentCIIdentity) GetVersion

func (x *AgentCIIdentity) GetVersion() string

func (*AgentCIIdentity) ProtoMessage

func (*AgentCIIdentity) ProtoMessage()

func (*AgentCIIdentity) ProtoReflect

func (x *AgentCIIdentity) ProtoReflect() protoreflect.Message

func (*AgentCIIdentity) Reset

func (x *AgentCIIdentity) Reset()

func (*AgentCIIdentity) String

func (x *AgentCIIdentity) String() string

type AgentCIOptions

type AgentCIOptions struct {

	// native_only means the Linux release binary was explicitly waived.
	NativeOnly bool `protobuf:"varint,1,opt,name=native_only,json=nativeOnly,proto3" json:"native_only,omitempty"`
	// audit_enabled reports whether the agent-binary vulnerability stage ran.
	AuditEnabled bool `protobuf:"varint,2,opt,name=audit_enabled,json=auditEnabled,proto3" json:"audit_enabled,omitempty"`
	// fail_on_vuln gates actionable high and critical findings when auditing.
	FailOnVuln bool `protobuf:"varint,3,opt,name=fail_on_vuln,json=failOnVuln,proto3" json:"fail_on_vuln,omitempty"`
	// conformance_enabled reports whether generated-service conformance ran.
	ConformanceEnabled bool `protobuf:"varint,4,opt,name=conformance_enabled,json=conformanceEnabled,proto3" json:"conformance_enabled,omitempty"`
	// contains filtered or unexported fields
}

AgentCIOptions records policy choices that change release coverage.

func (*AgentCIOptions) Descriptor deprecated

func (*AgentCIOptions) Descriptor() ([]byte, []int)

Deprecated: Use AgentCIOptions.ProtoReflect.Descriptor instead.

func (*AgentCIOptions) GetAuditEnabled

func (x *AgentCIOptions) GetAuditEnabled() bool

func (*AgentCIOptions) GetConformanceEnabled

func (x *AgentCIOptions) GetConformanceEnabled() bool

func (*AgentCIOptions) GetFailOnVuln

func (x *AgentCIOptions) GetFailOnVuln() bool

func (*AgentCIOptions) GetNativeOnly

func (x *AgentCIOptions) GetNativeOnly() bool

func (*AgentCIOptions) ProtoMessage

func (*AgentCIOptions) ProtoMessage()

func (*AgentCIOptions) ProtoReflect

func (x *AgentCIOptions) ProtoReflect() protoreflect.Message

func (*AgentCIOptions) Reset

func (x *AgentCIOptions) Reset()

func (*AgentCIOptions) String

func (x *AgentCIOptions) String() string

type AgentCIReport

type AgentCIReport struct {

	// schema_version is the compatibility version of this report document.
	SchemaVersion uint32 `protobuf:"varint,1,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"`
	// command is the canonical Codefly command that produced the report.
	Command string `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"`
	// agent identifies the validated agent release candidate.
	Agent *AgentCIIdentity `protobuf:"bytes,3,opt,name=agent,proto3" json:"agent,omitempty"`
	// options records release-policy choices and explicit local waivers.
	Options *AgentCIOptions `protobuf:"bytes,4,opt,name=options,proto3" json:"options,omitempty"`
	// status is the aggregate passed or failed outcome.
	Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"`
	// started_at is an RFC 3339 timestamp.
	StartedAt string `protobuf:"bytes,6,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
	// finished_at is an RFC 3339 timestamp.
	FinishedAt string `protobuf:"bytes,7,opt,name=finished_at,json=finishedAt,proto3" json:"finished_at,omitempty"`
	// duration_ms is total elapsed wall time in milliseconds.
	DurationMs int32 `protobuf:"varint,8,opt,name=duration_ms,json=durationMs,proto3" json:"duration_ms,omitempty"`
	// summary counts terminal stage outcomes.
	Summary *AgentCISummary `protobuf:"bytes,9,opt,name=summary,proto3" json:"summary,omitempty"`
	// stages are ordered by the canonical agent-CI lifecycle.
	Stages []*AgentCIStage `protobuf:"bytes,10,rep,name=stages,proto3" json:"stages,omitempty"`
	// artifacts are persisted release evidence with content digests.
	Artifacts []*AgentCIArtifact `protobuf:"bytes,11,rep,name=artifacts,proto3" json:"artifacts,omitempty"`
	// workspace_report embeds the independently versioned workspace-CI report.
	// Struct is deliberate here: the nested report owns its own schema version
	// and is also persisted verbatim as workspace/report.json.
	WorkspaceReport *structpb.Struct `protobuf:"bytes,12,opt,name=workspace_report,json=workspaceReport,proto3" json:"workspace_report,omitempty"`
	// error is present when the aggregate status is failed.
	Error *string `protobuf:"bytes,13,opt,name=error,proto3,oneof" json:"error,omitempty"`
	// failure is the typed aggregate cause when status is failed.
	Failure *v0.Failure `protobuf:"bytes,14,opt,name=failure,proto3" json:"failure,omitempty"`
	// contains filtered or unexported fields
}

AgentCIReport is the provider-neutral record emitted by codefly agent ci. It is a public artifact contract; the protobuf schema, not a handwritten language-specific DTO, is its source of truth.

func (*AgentCIReport) Descriptor deprecated

func (*AgentCIReport) Descriptor() ([]byte, []int)

Deprecated: Use AgentCIReport.ProtoReflect.Descriptor instead.

func (*AgentCIReport) GetAgent

func (x *AgentCIReport) GetAgent() *AgentCIIdentity

func (*AgentCIReport) GetArtifacts

func (x *AgentCIReport) GetArtifacts() []*AgentCIArtifact

func (*AgentCIReport) GetCommand

func (x *AgentCIReport) GetCommand() string

func (*AgentCIReport) GetDurationMs

func (x *AgentCIReport) GetDurationMs() int32

func (*AgentCIReport) GetError

func (x *AgentCIReport) GetError() string

func (*AgentCIReport) GetFailure

func (x *AgentCIReport) GetFailure() *v0.Failure

func (*AgentCIReport) GetFinishedAt

func (x *AgentCIReport) GetFinishedAt() string

func (*AgentCIReport) GetOptions

func (x *AgentCIReport) GetOptions() *AgentCIOptions

func (*AgentCIReport) GetSchemaVersion

func (x *AgentCIReport) GetSchemaVersion() uint32

func (*AgentCIReport) GetStages

func (x *AgentCIReport) GetStages() []*AgentCIStage

func (*AgentCIReport) GetStartedAt

func (x *AgentCIReport) GetStartedAt() string

func (*AgentCIReport) GetStatus

func (x *AgentCIReport) GetStatus() string

func (*AgentCIReport) GetSummary

func (x *AgentCIReport) GetSummary() *AgentCISummary

func (*AgentCIReport) GetWorkspaceReport

func (x *AgentCIReport) GetWorkspaceReport() *structpb.Struct

func (*AgentCIReport) ProtoMessage

func (*AgentCIReport) ProtoMessage()

func (*AgentCIReport) ProtoReflect

func (x *AgentCIReport) ProtoReflect() protoreflect.Message

func (*AgentCIReport) Reset

func (x *AgentCIReport) Reset()

func (*AgentCIReport) String

func (x *AgentCIReport) String() string

type AgentCIStage

type AgentCIStage struct {

	// name is the stable stage identity.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// status is pending, running, passed, failed, or skipped.
	Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	// started_at is present only when the stage executed.
	StartedAt *string `protobuf:"bytes,3,opt,name=started_at,json=startedAt,proto3,oneof" json:"started_at,omitempty"`
	// finished_at is present only when the stage executed.
	FinishedAt *string `protobuf:"bytes,4,opt,name=finished_at,json=finishedAt,proto3,oneof" json:"finished_at,omitempty"`
	// duration_ms is stage elapsed wall time in milliseconds.
	DurationMs int32 `protobuf:"varint,5,opt,name=duration_ms,json=durationMs,proto3" json:"duration_ms,omitempty"`
	// error is present when the stage failed.
	Error *string `protobuf:"bytes,6,opt,name=error,proto3,oneof" json:"error,omitempty"`
	// failure is the typed stage cause when status is failed.
	Failure *v0.Failure `protobuf:"bytes,7,opt,name=failure,proto3" json:"failure,omitempty"`
	// contains filtered or unexported fields
}

AgentCIStage reports one ordered agent-CI lifecycle stage.

func (*AgentCIStage) Descriptor deprecated

func (*AgentCIStage) Descriptor() ([]byte, []int)

Deprecated: Use AgentCIStage.ProtoReflect.Descriptor instead.

func (*AgentCIStage) GetDurationMs

func (x *AgentCIStage) GetDurationMs() int32

func (*AgentCIStage) GetError

func (x *AgentCIStage) GetError() string

func (*AgentCIStage) GetFailure

func (x *AgentCIStage) GetFailure() *v0.Failure

func (*AgentCIStage) GetFinishedAt

func (x *AgentCIStage) GetFinishedAt() string

func (*AgentCIStage) GetName

func (x *AgentCIStage) GetName() string

func (*AgentCIStage) GetStartedAt

func (x *AgentCIStage) GetStartedAt() string

func (*AgentCIStage) GetStatus

func (x *AgentCIStage) GetStatus() string

func (*AgentCIStage) ProtoMessage

func (*AgentCIStage) ProtoMessage()

func (*AgentCIStage) ProtoReflect

func (x *AgentCIStage) ProtoReflect() protoreflect.Message

func (*AgentCIStage) Reset

func (x *AgentCIStage) Reset()

func (*AgentCIStage) String

func (x *AgentCIStage) String() string

type AgentCISummary

type AgentCISummary struct {

	// total is the number of registered stages.
	Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	// passed is the number of successful stages.
	Passed uint32 `protobuf:"varint,2,opt,name=passed,proto3" json:"passed,omitempty"`
	// failed is the number of failed stages.
	Failed uint32 `protobuf:"varint,3,opt,name=failed,proto3" json:"failed,omitempty"`
	// skipped is the number of explicitly or transitively skipped stages.
	Skipped uint32 `protobuf:"varint,4,opt,name=skipped,proto3" json:"skipped,omitempty"`
	// contains filtered or unexported fields
}

AgentCISummary counts terminal agent-CI stage outcomes.

func (*AgentCISummary) Descriptor deprecated

func (*AgentCISummary) Descriptor() ([]byte, []int)

Deprecated: Use AgentCISummary.ProtoReflect.Descriptor instead.

func (*AgentCISummary) GetFailed

func (x *AgentCISummary) GetFailed() uint32

func (*AgentCISummary) GetPassed

func (x *AgentCISummary) GetPassed() uint32

func (*AgentCISummary) GetSkipped

func (x *AgentCISummary) GetSkipped() uint32

func (*AgentCISummary) GetTotal

func (x *AgentCISummary) GetTotal() uint32

func (*AgentCISummary) ProtoMessage

func (*AgentCISummary) ProtoMessage()

func (*AgentCISummary) ProtoReflect

func (x *AgentCISummary) ProtoReflect() protoreflect.Message

func (*AgentCISummary) Reset

func (x *AgentCISummary) Reset()

func (*AgentCISummary) String

func (x *AgentCISummary) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL