-
Notifications
You must be signed in to change notification settings - Fork 91
/
schema.go
27 lines (22 loc) · 899 Bytes
/
schema.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package provider
import (
"github.com/hashicorp/terraform-plugin-framework/diag"
"github.com/hashicorp/terraform-plugin-framework/provider/schema"
)
// SchemaRequest represents a request for the Provider to return its schema.
// An instance of this request struct is supplied as an argument to the
// Provider type Schema method.
type SchemaRequest struct{}
// SchemaResponse represents a response to a SchemaRequest. An instance of this
// response struct is supplied as an argument to the Provider type Schema
// method.
type SchemaResponse struct {
// Schema is the schema of the provider.
Schema schema.Schema
// Diagnostics report errors or warnings related to validating the data
// source configuration. An empty slice indicates success, with no warnings
// or errors generated.
Diagnostics diag.Diagnostics
}