Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadTemplatesToTemporaryFolder ¶
DownloadTemplatesToTemporaryFolder uses the go-getter library to fetch the templates from the configured URL to a temporary folder and returns the path to that folder. If there is a subdir in the template URL, return the combined path as well.
func NewGetterClient ¶
We use this code to force go-getter to copy files instead of creating symlinks.
func ValidateTemplateUrl ¶
ValidateTemplateUrl returns an error if the template URL is not following one of the supported detector patterns.
Types ¶
type FileCopyGetter ¶
type FileCopyGetter struct {
getter.FileGetter
}
A custom getter.Getter implementation that uses file copying instead of symlinks. Symlinks are faster and use less disk space, but they cause issues in Windows and with infinite loops, so we copy files/folders instead.