Documentation ¶
Overview ¶
Package fromproto6 contains functions to convert from protocol version 6 (tfprotov6) types to framework types.
Index ¶
- func ApplyResourceChangeRequest(ctx context.Context, proto6 *tfprotov6.ApplyResourceChangeRequest, ...) (*fwserver.ApplyResourceChangeRequest, diag.Diagnostics)
- func Config(ctx context.Context, proto6DynamicValue *tfprotov6.DynamicValue, ...) (*tfsdk.Config, diag.Diagnostics)
- func ConfigureProviderRequest(ctx context.Context, proto6 *tfprotov6.ConfigureProviderRequest, ...) (*tfsdk.ConfigureProviderRequest, diag.Diagnostics)
- func GetProviderSchemaRequest(ctx context.Context, proto6 *tfprotov6.GetProviderSchemaRequest) *fwserver.GetProviderSchemaRequest
- func ImportResourceStateRequest(ctx context.Context, proto6 *tfprotov6.ImportResourceStateRequest, ...) (*fwserver.ImportResourceStateRequest, diag.Diagnostics)
- func Plan(ctx context.Context, proto6DynamicValue *tfprotov6.DynamicValue, ...) (*tfsdk.Plan, diag.Diagnostics)
- func PlanResourceChangeRequest(ctx context.Context, proto6 *tfprotov6.PlanResourceChangeRequest, ...) (*fwserver.PlanResourceChangeRequest, diag.Diagnostics)
- func ProviderMeta(ctx context.Context, proto6DynamicValue *tfprotov6.DynamicValue, ...) (*tfsdk.Config, diag.Diagnostics)
- func ReadDataSourceRequest(ctx context.Context, proto6 *tfprotov6.ReadDataSourceRequest, ...) (*fwserver.ReadDataSourceRequest, diag.Diagnostics)
- func ReadResourceRequest(ctx context.Context, proto6 *tfprotov6.ReadResourceRequest, ...) (*fwserver.ReadResourceRequest, diag.Diagnostics)
- func State(ctx context.Context, proto6DynamicValue *tfprotov6.DynamicValue, ...) (*tfsdk.State, diag.Diagnostics)
- func UpgradeResourceStateRequest(ctx context.Context, proto6 *tfprotov6.UpgradeResourceStateRequest, ...) (*fwserver.UpgradeResourceStateRequest, diag.Diagnostics)
- func ValidateDataSourceConfigRequest(ctx context.Context, proto6 *tfprotov6.ValidateDataResourceConfigRequest, ...) (*fwserver.ValidateDataSourceConfigRequest, diag.Diagnostics)
- func ValidateProviderConfigRequest(ctx context.Context, proto6 *tfprotov6.ValidateProviderConfigRequest, ...) (*fwserver.ValidateProviderConfigRequest, diag.Diagnostics)
- func ValidateResourceConfigRequest(ctx context.Context, proto6 *tfprotov6.ValidateResourceConfigRequest, ...) (*fwserver.ValidateResourceConfigRequest, diag.Diagnostics)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyResourceChangeRequest ¶ added in v0.9.0
func ApplyResourceChangeRequest(ctx context.Context, proto6 *tfprotov6.ApplyResourceChangeRequest, resourceType tfsdk.ResourceType, resourceSchema *tfsdk.Schema, providerMetaSchema *tfsdk.Schema) (*fwserver.ApplyResourceChangeRequest, diag.Diagnostics)
ApplyResourceChangeRequest returns the *fwserver.ApplyResourceChangeRequest equivalent of a *tfprotov6.ApplyResourceChangeRequest.
func Config ¶ added in v0.9.0
func Config(ctx context.Context, proto6DynamicValue *tfprotov6.DynamicValue, schema *tfsdk.Schema) (*tfsdk.Config, diag.Diagnostics)
Config returns the *tfsdk.Config for a *tfprotov6.DynamicValue and *tfsdk.Schema.
func ConfigureProviderRequest ¶ added in v0.9.0
func ConfigureProviderRequest(ctx context.Context, proto6 *tfprotov6.ConfigureProviderRequest, providerSchema *tfsdk.Schema) (*tfsdk.ConfigureProviderRequest, diag.Diagnostics)
ConfigureProviderRequest returns the *fwserver.ConfigureProviderRequest equivalent of a *tfprotov6.ConfigureProviderRequest.
func GetProviderSchemaRequest ¶
func GetProviderSchemaRequest(ctx context.Context, proto6 *tfprotov6.GetProviderSchemaRequest) *fwserver.GetProviderSchemaRequest
GetProviderSchemaRequest returns the *fwserver.GetProviderSchemaRequest equivalent of a *tfprotov6.GetProviderSchemaRequest.
func ImportResourceStateRequest ¶ added in v0.9.0
func ImportResourceStateRequest(ctx context.Context, proto6 *tfprotov6.ImportResourceStateRequest, resourceType tfsdk.ResourceType, resourceSchema *tfsdk.Schema) (*fwserver.ImportResourceStateRequest, diag.Diagnostics)
ImportResourceStateRequest returns the *fwserver.ImportResourceStateRequest equivalent of a *tfprotov6.ImportResourceStateRequest.
func Plan ¶ added in v0.9.0
func Plan(ctx context.Context, proto6DynamicValue *tfprotov6.DynamicValue, schema *tfsdk.Schema) (*tfsdk.Plan, diag.Diagnostics)
Plan returns the *tfsdk.Plan for a *tfprotov6.DynamicValue and *tfsdk.Schema.
func PlanResourceChangeRequest ¶ added in v0.9.0
func PlanResourceChangeRequest(ctx context.Context, proto6 *tfprotov6.PlanResourceChangeRequest, resourceType tfsdk.ResourceType, resourceSchema *tfsdk.Schema, providerMetaSchema *tfsdk.Schema) (*fwserver.PlanResourceChangeRequest, diag.Diagnostics)
PlanResourceChangeRequest returns the *fwserver.PlanResourceChangeRequest equivalent of a *tfprotov6.PlanResourceChangeRequest.
func ProviderMeta ¶ added in v0.9.0
func ProviderMeta(ctx context.Context, proto6DynamicValue *tfprotov6.DynamicValue, schema *tfsdk.Schema) (*tfsdk.Config, diag.Diagnostics)
ProviderMeta returns the *tfsdk.Config for a *tfprotov6.DynamicValue and *tfsdk.Schema. This data handling is different than Config to simplify implementors, in that:
- Missing Schema will return nil, rather than an error
- Missing DynamicValue will return nil typed Value, rather than an error
func ReadDataSourceRequest ¶ added in v0.9.0
func ReadDataSourceRequest(ctx context.Context, proto6 *tfprotov6.ReadDataSourceRequest, dataSourceType tfsdk.DataSourceType, dataSourceSchema *tfsdk.Schema, providerMetaSchema *tfsdk.Schema) (*fwserver.ReadDataSourceRequest, diag.Diagnostics)
ReadDataSourceRequest returns the *fwserver.ReadDataSourceRequest equivalent of a *tfprotov6.ReadDataSourceRequest.
func ReadResourceRequest ¶ added in v0.9.0
func ReadResourceRequest(ctx context.Context, proto6 *tfprotov6.ReadResourceRequest, resourceType tfsdk.ResourceType, resourceSchema *tfsdk.Schema, providerMetaSchema *tfsdk.Schema) (*fwserver.ReadResourceRequest, diag.Diagnostics)
ReadResourceRequest returns the *fwserver.ReadResourceRequest equivalent of a *tfprotov6.ReadResourceRequest.
func State ¶ added in v0.9.0
func State(ctx context.Context, proto6DynamicValue *tfprotov6.DynamicValue, schema *tfsdk.Schema) (*tfsdk.State, diag.Diagnostics)
State returns the *tfsdk.State for a *tfprotov6.DynamicValue and *tfsdk.Schema.
func UpgradeResourceStateRequest ¶ added in v0.9.0
func UpgradeResourceStateRequest(ctx context.Context, proto6 *tfprotov6.UpgradeResourceStateRequest, resourceType tfsdk.ResourceType, resourceSchema *tfsdk.Schema) (*fwserver.UpgradeResourceStateRequest, diag.Diagnostics)
UpgradeResourceStateRequest returns the *fwserver.UpgradeResourceStateRequest equivalent of a *tfprotov6.UpgradeResourceStateRequest.
func ValidateDataSourceConfigRequest ¶ added in v0.9.0
func ValidateDataSourceConfigRequest(ctx context.Context, proto6 *tfprotov6.ValidateDataResourceConfigRequest, dataSourceType tfsdk.DataSourceType, dataSourceSchema *tfsdk.Schema) (*fwserver.ValidateDataSourceConfigRequest, diag.Diagnostics)
ValidateDataSourceConfigRequest returns the *fwserver.ValidateDataSourceConfigRequest equivalent of a *tfprotov6.ValidateDataSourceConfigRequest.
func ValidateProviderConfigRequest ¶ added in v0.9.0
func ValidateProviderConfigRequest(ctx context.Context, proto6 *tfprotov6.ValidateProviderConfigRequest, providerSchema *tfsdk.Schema) (*fwserver.ValidateProviderConfigRequest, diag.Diagnostics)
ValidateProviderConfigRequest returns the *fwserver.ValidateProviderConfigRequest equivalent of a *tfprotov6.ValidateProviderConfigRequest.
func ValidateResourceConfigRequest ¶ added in v0.9.0
func ValidateResourceConfigRequest(ctx context.Context, proto6 *tfprotov6.ValidateResourceConfigRequest, resourceType tfsdk.ResourceType, resourceSchema *tfsdk.Schema) (*fwserver.ValidateResourceConfigRequest, diag.Diagnostics)
ValidateResourceConfigRequest returns the *fwserver.ValidateResourceConfigRequest equivalent of a *tfprotov6.ValidateResourceConfigRequest.
Types ¶
This section is empty.