Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions internal/proto5server/server_listresource.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/diag"
"github.com/hashicorp/terraform-plugin-framework/internal/fromproto5"
"github.com/hashicorp/terraform-plugin-framework/internal/fwserver"
"github.com/hashicorp/terraform-plugin-framework/internal/logging"
"github.com/hashicorp/terraform-plugin-framework/internal/toproto5"
"github.com/hashicorp/terraform-plugin-framework/list"
"github.com/hashicorp/terraform-plugin-go/tfprotov5"
Expand All @@ -27,6 +28,9 @@ func ListRequestErrorDiagnostics(ctx context.Context, diags ...diag.Diagnostic)
}

func (s *Server) ListResource(ctx context.Context, protoReq *tfprotov5.ListResourceRequest) (*tfprotov5.ListResourceServerStream, error) {
ctx = s.registerContext(ctx)
ctx = logging.InitContext(ctx)

protoStream := &tfprotov5.ListResourceServerStream{Results: tfprotov5.NoListResults}
allDiags := diag.Diagnostics{}

Expand Down
2 changes: 2 additions & 0 deletions internal/proto5server/server_validatelistresourceconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ import (

"github.com/hashicorp/terraform-plugin-framework/internal/fromproto5"
"github.com/hashicorp/terraform-plugin-framework/internal/fwserver"
"github.com/hashicorp/terraform-plugin-framework/internal/logging"
"github.com/hashicorp/terraform-plugin-framework/internal/toproto5"
"github.com/hashicorp/terraform-plugin-go/tfprotov5"
)

// ValidateListResourceConfig satisfies the tfprotov5.ProviderServer interface.
func (s *Server) ValidateListResourceConfig(ctx context.Context, proto5Req *tfprotov5.ValidateListResourceConfigRequest) (*tfprotov5.ValidateListResourceConfigResponse, error) {
ctx = s.registerContext(ctx)
ctx = logging.InitContext(ctx)

fwResp := &fwserver.ValidateListResourceConfigResponse{}

Expand Down
4 changes: 4 additions & 0 deletions internal/proto6server/server_listresource.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/diag"
"github.com/hashicorp/terraform-plugin-framework/internal/fromproto6"
"github.com/hashicorp/terraform-plugin-framework/internal/fwserver"
"github.com/hashicorp/terraform-plugin-framework/internal/logging"
"github.com/hashicorp/terraform-plugin-framework/internal/toproto6"
"github.com/hashicorp/terraform-plugin-framework/list"
"github.com/hashicorp/terraform-plugin-go/tfprotov6"
Expand All @@ -27,6 +28,9 @@ func ListRequestErrorDiagnostics(ctx context.Context, diags ...diag.Diagnostic)
}

func (s *Server) ListResource(ctx context.Context, protoReq *tfprotov6.ListResourceRequest) (*tfprotov6.ListResourceServerStream, error) {
ctx = s.registerContext(ctx)
ctx = logging.InitContext(ctx)

protoStream := &tfprotov6.ListResourceServerStream{Results: tfprotov6.NoListResults}
allDiags := diag.Diagnostics{}

Expand Down
3 changes: 3 additions & 0 deletions internal/proto6server/server_validatelistresourceconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@ package proto6server

import (
"context"

"github.com/hashicorp/terraform-plugin-framework/internal/fromproto6"
"github.com/hashicorp/terraform-plugin-framework/internal/fwserver"
"github.com/hashicorp/terraform-plugin-framework/internal/logging"
"github.com/hashicorp/terraform-plugin-framework/internal/toproto6"
"github.com/hashicorp/terraform-plugin-go/tfprotov6"
)

// ValidateListResourceConfig satisfies the tfprotov6.ProviderServer interface.
func (s *Server) ValidateListResourceConfig(ctx context.Context, proto6Req *tfprotov6.ValidateListResourceConfigRequest) (*tfprotov6.ValidateListResourceConfigResponse, error) {
ctx = s.registerContext(ctx)
ctx = logging.InitContext(ctx)

fwResp := &fwserver.ValidateListResourceConfigResponse{}

Expand Down
Loading