Documentation ¶
Index ¶
- func CheckIfError(moduleName string, err error)
- func CopyFile(name string, src string, dst string)
- func GetGitSource(name string, source string, version string) (string, string)
- func GetRegistrySource(name string, source string, version string, services *disco.Disco) (string, string)
- func GetWithGoGetter(name string, source string, version string, directory string)
- func IContains(a, b string) bool
- func IsGitSourceAddr(addr string) bool
- func IsLocalSourceAddr(addr string) bool
- func IsRegistrySourceAddr(addr string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIfError ¶
CheckIfError should be used to naively panics if an error is not nil.
func GetGitSource ¶
GetGitSource returns the source uri and version of a module from git
func GetRegistrySource ¶
func GetRegistrySource(name string, source string, version string, services *disco.Disco) (string, string)
GetRegistrySource retrieves a modules download source from a Terraform registry
func GetWithGoGetter ¶
GetWithGoGetter downloads objects using go-getter
func IsGitSourceAddr ¶
IsGitSourceAddr returns true if the address is a git source
func IsLocalSourceAddr ¶
IsLocalSourceAddr returns true if the address is a relative filepath
func IsRegistrySourceAddr ¶
IsRegistrySourceAddr check an address is a valid registry address
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.