Documentation ¶
Index ¶
- type Container
- type GitRepo
- type Reader
- type RepoManager
- type WorkflowGenerator
- type WorkflowSource
- type Writer
- func (writer *Writer) ApplyGenerator(sourceFs http.FileSystem, contextDir string, generator WorkflowGenerator) error
- func (writer *Writer) LogErrors(destination string, message string, errors []string)
- func (writer *Writer) SafelyWriteFile(destination string, content string) error
- func (writer *Writer) UpdateFileContent(destination string, content string, details string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
func NewContainer ¶
func (*Container) ContentReader ¶
func (*Container) ContentWriter ¶
func (*Container) HttpClient ¶
func (*Container) RepoManager ¶
func (container *Container) RepoManager() *RepoManager
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader - reads files that are either local or remote
type RepoManager ¶
type RepoManager struct {
// contains filtered or unexported fields
}
func NewRepoManager ¶
func NewRepoManager(gitAdapter io.GitAdapter, fs *afero.Afero, logger *io.Logger) *RepoManager
func (*RepoManager) CleanUp ¶
func (manager *RepoManager) CleanUp()
type WorkflowGenerator ¶
type WorkflowGenerator struct { Name string Sources []WorkflowSource TemplateVars map[string]string }
type WorkflowSource ¶
func NewWorkflowSource ¶
func NewWorkflowSource(source string, destination string) WorkflowSource
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) ApplyGenerator ¶
func (writer *Writer) ApplyGenerator(sourceFs http.FileSystem, contextDir string, generator WorkflowGenerator) error
func (*Writer) LogErrors ¶
LogErrors - prints an error message for the given destination file, together with any additional
func (*Writer) SafelyWriteFile ¶
Click to show internal directories.
Click to hide internal directories.