service

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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) CancelJob

func (s *JobService) CancelJob(ctx context.Context, projectID, jobID int) (*entity.Job, error)

func (*JobService) GetJobLog

func (s *JobService) GetJobLog(ctx context.Context, projectID, jobID int) (io.ReadCloser, error)

func (*JobService) PlayJob

func (s *JobService) PlayJob(ctx context.Context, projectID, jobID int) (*entity.Job, error)

func (*JobService) RetryJob

func (s *JobService) RetryJob(ctx context.Context, projectID, jobID int) (*entity.Job, error)

type PipelineService

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

func (*PipelineService) ListJobs

func (s *PipelineService) ListJobs(ctx context.Context, projectID, pipelineID int) ([]entity.Job, error)

func (*PipelineService) ListPipelines

func (s *PipelineService) ListPipelines(ctx context.Context, projectID int) ([]entity.Pipeline, error)

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 (s *PipelineService) LoadProjects(ctx context.Context, paths []string) ([]entity.Project, error)

func (*PipelineService) SearchProjects

func (s *PipelineService) SearchProjects(ctx context.Context, query string) ([]entity.Project, error)

Jump to

Keyboard shortcuts

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