mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
additional schema handling comment
This commit is contained in:
parent
76332db98d
commit
a77baa866d
@ -74,6 +74,11 @@ type Interface interface {
|
||||
Close() error
|
||||
}
|
||||
|
||||
// GetProviderSchemaResponse is the return type for GetProviderSchema, and
|
||||
// should only be used when handling a value for that method. The handling of
|
||||
// of schemas in any other context should always use ProviderSchema, so that
|
||||
// the in-memory representation can be more easily changed separately from the
|
||||
// RCP protocol.
|
||||
type GetProviderSchemaResponse struct {
|
||||
// Provider is the schema for the provider itself.
|
||||
Provider Schema
|
||||
|
@ -8,8 +8,9 @@ import (
|
||||
"github.com/hashicorp/terraform/internal/configs/configschema"
|
||||
)
|
||||
|
||||
// ProviderSchema is an overall container for all of the schemas for all configurable
|
||||
// objects defined within a particular provider.
|
||||
// ProviderSchema is an overall container for all of the schemas for all
|
||||
// configurable objects defined within a particular provider. All storage of
|
||||
// provider schemas should use this type.
|
||||
type ProviderSchema = GetProviderSchemaResponse
|
||||
|
||||
// SchemaForResourceType attempts to find a schema for the given mode and type.
|
||||
|
Loading…
Reference in New Issue
Block a user