gitlab

package
v0.1.28 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TokenFromEnv

func TokenFromEnv() string

Types

type Client

type Client struct {
	BaseURL    string
	Token      string
	HTTPClient *http.Client
}

func NewClient

func NewClient(baseURL string, token string) Client

func (Client) GetJobTrace

func (c Client) GetJobTrace(ctx context.Context, project string, jobID int64) (string, error)

func (Client) ListPipelineJobs

func (c Client) ListPipelineJobs(ctx context.Context, project string, pipelineID int64, failedOnly bool) ([]Job, error)

type Job

type Job struct {
	ID     int64  `json:"id"`
	Name   string `json:"name"`
	Status string `json:"status"`
	WebURL string `json:"web_url"`
}

Jump to

Keyboard shortcuts

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