gitfile

package
v5.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package gitfile defines functionality to list and fetch files after temporarily cloning a git repo.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func (*Handler) Cleanup

func (h *Handler) Cleanup() error

func (*Handler) GetFile

func (h *Handler) GetFile(filename string) (*os.File, error)

func (*Handler) GetLocalPath

func (h *Handler) GetLocalPath() (string, error)

func (*Handler) Init

func (h *Handler) Init(ctx context.Context, cloneURL, commitSHA string)

func (*Handler) ListFiles

func (h *Handler) ListFiles(predicate func(string) (bool, error)) ([]string, error)

Jump to

Keyboard shortcuts

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