Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeRepoReader ¶ added in v0.0.34
FakeRepoReader is a RepoReader that can be used for testing, and takes a list of relative file paths with their contents
func (FakeRepoReader) Exists ¶ added in v0.0.34
func (r FakeRepoReader) Exists(path string) bool
func (FakeRepoReader) GetRepoName ¶ added in v0.0.34
func (FakeRepoReader) GetRepoName() (string, error)
GetRepoName returns the name of the repo
type RepoReader ¶
type RepoReader interface { Exists(path string) bool ReadFile(path string) ([]byte, error) // FindFiles returns a list of files that match the given patterns searching up to // maxDepth nested sub-directories. maxDepth of 0 limits files to the root dir. FindFiles(path string, patterns []string, maxDepth int) ([]string, error) GetRepoName() (string, error) }
type VariableExtractor ¶
type VariableExtractor interface { ReadDefaults(r RepoReader) (map[string]string, error) MatchesLanguage(lowerlang string) bool GetName() string }
VariableExtractor is an interface that can be implemented for extracting variables from a repo's files
Click to show internal directories.
Click to hide internal directories.