git

package
v0.56.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRetrievalFailed = errors.New("failed to retrieve a file from Git repository")
	ErrFileNotFound    = errors.New("file not found in a Git repository")
)

Functions

func Retrieve

func Retrieve(ctx context.Context, locator *Locator) ([]byte, error)

Types

type Locator

type Locator struct {
	URL      string
	Path     string
	Revision string
}

func Parse

func Parse(module string) *Locator

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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