Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidFormat = errors.New("job follow: invalid format")
ErrInvalidFormat indicates an unsupported format value.
Functions ¶
Types ¶
type FollowCommand ¶
type FollowCommand struct {
Client stream.Client
BaseURL *url.URL
JobID domaintypes.JobID
Format logs.Format
Output io.Writer
}
FollowCommand streams job logs from the job SSE endpoint.
type GetStatusCommand ¶
func (GetStatusCommand) Run ¶
func (c GetStatusCommand) Run(ctx context.Context) (StatusResult, error)
type LogOptions ¶
type StatusOptions ¶
type StatusResult ¶
type StatusResult struct {
JobID domaintypes.JobID `json:"job_id"`
RunID domaintypes.RunID `json:"run_id"`
RepoID domaintypes.RepoID `json:"repo_id"`
Attempt int32 `json:"attempt"`
Name string `json:"name"`
JobType domaintypes.JobType `json:"job_type"`
Status domaintypes.JobStatus `json:"status"`
JobImage string `json:"job_image"`
NodeID *domaintypes.NodeID `json:"node_id"`
ExitCode *int32 `json:"exit_code"`
StartedAt *time.Time `json:"started_at"`
FinishedAt *time.Time `json:"finished_at"`
DurationMs int64 `json:"duration_ms"`
RepoShaIn string `json:"repo_sha_in"`
RepoShaOut string `json:"repo_sha_out"`
RepoShaIn8 string `json:"repo_sha_in8"`
RepoShaOut8 string `json:"repo_sha_out8"`
}
Click to show internal directories.
Click to hide internal directories.