client

package
v0.55.1 Latest Latest
Warning

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

Go to latest
Published: Jul 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 {
	/*
		"url" defines the GitLab url to interact with

		default:
			url defaults to "gitlab.com"
	*/
	URL string `yaml:",omitempty" jsonschema:"required"`
	/*
		"username" defines the username used to authenticate with GitLab
	*/
	Username string `yaml:",omitempty"`
	/*
		"token" defines the credential used to authenticate with GitLab
	*/
	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