vcs

package
v0.7.5-0...-2d5d3a9 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fetch

func Fetch(v IVCS, localpath string, remote string, reference string, keypath string) (string, error)

Fetch from a remote VCS

func FetchRepo

func FetchRepo(remote string, reference string, opt configuration.Options) (string, error)

func Update

func Update(v IVCS, localpath string) (string, error)

Update a locally checked out repo

Types

type GitVCS

type GitVCS struct {
}

GitVCS ...

func (*GitVCS) Fetch

func (g *GitVCS) Fetch(localpath string, remote string, reference string, keypath string) (string, error)

Fetch ...

func (*GitVCS) Update

func (g *GitVCS) Update(localpath string) (string, error)

Update ...

type IVCS

type IVCS interface {
	Fetch(localpath string, remote string, reference string, keypath string) (string, error)
	Update(localpath string) (string, error)
}

IVCS is a VCS abstraction

Jump to

Keyboard shortcuts

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