completed phase 2b
This commit is contained in:
@@ -33,6 +33,7 @@ const (
|
||||
SubjectJobCompleted = "job.completed"
|
||||
SubjectJobFailed = "job.failed"
|
||||
SubjectArtifactPublished = "artifact.published"
|
||||
SubjectPipelineLog = "pipeline.log"
|
||||
|
||||
// Deployments (Phase 3A)
|
||||
SubjectDeploymentStarted = "deployment.started"
|
||||
|
||||
@@ -57,6 +57,28 @@ type AuditEvent struct {
|
||||
At time.Time `json:"at"`
|
||||
}
|
||||
|
||||
type PipelineEvent struct {
|
||||
RunID int64 `json:"runId"`
|
||||
RepoID int64 `json:"repoId"`
|
||||
Status string `json:"status"`
|
||||
At time.Time `json:"at"`
|
||||
}
|
||||
|
||||
type JobEvent struct {
|
||||
RunID int64 `json:"runId"`
|
||||
JobID int64 `json:"jobId"`
|
||||
Status string `json:"status"`
|
||||
At time.Time `json:"at"`
|
||||
}
|
||||
|
||||
type LogChunkEvent struct {
|
||||
RunID int64 `json:"runId"`
|
||||
JobID int64 `json:"jobId"`
|
||||
StepID int64 `json:"stepId"`
|
||||
ChunkIndex int `json:"chunkIndex"`
|
||||
Content string `json:"content"`
|
||||
}
|
||||
|
||||
// WSEnvelope wraps any event for delivery over the WebSocket connection.
|
||||
type WSEnvelope struct {
|
||||
Subject string `json:"subject"`
|
||||
|
||||
Reference in New Issue
Block a user