service

package
v0.0.0-...-0c45383 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2026 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertState

func ConvertState(state models.State) base.Code

func GenerateStateMessage

func GenerateStateMessage(baseMessage string, groups map[models.State][]string) string

func PipelineList

func PipelineList(req *types.SPageReq) *types.SPipelineListRes

func TaskList

func TaskList(req *types.SPageReq) *types.STaskListDetailRes

Types

type SEventService

type SEventService struct {
}

func Event

func Event() *SEventService

func (*SEventService) Subscribe

func (e *SEventService) Subscribe(ctx context.Context, event chan string) error

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 (*SPipelineService) BuildReRun

func (p *SPipelineService) BuildReRun(name string) error

func (*SPipelineService) Create

func (*SPipelineService) Delete

func (p *SPipelineService) Delete() error

func (*SPipelineService) Detail

func (p *SPipelineService) Detail() (*types.SPipelineRes, error)

func (*SPipelineService) Update

type SStepService

type SStepService struct {
	// contains filtered or unexported fields
}

func Step

func Step(taskName string, stepName string) *SStepService

func (*SStepService) Create

func (ss *SStepService) Create(seqNo int64, globalTimeout time.Duration, step *types.SStepReq) error

func (*SStepService) Delete

func (ss *SStepService) Delete() error

func (*SStepService) Detail

func (ss *SStepService) Detail() (base.Code, *types.SStepRes, error)

func (*SStepService) Log

func (ss *SStepService) Log() (base.Code, types.SStepLogsRes, error)

func (*SStepService) LogStream

func (ss *SStepService) LogStream(ctx context.Context, output outputFn) error

func (*SStepService) Manager

func (ss *SStepService) Manager(action string, duration string) error

type STaskService

type STaskService struct {
	// contains filtered or unexported fields
}

func Task

func Task(name string) *STaskService

func (*STaskService) Create

func (ts *STaskService) Create(task *types.STaskReq) (err error)

func (*STaskService) Delete

func (ts *STaskService) Delete() error

func (*STaskService) Detail

func (ts *STaskService) Detail() (base.Code, *types.STaskRes, error)

func (*STaskService) Dump

func (ts *STaskService) Dump() (*types.STaskReq, 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)

func (*STaskService) Steps

func (ts *STaskService) Steps() (code base.Code, data types.SStepsRes, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址