From bf3553a77433b497e6e1d98a717552d38dfd2032 Mon Sep 17 00:00:00 2001 From: Ryan Parman Date: Fri, 8 Mar 2024 09:04:09 -0700 Subject: [PATCH] refactor: Moved the provider.Functions function to this branch. --- corefuncprovider/provider.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/corefuncprovider/provider.go b/corefuncprovider/provider.go index e3411aa..d04f844 100644 --- a/corefuncprovider/provider.go +++ b/corefuncprovider/provider.go @@ -20,6 +20,7 @@ import ( "strings" "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/function" "github.com/hashicorp/terraform-plugin-framework/provider" "github.com/hashicorp/terraform-plugin-framework/provider/schema" "github.com/hashicorp/terraform-plugin-framework/resource" @@ -122,6 +123,13 @@ func (p *coreFuncProvider) DataSources(ctx context.Context) []func() datasource. } } +// Functions defines the functions implemented in the provider. +func (p *coreFuncProvider) Functions(ctx context.Context) []func() function.Function { + return []func() function.Function{ + StrSnakeFunction, + } +} + // Resources defines the resources implemented in the provider. func (p *coreFuncProvider) Resources(ctx context.Context) []func() resource.Resource { tflog.Debug(ctx, "Running Provider Resources method.")