mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-07 09:36:44 +00:00
![Radek Simko](/assets/img/avatar_default.png)
* vendor: Ignore github.com/hashicorp/terraform/backend This is to avoid dependency sprawl - e.g. vendoring AWS or Azure SDK when we don't really need remote backend functionality in provider code - it's core's responsibility. * vendor: github.com/hashicorp/terraform/...@v0.10.0
44 lines
1.5 KiB
Go
44 lines
1.5 KiB
Go
package moduledeps
|
|
|
|
import (
|
|
"github.com/hashicorp/terraform/plugin/discovery"
|
|
)
|
|
|
|
// Providers describes a set of provider dependencies for a given module.
|
|
//
|
|
// Each named provider instance can have one version constraint.
|
|
type Providers map[ProviderInstance]ProviderDependency
|
|
|
|
// ProviderDependency describes the dependency for a particular provider
|
|
// instance, including both the set of allowed versions and the reason for
|
|
// the dependency.
|
|
type ProviderDependency struct {
|
|
Constraints discovery.Constraints
|
|
Reason ProviderDependencyReason
|
|
}
|
|
|
|
// ProviderDependencyReason is an enumeration of reasons why a dependency might be
|
|
// present.
|
|
type ProviderDependencyReason int
|
|
|
|
const (
|
|
// ProviderDependencyExplicit means that there is an explicit "provider"
|
|
// block in the configuration for this module.
|
|
ProviderDependencyExplicit ProviderDependencyReason = iota
|
|
|
|
// ProviderDependencyImplicit means that there is no explicit "provider"
|
|
// block but there is at least one resource that uses this provider.
|
|
ProviderDependencyImplicit
|
|
|
|
// ProviderDependencyInherited is a special case of
|
|
// ProviderDependencyImplicit where a parent module has defined a
|
|
// configuration for the provider that has been inherited by at least one
|
|
// resource in this module.
|
|
ProviderDependencyInherited
|
|
|
|
// ProviderDependencyFromState means that this provider is not currently
|
|
// referenced by configuration at all, but some existing instances in
|
|
// the state still depend on it.
|
|
ProviderDependencyFromState
|
|
)
|