Documentation
¶
Index ¶
- type JobService
- func (s *JobService) CancelJob(ctx context.Context, projectID, jobID int) (*entity.Job, error)
- func (s *JobService) GetJobLog(ctx context.Context, projectID, jobID int) (io.ReadCloser, error)
- func (s *JobService) PlayJob(ctx context.Context, projectID, jobID int) (*entity.Job, error)
- func (s *JobService) RetryJob(ctx context.Context, projectID, jobID int) (*entity.Job, error)
- type PipelineService
- func (s *PipelineService) ListJobs(ctx context.Context, projectID, pipelineID int) ([]entity.Job, error)
- func (s *PipelineService) ListPipelines(ctx context.Context, projectID int) ([]entity.Pipeline, error)
- func (s *PipelineService) LoadAllPipelines(ctx context.Context, paths []string, limit int) ([]entity.Pipeline, error)
- func (s *PipelineService) LoadProjects(ctx context.Context, paths []string) ([]entity.Project, error)
- func (s *PipelineService) SearchProjects(ctx context.Context, query string) ([]entity.Project, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobService ¶
type JobService struct {
// contains filtered or unexported fields
}
func NewJobService ¶
func NewJobService(jr repository.JobRepository) *JobService
func (*JobService) GetJobLog ¶
func (s *JobService) GetJobLog(ctx context.Context, projectID, jobID int) (io.ReadCloser, error)
type PipelineService ¶
type PipelineService struct {
// contains filtered or unexported fields
}
func NewPipelineService ¶
func NewPipelineService(pr repository.ProjectRepository, plr repository.PipelineRepository) *PipelineService
func (*PipelineService) ListPipelines ¶
func (*PipelineService) LoadAllPipelines ¶
func (s *PipelineService) LoadAllPipelines(ctx context.Context, paths []string, limit int) ([]entity.Pipeline, error)
LoadAllPipelines loads pipelines for all projects via the pipeline repository.
func (*PipelineService) LoadProjects ¶
func (*PipelineService) SearchProjects ¶
Click to show internal directories.
Click to hide internal directories.