Documentation ¶
Index ¶
Constants ¶
View Source
const ( StatusSuccess = "success" StatusFailed = "failed" StatusInProgress = "in_progress" StatusPending = "pending" )
Variables ¶
View Source
var ErrPipeline = errors.New("pipeline has encountered an error")
Functions ¶
func EventToPipeline ¶
Types ¶
type Options ¶
func NewOptions ¶
func NewOptions() *Options
type PipelineStatus ¶
type PipelineStatus int
const ( PipelineWorking PipelineStatus = iota PipelineFinished PipelineFailed PipelineUnknownState )
type PipelineSyncer ¶
type PipelineSyncer func() (*sdk.PipelineItem, error)
type Progress ¶
type Progress struct { Options Options // contains filtered or unexported fields }
func NewPipeline ¶
func (*Progress) Update ¶
func (p *Progress) Update(pipelineSync PipelineSyncer) error
func (*Progress) UpdatePipeline ¶
func (p *Progress) UpdatePipeline(pipeline *sdk.PipelineItem) (bool, error)
Click to show internal directories.
Click to hide internal directories.