source

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExtGo = ".go"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FileFinder

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

FileFinder finds a file in a vcs repository.

func NewFileFinder

func NewFileFinder(client VCSClient, repo giturl.IGitURL, path, rootPath, ref string, httpClient *http.Client, logger log.Logger) *FileFinder

NewFileFinder returns a new FileFinder.

func (FileFinder) Find

Find returns the file content and URL.

type VCSClient

type VCSClient interface {
	GetFile(ctx context.Context, req client.FileRequest) (client.File, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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