gitlab

package
v1.42.19 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: BSD-2-Clause-Patent Imports: 16 Imported by: 22

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