service

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 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 MergeRequestService added in v0.4.0

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

func (*MergeRequestService) ApproveMR added in v0.4.0

func (s *MergeRequestService) ApproveMR(ctx context.Context, projectID, mrIID int) error

func (*MergeRequestService) CreateMR added in v0.4.0

func (s *MergeRequestService) CreateMR(ctx context.Context, projectID int, opts entity.CreateMROptions) (*entity.MergeRequest, error)

func (*MergeRequestService) GetDiffs added in v0.4.0

func (s *MergeRequestService) GetDiffs(ctx context.Context, projectID, mrIID int) ([]entity.MRDiff, error)

func (*MergeRequestService) GetMR added in v0.4.0

func (s *MergeRequestService) GetMR(ctx context.Context, projectID, mrIID int) (*entity.MergeRequest, error)

func (*MergeRequestService) ListCommits added in v0.4.0

func (s *MergeRequestService) ListCommits(ctx context.Context, projectID int, ref string) ([]entity.Commit, error)

func (*MergeRequestService) ListMRs added in v0.4.0

func (s *MergeRequestService) ListMRs(ctx context.Context, projectID int, state string) ([]entity.MergeRequest, error)

func (*MergeRequestService) ListNotes added in v0.4.0

func (s *MergeRequestService) ListNotes(ctx context.Context, projectID, mrIID int) ([]entity.MRNote, error)

func (*MergeRequestService) MergeMR added in v0.4.0

func (s *MergeRequestService) MergeMR(ctx context.Context, projectID, mrIID int) (*entity.MergeRequest, error)

type PipelineService

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

func (*PipelineService) ListBranches added in v0.4.0

func (s *PipelineService) ListBranches(ctx context.Context, projectID int, search string) ([]string, error)

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