git

package
v0.0.0-...-e07cd09 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone(addr string, dst string, ref string, auth Auth) error

ssh clone: user@host https clonse: https://user:password@host

Types

type Auth

type Auth interface {
	Auth(cmd *GitCloneCmd) error
	// Close ends the authentication
	Close() error
}

type AuthHTTP

type AuthHTTP struct {
	User, Password string
}

func (*AuthHTTP) Auth

func (a *AuthHTTP) Auth(cmd *GitCloneCmd) error

func (*AuthHTTP) Close

func (a *AuthHTTP) Close() error

type AuthNone

type AuthNone struct{}

func (*AuthNone) Auth

func (a *AuthNone) Auth(cmd *GitCloneCmd) error

func (*AuthNone) Close

func (a *AuthNone) Close() error

type GitCloneCmd

type GitCloneCmd struct {
	Address     string
	Destination string
	Env         []string
	Args        []string
}

func (GitCloneCmd) Cmd

func (c GitCloneCmd) Cmd() *exec.Cmd

Jump to

Keyboard shortcuts

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