4 "github.com/hashicorp/terraform/config/configschema"
8 Providers ProviderSchemas
11 // ProviderSchemas is a map from provider names to provider schemas.
13 // The names in this map are the direct plugin name (e.g. "aws") rather than
14 // any alias name (e.g. "aws.foo"), since.
15 type ProviderSchemas map[string]*ProviderSchema
17 // ProviderSchema represents the schema for a provider's own configuration
18 // and the configuration for some or all of its resources and data sources.
20 // The completeness of this structure depends on how it was constructed.
21 // When constructed for a configuration, it will generally include only
22 // resource types and data sources used by that configuration.
23 type ProviderSchema struct {
24 Provider *configschema.Block
25 ResourceTypes map[string]*configschema.Block
26 DataSources map[string]*configschema.Block
29 // ProviderSchemaRequest is used to describe to a ResourceProvider which
30 // aspects of schema are required, when calling the GetSchema method.
31 type ProviderSchemaRequest struct {
32 ResourceTypes []string