gitlab

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 12 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 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 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) 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