Versions in this module Expand all Collapse all v1 v1.4.0 Mar 10, 2023 Changes in this version + func DirFromModule(ctx context.Context, rootDir, modulesDir, sourceAddr string, ...) tfdiags.Diagnostics + func LoadConfig(rootDir, modulesDir string) (*earlyconfig.Config, tfdiags.Diagnostics) + func LoadConfigForTests(t *testing.T, rootDir string) (*configs.Config, *configload.Loader, func(), tfdiags.Diagnostics) + func MustLoadConfigForTests(t *testing.T, rootDir string) (*configs.Config, *configload.Loader, func()) + type ModuleInstallHooks interface + Download func(moduleAddr, packageAddr string, version *version.Version) + Install func(moduleAddr string, version *version.Version, localPath string) + type ModuleInstallHooksImpl struct + func (h ModuleInstallHooksImpl) Download(moduleAddr, packageAddr string, version *version.Version) + func (h ModuleInstallHooksImpl) Install(moduleAddr string, version *version.Version, localPath string) + type ModuleInstaller struct + func NewModuleInstaller(modsDir string, reg *registry.Client) *ModuleInstaller + func (i *ModuleInstaller) InstallModules(ctx context.Context, rootDir string, upgrade bool, hooks ModuleInstallHooks) (*earlyconfig.Config, tfdiags.Diagnostics)