Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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)
}
type TestRepoReader ¶
TestRepoReader is a RepoReader that can be used for testing, and takes a list of relative file paths with their contents
func (TestRepoReader) Exists ¶
func (r TestRepoReader) Exists(path string) bool
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.