git

package
v0.126.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 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