Skip to content

Commit

Permalink
refactor: Moved the provider.Functions function to this branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
skyzyx committed Mar 8, 2024
1 parent 9310ea7 commit bf3553a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions corefuncprovider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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.")
Expand Down

0 comments on commit bf3553a

Please sign in to comment.