Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CanConfigValidators ¶
type CanConfigValidators interface {
ConfigValidators(context.Context) []provider.ConfigValidator
}
CanConfigValidators optional interface to inject config validators method on provider block.
type CanConfigure ¶ added in v0.4.0
type CanConfigure interface {
Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
}
CanConfigure optional interface to inject configure method on provider block.
type CanConfigureGrpc ¶ added in v0.4.0
type CanConfigureGrpc[T any] interface { ConfigureGrpc(ctx context.Context, data T) (grpc.ClientConnInterface, diag.Diagnostics) }
CanConfigureGrpc interface required to inject grpc clients in datasource/ resource blocks. Optional if none of the blocks use grpc clients.
T is the protobuf message generated by protoc-gen-go.
type CanMetaSchema ¶
type CanMetaSchema interface {
MetaSchema(context.Context, provider.MetaSchemaRequest, *provider.MetaSchemaResponse)
}
CanMetaSchema optional interface to inject meta schema method on provider block.
type CanMetadata ¶
type CanMetadata interface {
Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
}
CanMetadata optional interface to inject metadata method on provider block.
type CanSchema ¶
type CanSchema interface {
Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
}
CanSchema optional interface to inject schema method on provider block.
type CanValidateConfig ¶
type CanValidateConfig interface {
ValidateConfig(context.Context, provider.ValidateConfigRequest, *provider.ValidateConfigResponse)
}
CanValidateConfig optional interface to inject validate config method on provider block.
type Provider ¶
type Provider interface { // DataSources method may return a list of datasource generation functions use: // New<...DataSource>(exec) func() datasource.DataSource // from generated package. DataSources(ctx context.Context) []func() datasource.DataSource // Resources method may return a list of resource generation functions use: // New<...Resource>(exec) func() resource.Resource // from generated package. Resources(ctx context.Context) []func() resource.Resource }
Provider required methods on provider block.