generated from deploymenttheory/Template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from deploymenttheory/feature-scaffolding
Updated docs
- Loading branch information
Showing
4 changed files
with
77 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package provider | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/hashicorp/terraform-plugin-framework/datasource" | ||
) | ||
|
||
// DataSources returns a slice of functions that each return a datasource.DataSource. | ||
// This function is a method of the M365Provider type and takes a context.Context as an argument. | ||
// The returned slice is intended to hold the Microsoft 365 provider datasources. | ||
// | ||
// Parameters: | ||
// - ctx: The context for controlling cancellation and timeout. | ||
// | ||
// Returns: | ||
// | ||
// []func() datasource.DataSource: A slice of functions, each returning a datasource.DataSource. | ||
func (p *M365Provider) DataSources(ctx context.Context) []func() datasource.DataSource { | ||
return []func() datasource.DataSource{ | ||
// Add microsoft 365 provider datasources here | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package provider | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/hashicorp/terraform-plugin-framework/resource" | ||
) | ||
|
||
// Resources returns a slice of functions that each return a resource.Resource. | ||
// This function is a method of the M365Provider type and takes a context.Context as an argument. | ||
// The returned slice is intended to hold the Microsoft 365 provider resources. | ||
// | ||
// Parameters: | ||
// - ctx: The context for controlling cancellation and timeout. | ||
// | ||
// Returns: | ||
// | ||
// []func() resource.Resource: A slice of functions, each returning a resource.Resource. | ||
func (p *M365Provider) Resources(ctx context.Context) []func() resource.Resource { | ||
return []func() resource.Resource{ | ||
// Add microsoft 365 provider resources here | ||
} | ||
} |