Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- type WindowsProvider
- func (p *WindowsProvider) ConfigValidators(ctx context.Context) []provider.ConfigValidator
- func (p *WindowsProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *WindowsProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *WindowsProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *WindowsProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *WindowsProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- func (p *WindowsProvider) ValidateConfig(ctx context.Context, req provider.ValidateConfigRequest, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type WindowsProvider ¶
type WindowsProvider struct {
// contains filtered or unexported fields
}
WindowsProvider defines the provider implementation.
func (*WindowsProvider) ConfigValidators ¶
func (p *WindowsProvider) ConfigValidators(ctx context.Context) []provider.ConfigValidator
ConfigValidators define imperative expressions to validate the provider config.
func (*WindowsProvider) Configure ¶
func (p *WindowsProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
Configure sets up the provider client. This includes the connection to the Windows system via WinRM or SSH.
func (*WindowsProvider) DataSources ¶
func (p *WindowsProvider) DataSources(ctx context.Context) []func() datasource.DataSource
DataSources returns the provider data sources. All data sources must be returned as functions.
func (*WindowsProvider) Metadata ¶
func (p *WindowsProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
Metadata returns the provider metadata.
func (*WindowsProvider) Resources ¶
func (p *WindowsProvider) Resources(ctx context.Context) []func() resource.Resource
Resources returns the provider resources. All resources must be returned as functions.
func (*WindowsProvider) Schema ¶
func (p *WindowsProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
Schema returns the provider schema. It includes the schema generated by the terraform-plugin-framework code generator and a given description which is used in the provider documentation.
func (*WindowsProvider) ValidateConfig ¶
func (p *WindowsProvider) ValidateConfig(ctx context.Context, req provider.ValidateConfigRequest, resp *provider.ValidateConfigResponse)
ValidateConfig defines programmatic expressions to validate the provider config.