githelper

package
v0.4.1-SURE-3613.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const GitRepoTemplate = `` /* 180-byte string literal not displayed */

GitRepoTemplate can be used as fleet.yaml

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

type GitRepo

type GitRepo struct {
	Repo   string
	Branch string
}

Jump to

Keyboard shortcuts

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