githelper

package
v0.7.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKnownHosts added in v0.6.0

func CreateKnownHosts(path string, host string) (string, error)

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

Types

type Git

type Git struct {
	URL       string
	User      string
	SSHKey    string
	SSHPubKey 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)

Jump to

Keyboard shortcuts

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