repository

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 3 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 CommitRepository added in v0.4.0

type CommitRepository interface {
	ListByRef(ctx context.Context, projectID int, ref string) ([]entity.Commit, error)
}

type JobRepository

type JobRepository interface {
	Play(ctx context.Context, projectID, jobID int) (*entity.Job, error)
	Retry(ctx context.Context, projectID, jobID int) (*entity.Job, error)
	Cancel(ctx context.Context, projectID, jobID int) (*entity.Job, error)
	GetLog(ctx context.Context, projectID, jobID int) (io.ReadCloser, error)
}

type MergeRequestRepository added in v0.4.0

type MergeRequestRepository interface {
	List(ctx context.Context, projectID int, state string) ([]entity.MergeRequest, error)
	Get(ctx context.Context, projectID, mrIID int) (*entity.MergeRequest, error)
	ListNotes(ctx context.Context, projectID, mrIID int) ([]entity.MRNote, error)
	GetDiffs(ctx context.Context, projectID, mrIID int) ([]entity.MRDiff, error)
	Create(ctx context.Context, projectID int, opts entity.CreateMROptions) (*entity.MergeRequest, error)
	Approve(ctx context.Context, projectID, mrIID int) error
	Merge(ctx context.Context, projectID, mrIID int) (*entity.MergeRequest, error)
}

type PipelineRepository

type PipelineRepository interface {
	ListJobs(ctx context.Context, projectID, pipelineID int) ([]entity.Job, error)
	LoadAllPipelines(ctx context.Context, projectPaths []string, perProject int) ([]entity.Pipeline, error)
}

type ProjectRepository

type ProjectRepository interface {
	GetByPath(ctx context.Context, pathWithNS string) (*entity.Project, error)
	Search(ctx context.Context, query string) ([]entity.Project, error)
	ListPipelines(ctx context.Context, projectID int) ([]entity.Pipeline, error)
	ListBranches(ctx context.Context, projectID int, search string) ([]string, error)
}

Jump to

Keyboard shortcuts

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