auth

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Method transport.AuthMethod
}

Auth holds a transport.AuthMethod used by go-git

func GitAuth

func GitAuth(url, user, pass, token, sshKeyPath string) (Auth, error)

GitAuth parses a given URL and returns the appropriate transport.AuthMethod. The first return value of GitAuth is a boolean that's true if the URL is a properly formed git URL.

func (*Auth) GetAuth

func (a *Auth) GetAuth() *Auth

GetAuth returns a pointer to Auth

Jump to

Keyboard shortcuts

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