INNER CODE UNIT · Go
func
hashicorp/terraform-provider-external · internal/provider/data_source.go:35
func (n *externalDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) {
resp.TypeName = req.ProviderTypeName
}
func (n *externalDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) {
resp.Schema = schema.Schema{
Description: "The `external` data source allows an external program implementing a specific protocol " +
"(defined below) to act as a data source, exposing arbitrary data for use elsewhere in the Terraform " +
"configuration.\n" +
"\n" +
"**Warning** This mechanism is provided as an \"escape hatch\" for exceptional situations where a " +
"first-class Terraform provider is not more appropriate. Its capabilities are limited in comparison " +
"to a true data source, and implementing a data source via an external program is likely to hurt the " +
"portability of your Terraform configuration by creating dependencies on external programs and " +
"libraries that may not be available (or may need to be used differently) on different operating " +
"systems.\n" +
"\n" +
"**Warning** Terraform Enterprise does not guarantee availability of any particular language runtimes " +