git

package
v0.1.45 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	basePath string,
	pullCreds *model.Creds,
) model.DataProvider

New returns a data provider which sources pkgs from git repos

func Pull

func Pull(
	ctx context.Context,
	path string,
	dataRef string,
	authOpts *model.Creds,
) error

Pull pulls 'dataRef' to 'path' nil pullCreds will be ignored

expected errs:

  • ErrDataProviderAuthentication on authentication failure
  • ErrDataProviderAuthorization on authorization failure

Types

This section is empty.

Jump to

Keyboard shortcuts

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