Documentation ¶
Overview ¶
Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0
Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0
Index ¶
- func CredentialsValidator() validator.String
- func New(version string) provider.ProviderWithMetaSchema
- func NonEmptyStringValidator() validator.String
- func NonNegativeDurationValidator() validator.String
- type FrameworkProvider
- func (p *FrameworkProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *FrameworkProvider) DataSources(_ context.Context) []func() datasource.DataSource
- func (p *FrameworkProvider) MetaSchema(_ context.Context, _ provider.MetaSchemaRequest, ...)
- func (p *FrameworkProvider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse)
- func (p *FrameworkProvider) Resources(_ context.Context) []func() resource.Resource
- func (p *FrameworkProvider) Schema(_ context.Context, _ provider.SchemaRequest, resp *provider.SchemaResponse)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CredentialsValidator ¶
func New ¶
func New(version string) provider.ProviderWithMetaSchema
New is a helper function to simplify provider server and testing implementation.
func NonEmptyStringValidator ¶
Types ¶
type FrameworkProvider ¶
type FrameworkProvider struct { fwtransport.FrameworkProviderConfig Version string }
FrameworkProvider is the provider implementation.
func (*FrameworkProvider) Configure ¶
func (p *FrameworkProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
Configure prepares an API client for data sources and resources.
func (*FrameworkProvider) DataSources ¶
func (p *FrameworkProvider) DataSources(_ context.Context) []func() datasource.DataSource
DataSources defines the data sources implemented in the provider.
func (*FrameworkProvider) MetaSchema ¶
func (p *FrameworkProvider) MetaSchema(_ context.Context, _ provider.MetaSchemaRequest, resp *provider.MetaSchemaResponse)
MetaSchema returns the provider meta schema.
func (*FrameworkProvider) Metadata ¶
func (p *FrameworkProvider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse)
Metadata returns the provider type name.
func (*FrameworkProvider) Resources ¶
func (p *FrameworkProvider) Resources(_ context.Context) []func() resource.Resource
Resources defines the resources implemented in the provider.
func (*FrameworkProvider) Schema ¶
func (p *FrameworkProvider) Schema(_ context.Context, _ provider.SchemaRequest, resp *provider.SchemaResponse)
Schema defines the provider-level schema for configuration data.
Click to show internal directories.
Click to hide internal directories.