discovery

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlwaysPresentLines

type AlwaysPresentLines struct{}

func (AlwaysPresentLines) HasLines

func (apl AlwaysPresentLines) HasLines(lines []int) bool

func (AlwaysPresentLines) Results

func (apl AlwaysPresentLines) Results() []Line

type File

type File struct {
	Path    string
	Commits []string
}

type FileCommits

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

func NewFileCommitsFromMap

func NewFileCommitsFromMap(m map[string][]string) FileCommits

func (FileCommits) Commits

func (fc FileCommits) Commits() (commits []string)

func (FileCommits) HasCommit

func (fc FileCommits) HasCommit(commit string) bool

func (FileCommits) Paths

func (fc FileCommits) Paths() (paths []string)

func (FileCommits) Results

func (fc FileCommits) Results() (results []File)

type FileFindResults

type FileFindResults interface {
	Results() []File
	Paths() []string
	Commits() []string
	HasCommit(commit string) bool
}

type FileFinder

type FileFinder interface {
	Find(...string) (FileFindResults, error)
}

type GitBlameLineFinder

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

func NewGitBlameLineFinder

func NewGitBlameLineFinder(cmd git.CommandRunner, allowedCommits []string) *GitBlameLineFinder

func (*GitBlameLineFinder) Find

func (gbd *GitBlameLineFinder) Find(path string) (LineFindResults, error)

type GitBlameLines

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

func (GitBlameLines) HasLines

func (gbl GitBlameLines) HasLines(lines []int) bool

func (GitBlameLines) Results

func (gbl GitBlameLines) Results() []Line

type GitBranchFileFinder

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

func NewGitBranchFileFinder

func NewGitBranchFileFinder(gitCmd git.CommandRunner, include []*regexp.Regexp, baseBranch string) GitBranchFileFinder

func (GitBranchFileFinder) Find

func (gd GitBranchFileFinder) Find(pattern ...string) (FileFindResults, error)

type GlobFileFinder

type GlobFileFinder struct{}

func NewGlobFileFinder

func NewGlobFileFinder() GlobFileFinder

func (GlobFileFinder) Find

func (gd GlobFileFinder) Find(pattern ...string) (FileFindResults, error)

type Line

type Line struct {
	Path     string
	Position int
	Commit   string
}

type LineFindResults

type LineFindResults interface {
	Results() []Line
	HasLines(lines []int) bool
}

type LineFinder

type LineFinder interface {
	Find(string) (LineFindResults, error)
}

type NoopLineFinder

type NoopLineFinder struct{}

func (NoopLineFinder) Find

Jump to

Keyboard shortcuts

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