gitclient

package
v1.1.1-0...-acba925 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(url string, g *plumb.Plumbing) (path string, err error)

Get Downloads using the data provider by getter

Types

type Gitclient

type Gitclient struct {
	URL    string
	Local  string
	Output *os.File
	Ref    string
}

Gitclient gitclient

func (*Gitclient) Checkout

func (d *Gitclient) Checkout(ref string)

Checkout checks out a reference. If ref is an empty string will checkout using the internally set ref

func (*Gitclient) Clone

func (d *Gitclient) Clone()

Clone will clone a remote repository

func (*Gitclient) Pull

func (d *Gitclient) Pull()

Pull will pull from the remote repository

func (*Gitclient) SetRef

func (d *Gitclient) SetRef(ref string)

SetRef sets the default reference. See Checkout

func (*Gitclient) Sync

func (d *Gitclient) Sync()

Sync will download/synchronize with the upstream git repo

func (*Gitclient) Tags

func (d *Gitclient) Tags() []string

Tags will list all tags

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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