client

package
v0.48.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// GITLABDOMAIN defines the default gitlab url
	GITLABDOMAIN string = "gitlab.com"
)

Variables

This section is empty.

Functions

func EnsureValidURL added in v0.47.2

func EnsureValidURL(u string) string

Types

type Client

type Client *scm.Client

func New

func New(s Spec) (Client, error)

type Spec

type Spec struct {
	// [S][C][T] URL specifies the default Gitlab url in case of Gitlab enterprise
	URL string `yaml:",omitempty" jsonschema:"required"`
	// [S][C][T] Username specifies the username used to authenticate with Gitlab API
	Username string `yaml:",omitempty"`
	// [S][C][T] Token specifies the credential used to authenticate with
	Token string `yaml:",omitempty"`
}

Spec defines a specification for a "Gitlab" resource parsed from an updatecli manifest file

Jump to

Keyboard shortcuts

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