xterrafile

package
v2.3.2+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2020 License: MIT Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfError

func CheckIfError(moduleName string, err error)

CheckIfError should be used to naively panics if an error is not nil.

func CopyFile

func CopyFile(name string, src string, dst string)

CopyFile copies files to the correct destination

func GetGitSource

func GetGitSource(name string, source string, version string) (string, string)

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

func GetWithGoGetter(name string, source string, version string, directory string)

GetWithGoGetter downloads objects using go-getter

func IContains

func IContains(a, b string) bool

IContains is case-insensitive string contains check

func IsGitSourceAddr

func IsGitSourceAddr(addr string) bool

IsGitSourceAddr returns true if the address is a git source

func IsLocalSourceAddr

func IsLocalSourceAddr(addr string) bool

IsLocalSourceAddr returns true if the address is a relative filepath

func IsRegistrySourceAddr

func IsRegistrySourceAddr(addr string) bool

IsRegistrySourceAddr check an address is a valid registry address

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL