gitlab

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: MIT Imports: 13 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

func NewClient

func NewClient(baseURL, token string) (*gogitlab.Client, error)

Types

type CommitRepo added in v0.4.0

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

func NewCommitRepo added in v0.4.0

func NewCommitRepo(client *gogitlab.Client) *CommitRepo

func (*CommitRepo) ListByRef added in v0.4.0

func (r *CommitRepo) ListByRef(ctx context.Context, projectID int, ref string) ([]entity.Commit, error)

type GraphQLClient

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

func NewGraphQLClient

func NewGraphQLClient(baseURL, token string) *GraphQLClient

func (*GraphQLClient) LoadAllPipelines

func (c *GraphQLClient) LoadAllPipelines(ctx context.Context, projectPaths []string, perProject int) ([]entity.Pipeline, error)

LoadAllPipelines fetches pipelines for all projects in a single GraphQL query.

type JobRepo

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

func NewJobRepo

func NewJobRepo(client *gogitlab.Client) *JobRepo

func (*JobRepo) Cancel

func (r *JobRepo) Cancel(ctx context.Context, projectID, jobID int) (*entity.Job, error)

func (*JobRepo) GetLog

func (r *JobRepo) GetLog(ctx context.Context, projectID, jobID int) (io.ReadCloser, error)

func (*JobRepo) Play

func (r *JobRepo) Play(ctx context.Context, projectID, jobID int) (*entity.Job, error)

func (*JobRepo) Retry

func (r *JobRepo) Retry(ctx context.Context, projectID, jobID int) (*entity.Job, error)

type MergeRequestRepo added in v0.4.0

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

func NewMergeRequestRepo added in v0.4.0

func NewMergeRequestRepo(client *gogitlab.Client) *MergeRequestRepo

func (*MergeRequestRepo) Approve added in v0.4.0

func (r *MergeRequestRepo) Approve(ctx context.Context, projectID, mrIID int) error

func (*MergeRequestRepo) AutoMerge added in v0.4.5

func (r *MergeRequestRepo) AutoMerge(ctx context.Context, projectID, mrIID int) (*entity.MergeRequest, error)

func (*MergeRequestRepo) Create added in v0.4.0

func (r *MergeRequestRepo) Create(ctx context.Context, projectID int, opts entity.CreateMROptions) (*entity.MergeRequest, error)

func (*MergeRequestRepo) Get added in v0.4.0

func (r *MergeRequestRepo) Get(ctx context.Context, projectID, mrIID int) (*entity.MergeRequest, error)

func (*MergeRequestRepo) GetDiffs added in v0.4.0

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

func (*MergeRequestRepo) List added in v0.4.0

func (r *MergeRequestRepo) List(ctx context.Context, projectID int, state string) ([]entity.MergeRequest, error)

func (*MergeRequestRepo) ListNotes added in v0.4.0

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

func (*MergeRequestRepo) Merge added in v0.4.0

func (r *MergeRequestRepo) Merge(ctx context.Context, projectID, mrIID int) (*entity.MergeRequest, error)

type PipelineRepo

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

func NewPipelineRepo

func NewPipelineRepo(client *gogitlab.Client) *PipelineRepo

func (*PipelineRepo) ListJobs

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

func (*PipelineRepo) LoadAllPipelines

func (r *PipelineRepo) LoadAllPipelines(ctx context.Context, projectPaths []string, perProject int) ([]entity.Pipeline, error)

type ProjectRepo

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

func NewProjectRepo

func NewProjectRepo(client *gogitlab.Client) *ProjectRepo

func (*ProjectRepo) GetByPath

func (r *ProjectRepo) GetByPath(ctx context.Context, pathWithNS string) (*entity.Project, error)

func (*ProjectRepo) ListBranches added in v0.4.0

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

func (*ProjectRepo) ListPipelines

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

func (*ProjectRepo) Search

func (r *ProjectRepo) Search(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