Versions in this module Expand all Collapse all v1 v1.2.0 Oct 18, 2019 Changes in this version + const ErrorChecksumVerification + const ErrorMissingChecksumVerification + const ErrorNoSuchProvider + const ErrorNoSuitableVersion + const ErrorNoVersionCompatible + const ErrorNoVersionCompatibleWithPlatform + const ErrorPublicRegistryUnreachable + const ErrorServiceUnreachable + const ErrorSignatureVerification + const ErrorVersionIncompatible + const HashicorpPublicKey + const PluginInstallProtocolVersion + const VersionZero + func FindPluginPaths(kind string, dirs []string) []string + type ConstraintStr string + func (s ConstraintStr) MustParse() Constraints + func (s ConstraintStr) Parse() (Constraints, error) + type Constraints struct + var AllVersions Constraints + func NewConstraints(c version.Constraints) Constraints + func (s Constraints) Allows(v Version) bool + func (s Constraints) Append(other Constraints) Constraints + func (s Constraints) String() string + func (s Constraints) Unconstrained() bool + type Error string + func (err Error) Error() string + type Installer interface + Get func(provider addrs.ProviderType, req Constraints) (PluginMeta, tfdiags.Diagnostics, error) + PurgeUnused func(used map[string]PluginMeta) (removed PluginMetaSet, err error) + type PluginCache interface + CachedPluginPath func(kind string, name string, version Version) string + InstallDir func() string + func NewLocalPluginCache(dir string) PluginCache + type PluginConstraints struct + SHA256 []byte + Versions Constraints + func (s *PluginConstraints) AcceptsSHA256(digest []byte) bool + func (s *PluginConstraints) Allows(v Version) bool + type PluginMeta struct + Name string + Path string + Version VersionStr + func (m PluginMeta) SHA256() ([]byte, error) + type PluginMetaSet map[PluginMeta]struct + func FindPlugins(kind string, dirs []string) PluginMetaSet + func ResolvePluginPaths(paths []string) PluginMetaSet + func (s PluginMetaSet) Add(p PluginMeta) + func (s PluginMetaSet) ByName() map[string]PluginMetaSet + func (s PluginMetaSet) ConstrainVersions(reqd PluginRequirements) map[string]PluginMetaSet + func (s PluginMetaSet) Count() int + func (s PluginMetaSet) Has(p PluginMeta) bool + func (s PluginMetaSet) Newest() PluginMeta + func (s PluginMetaSet) OverridePaths(paths map[string]string) PluginMetaSet + func (s PluginMetaSet) Remove(p PluginMeta) + func (s PluginMetaSet) ValidateVersions() (valid, invalid PluginMetaSet) + func (s PluginMetaSet) WithName(name string) PluginMetaSet + func (s PluginMetaSet) WithVersion(version Version) PluginMetaSet + type PluginRequirements map[string]*PluginConstraints + func (r PluginRequirements) LockExecutables(sha256s map[string][]byte) + func (r PluginRequirements) Merge(other PluginRequirements) PluginRequirements + type ProviderInstaller struct + Arch string + Cache PluginCache + Dir string + OS string + PluginProtocolVersion uint + Services *disco.Disco + SkipVerify bool + Ui cli.Ui + func (i *ProviderInstaller) Get(provider addrs.ProviderType, req Constraints) (PluginMeta, tfdiags.Diagnostics, error) + func (i *ProviderInstaller) PurgeUnused(used map[string]PluginMeta) (PluginMetaSet, error) + type Version struct + func (v Version) Equal(other Version) bool + func (v Version) IsPrerelease() bool + func (v Version) MinorUpgradeConstraintStr() ConstraintStr + func (v Version) NewerThan(other Version) bool + func (v Version) String() string + type VersionStr string + func (s VersionStr) MustParse() Version + func (s VersionStr) Parse() (Version, error) + type Versions []Version + func (v Versions) Sort()