Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivityRecord ¶
type ActivityRecord struct { Name string `json:"name"` Owner string `json:"owner,omitempty"` Repo string `json:"repo,omitempty"` Branch string `json:"branch,omitempty"` BuildIdentifier string `json:"buildId,omitempty"` Context string `json:"context,omitempty"` GitURL string `json:"gitURL,omitempty"` LogURL string `json:"logURL,omitempty"` LinkURL string `json:"linkURL,omitempty"` Status v1alpha1.PipelineState `json:"status,omitempty"` BaseSHA string `json:"baseSHA,omitempty"` LastCommitSHA string `json:"lastCommitSHA,omitempty"` StartTime *metav1.Time `json:"startTime,omitempty"` CompletionTime *metav1.Time `json:"completionTime,omitempty"` Stages []*ActivityStageOrStep `json:"stages,omitempty"` Steps []*ActivityStageOrStep `json:"steps,omitEmpty"` }
ActivityRecord is a struct for reporting information on a pipeline, build, or other activity triggered by Lighthouse
func (*ActivityRecord) RunningStages ¶
func (a *ActivityRecord) RunningStages() []string
RunningStages returns the list of stages currently running
type ActivityStageOrStep ¶
type ActivityStageOrStep struct { Name string `json:"name"` Status v1alpha1.PipelineState `json:"status"` StartTime *metav1.Time `json:"startTime,omitempty"` CompletionTime *metav1.Time `json:"completionTime,omitempty"` Stages []*ActivityStageOrStep `json:"stages,omitempty"` Steps []*ActivityStageOrStep `json:"steps,omitempty"` }
ActivityStageOrStep represents a stage of an activity
Click to show internal directories.
Click to hide internal directories.