Documentation ¶
Index ¶
- type CommandRunner
- type Factory
- type FileMoveTransform
- type FileMover
- type FileStringReplacer
- type FileTransform
- type Globber
- type InputTransform
- type MockGlobber
- type MockTransform
- type MockTransformer
- type Options
- type ScriptTransform
- type StringReplace
- type Transform
- type Transformer
- type Type
- type VariableTransform
- type Variables
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandRunner ¶
func NewCommandRunner ¶
func NewCommandRunner() CommandRunner
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
func NewFactory ¶
func NewFactory() *Factory
type FileMoveTransform ¶
type FileMoveTransform struct { Options // contains filtered or unexported fields }
func NewFileMoveTransform ¶
func NewFileMoveTransform(options Options, output message.Printer, mover FileMover) *FileMoveTransform
func (*FileMoveTransform) Apply ¶
func (transform *FileMoveTransform) Apply(variables Variables) error
type FileMover ¶
func NewFileMover ¶
func NewFileMover() FileMover
type FileStringReplacer ¶
type FileStringReplacer interface {
Replace(filepath string, stringReplace StringReplace, variables Variables) error
}
func NewFileStringReplacer ¶
func NewFileStringReplacer() FileStringReplacer
type FileTransform ¶
type FileTransform struct { Options // contains filtered or unexported fields }
func NewFileTransform ¶
func NewFileTransform( options Options, output message.Printer, globber Globber, replacer FileStringReplacer, ) *FileTransform
func (*FileTransform) Apply ¶
func (transform *FileTransform) Apply(variables Variables) error
type Globber ¶
func NewGlobber ¶
func NewGlobber() Globber
type InputTransform ¶
type InputTransform struct { Options // contains filtered or unexported fields }
func NewInputTransform ¶
func (*InputTransform) Apply ¶
func (transform *InputTransform) Apply(variables Variables) error
type MockGlobber ¶
func NewMockGlobber ¶
func NewMockGlobber(paths []string, err error) *MockGlobber
type MockTransform ¶
func NewMockTransform ¶
func NewMockTransform(variables Variables, err error) *MockTransform
func (*MockTransform) Apply ¶
func (mockTransform *MockTransform) Apply(variables Variables) error
type MockTransformer ¶
func NewMockTransformer ¶
func NewMockTransformer(transforms []Transform, variables Variables, err error) *MockTransformer
type Options ¶
type Options struct { Arguments []string `json:"arguments,omitempty"` InputPath string `json:"input_path,omitempty"` InputVariable string `json:"input_variable,omitempty"` OutputPath string `json:"output_path,omitempty"` OutputVariable string `json:"output_variable,omitempty"` SkipIfVariableExists bool `json:"skip_if_variable_exists,omitempty"` StringPrefix string `json:"string_prefix,omitempty"` StringReplace StringReplace `json:"string_replace,omitempty"` StringSuffix string `json:"string_suffix,omitempty"` Type Type `json:"type"` }
type ScriptTransform ¶
type ScriptTransform struct { Options // contains filtered or unexported fields }
func NewScriptTransform ¶
func NewScriptTransform(options Options, output message.Printer, runner CommandRunner) *ScriptTransform
func (*ScriptTransform) Apply ¶
func (transform *ScriptTransform) Apply(variables Variables) error
type StringReplace ¶
type Transformer ¶
func NewTransformer ¶
func NewTransformer() Transformer
type VariableTransform ¶
type VariableTransform struct { Options // contains filtered or unexported fields }
func NewVariableTransform ¶
func NewVariableTransform(options Options, output message.Printer) *VariableTransform
func (*VariableTransform) Apply ¶
func (transform *VariableTransform) Apply(variables Variables) error
Click to show internal directories.
Click to hide internal directories.