Documentation ¶
Index ¶
- func CheckConfig(configPath string, removeFlag bool) error
- func DeleteFromTmp(dirname string)
- func IsEmpty(name string) bool
- func RemoveEmptyFolders(dirname string)
- func RemoveURLFromConfig(configPath, url string) error
- func Start(_path string, console bool, threads int, defaultTimeout int)
- func UpdateRepo(path string, remDirs bool, remFiles bool, printOut bool)
- func ValidateTemplate(data string) (bool, error)
- type Config
- type Error
- type LintError
- type Mark
- type TemplateLintResp
- type TemplateResp
- type ValidateError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckConfig ¶
func DeleteFromTmp ¶
func DeleteFromTmp(dirname string)
func RemoveEmptyFolders ¶
func RemoveEmptyFolders(dirname string)
func RemoveURLFromConfig ¶
func ValidateTemplate ¶
Types ¶
type TemplateLintResp ¶
type TemplateResp ¶
type TemplateResp struct { Input string `json:"template_input,omitempty"` Format bool `json:"template_format,omitempty"` Updated string `json:"updated_template,omitempty"` Enhance bool `json:"template_enhance,omitempty"` Enhanced string `json:"enhanced_template,omitempty"` Lint bool `json:"template_lint,omitempty"` LintError LintError `json:"lint_error,omitempty"` Validate bool `json:"template_validate,omitempty"` ValidateErrorCount int `json:"validate_error_count,omitempty"` ValidateError []ValidateError `json:"validate_error,omitempty"` Error Error `json:"error,omitempty"` }
TemplateResponse from templateman to be used for enhancing and formatting
type ValidateError ¶
type ValidateError struct { Location string `json:"location,omitempty"` Message string `json:"message,omitempty"` Name string `json:"name,omitempty"` Argument interface{} `json:"argument,omitempty"` Stack string `json:"stack,omitempty"` Mark struct { Line int `json:"line,omitempty"` Column int `json:"column,omitempty"` Pos int `json:"pos,omitempty"` } `json:"mark,omitempty"` }
Click to show internal directories.
Click to hide internal directories.