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 MergeRequestService
- func (s *MergeRequestService) ApproveMR(ctx context.Context, projectID, mrIID int) error
- func (s *MergeRequestService) CreateMR(ctx context.Context, projectID int, opts entity.CreateMROptions) (*entity.MergeRequest, error)
- func (s *MergeRequestService) GetDiffs(ctx context.Context, projectID, mrIID int) ([]entity.MRDiff, error)
- func (s *MergeRequestService) GetMR(ctx context.Context, projectID, mrIID int) (*entity.MergeRequest, error)
- func (s *MergeRequestService) ListCommits(ctx context.Context, projectID int, ref string) ([]entity.Commit, error)
- func (s *MergeRequestService) ListMRs(ctx context.Context, projectID int, state string) ([]entity.MergeRequest, error)
- func (s *MergeRequestService) ListNotes(ctx context.Context, projectID, mrIID int) ([]entity.MRNote, error)
- func (s *MergeRequestService) MergeMR(ctx context.Context, projectID, mrIID int) (*entity.MergeRequest, error)
- type PipelineService
- func (s *PipelineService) ListBranches(ctx context.Context, projectID int, search string) ([]string, error)
- 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 MergeRequestService ¶ added in v0.4.0
type MergeRequestService struct {
// contains filtered or unexported fields
}
func NewMergeRequestService ¶ added in v0.4.0
func NewMergeRequestService(mr repository.MergeRequestRepository, cr repository.CommitRepository) *MergeRequestService
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) 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 (*MergeRequestService) ListMRs ¶ added in v0.4.0
func (s *MergeRequestService) ListMRs(ctx context.Context, projectID int, state string) ([]entity.MergeRequest, 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 NewPipelineService ¶
func NewPipelineService(pr repository.ProjectRepository, plr repository.PipelineRepository) *PipelineService
func (*PipelineService) ListBranches ¶ added in v0.4.0
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.