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

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