123456789101112131415161718192021222324252627 |
- package provider
- import (
- "context"
- "github.com/hashicorp/terraform-plugin-framework/datasource"
- "github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- )
- func NewCoffeesDataSource() datasource.DataSource {
- return &coffeesDataSource{}
- }
- type coffeesDataSource struct {
- }
- func (c coffeesDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) {
- resp.TypeName = req.ProviderTypeName + "_coffees"
- }
- func (c coffeesDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) {
- resp.Schema = schema.Schema{}
- }
- func (c coffeesDataSource) Read(ctx context.Context, request datasource.ReadRequest, response *datasource.ReadResponse) {
- return
- }
|