Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client to retrieve sources
func New ¶
New creates a new getter client. It configures all the detectors and getters itself to make sure they are configured correctly.
type LocalGetter ¶
type LocalGetter struct {
getter.FileGetter
}
LocalGetter is a wrapper around the go-getter implementation of FileGetter This is due to the go-getter implementation does not support copying a local directory, it will only create a symlink. That causes some problems for modules that should be copied into temp folder
type RegistryDetector ¶
type RegistryDetector struct {
// contains filtered or unexported fields
}
RegistryDetector implements detector to detect terraform registry Src have to be formatted with query parameter ?registryVersion= avinor/storage-account/azurerm?registryVersion=1.0
func (*RegistryDetector) Detect ¶
func (d *RegistryDetector) Detect(src, _ string) (string, bool, error)
Detect implements the Detector interface and will check if this source is a terraform registry source. If src contains ?registryVersion parameter it will assume it is a registry source.
func (*RegistryDetector) DetectRegistry ¶
func (d *RegistryDetector) DetectRegistry(src string) (string, bool, error)
DetectRegistry tries to locate the download location for terraform registry source