2020-01-09 01:24:41 +01:00
|
|
|
package getproviders
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/hashicorp/terraform/addrs"
|
|
|
|
)
|
|
|
|
|
|
|
|
// A Source can query a particular source for information about providers
|
|
|
|
// that are available to install.
|
|
|
|
type Source interface {
|
2020-06-25 16:49:48 +02:00
|
|
|
AvailableVersions(provider addrs.Provider) (VersionList, Warnings, error)
|
2020-01-09 01:24:41 +01:00
|
|
|
PackageMeta(provider addrs.Provider, version Version, target Platform) (PackageMeta, error)
|
2020-05-14 20:04:13 +02:00
|
|
|
ForDisplay(provider addrs.Provider) string
|
2020-01-09 01:24:41 +01:00
|
|
|
}
|