Versions in this module Expand all Collapse all v1 v1.4.0 Mar 10, 2023 Changes in this version + type CachedProvider struct + PackageDir string + Provider addrs.Provider + Version getproviders.Version + func (cp *CachedProvider) ExecutableFile() (string, error) + func (cp *CachedProvider) Hash() (getproviders.Hash, error) + func (cp *CachedProvider) HashV1() (getproviders.Hash, error) + func (cp *CachedProvider) MatchesAnyHash(allowed []getproviders.Hash) (bool, error) + func (cp *CachedProvider) MatchesHash(want getproviders.Hash) (bool, error) + func (cp *CachedProvider) PackageLocation() getproviders.PackageLocalDir + type Dir struct + func NewDir(baseDir string) *Dir + func NewDirWithPlatform(baseDir string, platform getproviders.Platform) *Dir + func (d *Dir) AllAvailablePackages() map[addrs.Provider][]CachedProvider + func (d *Dir) BasePath() string + func (d *Dir) InstallPackage(ctx context.Context, meta getproviders.PackageMeta, ...) (*getproviders.PackageAuthenticationResult, error) + func (d *Dir) LinkFromOtherCache(entry *CachedProvider, allowedHashes []getproviders.Hash) error + func (d *Dir) ProviderLatestVersion(provider addrs.Provider) *CachedProvider + func (d *Dir) ProviderVersion(provider addrs.Provider, version getproviders.Version) *CachedProvider + type InstallMode rune + const InstallNewProvidersForce + const InstallNewProvidersOnly + const InstallUpgrades + type Installer struct + func NewInstaller(targetDir *Dir, source getproviders.Source) *Installer + func (i *Installer) Clone(targetDir *Dir) *Installer + func (i *Installer) EnsureProviderVersions(ctx context.Context, locks *depsfile.Locks, reqs getproviders.Requirements, ...) (*depsfile.Locks, error) + func (i *Installer) HasGlobalCacheDir() bool + func (i *Installer) ProviderSource() getproviders.Source + func (i *Installer) SetBuiltInProviderTypes(types []string) + func (i *Installer) SetGlobalCacheDir(cacheDir *Dir) + func (i *Installer) SetGlobalCacheDirMayBreakDependencyLockFile(mayBreak bool) + func (i *Installer) SetUnmanagedProviderTypes(types map[addrs.Provider]struct{}) + type InstallerError struct + ProviderErrors map[addrs.Provider]error + func (err InstallerError) Error() string + type InstallerEvents struct + BuiltInProviderAvailable func(provider addrs.Provider) + BuiltInProviderFailure func(provider addrs.Provider, err error) + FetchPackageBegin func(provider addrs.Provider, version getproviders.Version, ...) + FetchPackageFailure func(provider addrs.Provider, version getproviders.Version, err error) + FetchPackageMeta func(provider addrs.Provider, version getproviders.Version) + FetchPackageSuccess func(provider addrs.Provider, version getproviders.Version, localDir string, ...) + LinkFromCacheBegin func(provider addrs.Provider, version getproviders.Version, cacheRoot string) + LinkFromCacheFailure func(provider addrs.Provider, version getproviders.Version, err error) + LinkFromCacheSuccess func(provider addrs.Provider, version getproviders.Version, localDir string) + PendingProviders func(reqs map[addrs.Provider]getproviders.VersionConstraints) + ProviderAlreadyInstalled func(provider addrs.Provider, selectedVersion getproviders.Version) + ProvidersFetched func(authResults map[addrs.Provider]*getproviders.PackageAuthenticationResult) + ProvidersLockUpdated func(provider addrs.Provider, version getproviders.Version, ...) + QueryPackagesBegin func(provider addrs.Provider, versionConstraints getproviders.VersionConstraints, ...) + QueryPackagesFailure func(provider addrs.Provider, err error) + QueryPackagesSuccess func(provider addrs.Provider, selectedVersion getproviders.Version) + QueryPackagesWarning func(provider addrs.Provider, warn []string) + func (e *InstallerEvents) OnContext(ctx context.Context) context.Context