service

package
v0.3.1 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

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