search

package
v97.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2017 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 BlobResult

type BlobResult struct {
	Path string
	SHA  string
}

type BlobSearcher

type BlobSearcher interface {
	ListBlobs(logger lager.Logger, owner string, name string) ([]BlobResult, error)
}

func NewBlobSearcher

func NewBlobSearcher(repoRepository db.RepositoryRepository, fileLookup gitclient.FileLookup) BlobSearcher

type Result

type Result struct {
	Owner      string
	Repository string

	Revision   string
	Path       string
	LineNumber int
	Location   int
	Length     int

	Content []byte
}

type Results

type Results interface {
	C() <-chan Result
	Err() error
}

type Searcher

type Searcher interface {
	SearchCurrent(ctx context.Context, logger lager.Logger, matcher matchers.Matcher) Results
}

func NewSearcher

func NewSearcher(repoRepository db.RepositoryRepository, looper gitclient.Looper) Searcher

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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