gitlab

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg Config) remote.Interactor

New creates a new gitlab client

Types

type Config

type Config struct {
	// BaseURL is the URL of the gitlab instance
	BaseURL string `yaml:"baseUrl" mapstructure:"baseUrl"`
	// Token is the personal access token used to authenticate with the gitlab instance
	Token string `yaml:"token" mapstructure:"token"`
	// ProjectID is the ID of the project in the gitlab instance that contains the global targets
	ProjectID int `yaml:"projectId" mapstructure:"projectId"`
	// Branch is the branch to use for the gitlab repository
	Branch string `yaml:"branch" mapstructure:"branch"`
}

Config contains the configuration for the gitlab client

Jump to

Keyboard shortcuts

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