githelper

package
v0.6.0-alpha3 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 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 Git

type Git struct {
	URL       string
	User      string
	SSHKey    string
	SSHPubKey string
	Host      string
	Branch    string
}

func New

func New() *Git

func (*Git) Create

func (g *Git) Create(repodir string, from string, subdir string) (*git.Repository, error)

func (*Git) Update

func (g *Git) Update(repo *git.Repository) (string, error)

func (*Git) UpdateKnownHosts

func (g *Git) UpdateKnownHosts(path string) (string, error)

UpdateKnownHosts works around https://github.com/go-git/go-git/issues/411

Jump to

Keyboard shortcuts

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