coffees_data_source.go 758 B

123456789101112131415161718192021222324252627
  1. package provider
  2. import (
  3. "context"
  4. "github.com/hashicorp/terraform-plugin-framework/datasource"
  5. "github.com/hashicorp/terraform-plugin-framework/datasource/schema"
  6. )
  7. func NewCoffeesDataSource() datasource.DataSource {
  8. return &coffeesDataSource{}
  9. }
  10. type coffeesDataSource struct {
  11. }
  12. func (c coffeesDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) {
  13. resp.TypeName = req.ProviderTypeName + "_coffees"
  14. }
  15. func (c coffeesDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) {
  16. resp.Schema = schema.Schema{}
  17. }
  18. func (c coffeesDataSource) Read(ctx context.Context, request datasource.ReadRequest, response *datasource.ReadResponse) {
  19. return
  20. }