factory

package
v1.5.130 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: BSD-3-Clause Imports: 15 Imported by: 59

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MissingGitServerURL = fmt.Errorf("No git serverURL was specified")

MissingGitServerURL the error returned if you use a git driver that needs a git server URL

Functions

func Client added in v1.5.84

func Client(httpClient *http.Client) clientOptionFunc

func NewClient

func NewClient(driver, serverURL, oauthToken string, opts ...clientOptionFunc) (*scm.Client, error)

NewClient creates a new client for a given driver, serverURL and OAuth token

func NewClientFromEnvironment added in v1.5.18

func NewClientFromEnvironment() (*scm.Client, error)

NewClientFromEnvironment creates a new client using environment variables $GIT_KIND, $GIT_SERVER, $GIT_TOKEN defaulting to github if no $GIT_KIND or $GIT_SERVER

Types

This section is empty.

Directories

Path Synopsis
examples
pr
ref

Jump to

Keyboard shortcuts

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