From 5c8fd0b147ed36bf8de08047db232ac2d1ac80d1 Mon Sep 17 00:00:00 2001 From: James Bardin Date: Fri, 8 Dec 2023 14:44:59 -0500 Subject: [PATCH] add grpcwrap function methods to make it compile --- internal/grpcwrap/provider.go | 10 ++++++++++ internal/grpcwrap/provider6.go | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/internal/grpcwrap/provider.go b/internal/grpcwrap/provider.go index 72658f3807..ac6775f7ba 100644 --- a/internal/grpcwrap/provider.go +++ b/internal/grpcwrap/provider.go @@ -393,6 +393,16 @@ func (p *provider) ReadDataSource(_ context.Context, req *tfplugin5.ReadDataSour return resp, nil } +func (p *provider) GetFunctions(context.Context, *tfplugin5.GetFunctions_Request) (*tfplugin5.GetFunctions_Response, error) { + panic("unimplemented") + return nil, nil +} + +func (p *provider) CallFunction(_ context.Context, req *tfplugin5.CallFunction_Request) (*tfplugin5.CallFunction_Response, error) { + panic("unimplemented") + return nil, nil +} + func (p *provider) Stop(context.Context, *tfplugin5.Stop_Request) (*tfplugin5.Stop_Response, error) { resp := &tfplugin5.Stop_Response{} err := p.provider.Stop() diff --git a/internal/grpcwrap/provider6.go b/internal/grpcwrap/provider6.go index 9709c59b89..92984e92c0 100644 --- a/internal/grpcwrap/provider6.go +++ b/internal/grpcwrap/provider6.go @@ -393,6 +393,16 @@ func (p *provider6) ReadDataSource(_ context.Context, req *tfplugin6.ReadDataSou return resp, nil } +func (p *provider6) GetFunctions(context.Context, *tfplugin6.GetFunctions_Request) (*tfplugin6.GetFunctions_Response, error) { + panic("unimplemented") + return nil, nil +} + +func (p *provider6) CallFunction(_ context.Context, req *tfplugin6.CallFunction_Request) (*tfplugin6.CallFunction_Response, error) { + panic("unimplemented") + return nil, nil +} + func (p *provider6) StopProvider(context.Context, *tfplugin6.StopProvider_Request) (*tfplugin6.StopProvider_Response, error) { resp := &tfplugin6.StopProvider_Response{} err := p.provider.Stop()