Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultExclusionNamesList []string = []string{
".terraform",
".git",
}
DefaultExclusionNamesList contains well-known file and folder names to be excluded from processing
Functions ¶
Types ¶
type Config ¶
type Config struct { // Write indicates if files should be updated Write bool // Exclude files/folders by name ExcludeNames []string // ExcludeItemsFunc checks if the given item should be excluded or not ExcludeItemsFunc ExcludeFileFunc }
Config holds configuration for revision manager
type ExcludeFileFunc ¶
ExcludeFileFunc makes a decision if particular file/folder should be excluded
type ResultFactory ¶
type ResultFactory struct { }
ResultFactory wraps building of Result messages with convenient logging functions
func NewResultFactory ¶
func NewResultFactory() *ResultFactory
func (*ResultFactory) Debug ¶
func (rf *ResultFactory) Debug(msg string) Result
func (*ResultFactory) Error ¶
func (rf *ResultFactory) Error(msg string) Result
func (*ResultFactory) Info ¶
func (rf *ResultFactory) Info(msg string) Result
func (*ResultFactory) Trace ¶
func (rf *ResultFactory) Trace(msg string) Result
func (*ResultFactory) Warn ¶
func (rf *ResultFactory) Warn(msg string) Result
type Results ¶
type Results struct {
// contains filtered or unexported fields
}
Results holds a set of Result messages alongside with errors
func NewResults ¶
func (*Results) Append ¶
func (p *Results) Append(new ...interface{})
Append adds more items to the results set which might be rendered later
type RevisionManager ¶
type RevisionManager struct {
// contains filtered or unexported fields
}
RevisionManager is responsible for managing module source updates
func NewManager ¶
func NewManager(config Config, strategy strategies.Strategy) *RevisionManager
func (*RevisionManager) ProcessPaths ¶
func (m *RevisionManager) ProcessPaths(paths []string, results *Results)
ProcessPaths processes Terraform in the given paths
The process is recursive and checks only files that are not ignored (see ignoredFile())
Click to show internal directories.
Click to hide internal directories.