Documentation
¶
Index ¶
- Constants
- type File
- func (f *File) Condition(source string) (bool, error)
- func (f *File) ConditionFromSCM(source string, scm scm.Scm) (bool, error)
- func (f *File) Source(workingDir string) (string, error)
- func (f *File) Target(source string, dryRun bool) (changed bool, err error)
- func (f *File) TargetFromSCM(source string, scm scm.Scm, dryRun bool) (changed bool, files []string, message string, err error)
- type Line
Constants ¶
View Source
const ( //ErrLineNotFound is the error message when no matching line found ErrLineNotFound string = "line not found" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
File defines the resource file that can be configured from an updatecli configuration
func (*File) Condition ¶
Condition test if a file content match the content provided via configuration. If the configuration doesn't specify a value then it fall back to the source output
func (*File) ConditionFromSCM ¶
ConditionFromSCM test if a file content from SCM match the content provided via configuration. If the configuration doesn't specify a value then it fall back to the source output
type Line ¶
Line hold rule that define if a specific line should be included or excluded
func (*Line) ContainsExcluded ¶
ContainsExcluded return a content without excluded lines
func (*Line) ContainsIncluded ¶
ContainsIncluded return a content with only matching lines
Click to show internal directories.
Click to hide internal directories.