Documentation ¶
Index ¶
Constants ¶
View Source
const ( ByValue = "by-value" ByValueRegex = "by-value-regex" ByPath = "by-path" ByFilePath = "by-file-path" PutValue = "put-value" PutComment = "put-comment" PathDelimiter = "." )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SearchReplace ¶
type SearchReplace struct { // ByValue is the value of the field to be matched ByValue string // ByValueRegex is the value regex of the field to be matched ByValueRegex string // ByPath is the path of the field to be matched ByPath string // ByFilePath is the filepath of the resource to be matched ByFilePath string // Count is the number of matches Count int // PutValue is the value to be put at to field // filtered by path and/or value PutValue string // PutComment is the comment to be added at to field PutComment string // Results stores the results of executing the command Results []SearchResult // contains filtered or unexported fields }
SearchReplace struct holds the input parameters and results for Search and Replace operations on resource configs
type SearchResult ¶
type SearchResult struct { // FilePath is the file path of the matching field FilePath string // FieldPath is field path of the matching field FieldPath string // Value of the matching field Value string }
SearchResult holds result of search and replace operation
Click to show internal directories.
Click to hide internal directories.