git

package
v0.80.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRetrievalFailed = errors.New("failed to retrieve a Git repository")
)

Functions

This section is empty.

Types

type Git

type Git struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, url string, revision string) (*Git, error)

func (Git) Get

func (g Git) Get(ctx context.Context, path string) ([]byte, error)

func (Git) Join

func (g Git) Join(elem ...string) string

func (Git) ReadDir

func (g Git) ReadDir(ctx context.Context, path string) ([]string, error)

func (Git) Stat

func (g Git) Stat(ctx context.Context, path string) (*fs.FileInfo, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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