Documentation
¶
Index ¶
- func ConvertState(state models.State) base.Code
- func GenerateStateMessage(baseMessage string, groups map[models.State][]string) string
- func PipelineList(req *types.SPageReq) *types.SPipelineListRes
- func TaskList(req *types.SPageReq) *types.STaskListDetailRes
- type SEventService
- type SPipelineService
- func (p *SPipelineService) BuildCreate(req *types.SPipelineBuildReq) (name string, err error)
- func (p *SPipelineService) BuildDelete(name string) error
- func (p *SPipelineService) BuildDetail(name string) (base.Code, *types.SPipelineBuildRes, error)
- func (p *SPipelineService) BuildList(req *types.SPageReq) *types.SPipelineBuildListRes
- func (p *SPipelineService) BuildReRun(name string) error
- func (p *SPipelineService) Create(req *types.SPipelineCreateReq) error
- func (p *SPipelineService) Delete() error
- func (p *SPipelineService) Detail() (*types.SPipelineRes, error)
- func (p *SPipelineService) Update(req *types.SPipelineUpdateReq) error
- type SStepService
- func (ss *SStepService) Create(seqNo int64, globalTimeout time.Duration, step *types.SStepReq) error
- func (ss *SStepService) Delete() error
- func (ss *SStepService) Detail() (base.Code, *types.SStepRes, error)
- func (ss *SStepService) Log() (base.Code, types.SStepLogsRes, error)
- func (ss *SStepService) LogStream(ctx context.Context, output outputFn) error
- func (ss *SStepService) Manager(action string, duration string) error
- type STaskService
- func (ts *STaskService) Create(task *types.STaskReq) (err error)
- func (ts *STaskService) Delete() error
- func (ts *STaskService) Detail() (base.Code, *types.STaskRes, error)
- func (ts *STaskService) Dump() (*types.STaskReq, error)
- func (ts *STaskService) Exist() bool
- func (ts *STaskService) Manager(action string, duration string) error
- func (ts *STaskService) StepCount() (res int64)
- func (ts *STaskService) Steps() (code base.Code, data types.SStepsRes, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateStateMessage ¶
func PipelineList ¶
func PipelineList(req *types.SPageReq) *types.SPipelineListRes
Types ¶
type SPipelineService ¶
type SPipelineService struct {
// contains filtered or unexported fields
}
func Pipeline ¶
func Pipeline(name string) *SPipelineService
func (*SPipelineService) BuildCreate ¶
func (p *SPipelineService) BuildCreate(req *types.SPipelineBuildReq) (name string, err error)
func (*SPipelineService) BuildDelete ¶
func (p *SPipelineService) BuildDelete(name string) error
func (*SPipelineService) BuildDetail ¶
func (p *SPipelineService) BuildDetail(name string) (base.Code, *types.SPipelineBuildRes, error)
func (*SPipelineService) BuildList ¶
func (p *SPipelineService) BuildList(req *types.SPageReq) *types.SPipelineBuildListRes
func (*SPipelineService) BuildReRun ¶
func (p *SPipelineService) BuildReRun(name string) error
func (*SPipelineService) Create ¶
func (p *SPipelineService) Create(req *types.SPipelineCreateReq) error
func (*SPipelineService) Delete ¶
func (p *SPipelineService) Delete() error
func (*SPipelineService) Detail ¶
func (p *SPipelineService) Detail() (*types.SPipelineRes, error)
func (*SPipelineService) Update ¶
func (p *SPipelineService) Update(req *types.SPipelineUpdateReq) error
type SStepService ¶
type SStepService struct {
// contains filtered or unexported fields
}
func Step ¶
func Step(taskName string, stepName string) *SStepService
func (*SStepService) Delete ¶
func (ss *SStepService) Delete() error
func (*SStepService) Log ¶
func (ss *SStepService) Log() (base.Code, types.SStepLogsRes, error)
type STaskService ¶
type STaskService struct {
// contains filtered or unexported fields
}
func Task ¶
func Task(name string) *STaskService
func (*STaskService) Delete ¶
func (ts *STaskService) Delete() error
func (*STaskService) Exist ¶
func (ts *STaskService) Exist() bool
func (*STaskService) Manager ¶
func (ts *STaskService) Manager(action string, duration string) error
func (*STaskService) StepCount ¶
func (ts *STaskService) StepCount() (res int64)
Click to show internal directories.
Click to hide internal directories.