gitcloner

package
v0.10.0-rc.14 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd(gitCloner CloneGit) *cobra.Command

Types

type CloneGit

type CloneGit interface {
	CloneRepo(opts *GitCloner) error
}

type Cloner

type Cloner struct{}

func New

func New() *Cloner

func (*Cloner) CloneRepo

func (c *Cloner) CloneRepo(opts *GitCloner) error

type GitCloner

type GitCloner struct {
	Repo              string
	Path              string
	Branch            string
	Revision          string
	CABundleFile      string
	Username          string
	PasswordFile      string
	SSHPrivateKeyFile string
	InsecureSkipTLS   bool
	KnownHostsFile    string
}

type Options

type Options struct {
	Repo            string
	Branch          string
	Auth            transport.AuthMethod
	InsecureSkipTLS bool
	CABundle        []byte
}

Jump to

Keyboard shortcuts

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