gitlab

package
v1.42.23 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: BSD-2-Clause-Patent Imports: 16 Imported by: 21 modules, 22 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

Overview

Package gitlab implements a GitLab client.

Index

Constants

This section is empty.

Variables

View Source
var ErrDescriptionTooLong = fmt.Errorf("description must be %d characters or fewer", descriptionMaxLength)

ErrDescriptionTooLong is returned when a commit status description exceeds the maximum length GitLab accepts. GitLab rejects such requests with a validation error whose body this driver cannot surface, so the request is refused before it is sent.

Functions

func New

func New(uri string) (*scm.Client, error)

New returns a new GitLab API client.

func NewDefault

func NewDefault() *scm.Client

NewDefault returns a new GitLab API client using the default gitlab.com address.

Types

type Error

type Error struct {
	Message string `json:"message"`
}

Error represents a GitLab error.

func (*Error) Error

func (e *Error) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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