toproto6

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2022 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package toproto6 contains functions to convert from framework types to protocol version 6 (tfprotov6) types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyResourceChangeResponse added in v0.9.0

ApplyResourceChangeResponse returns the *tfprotov6.ApplyResourceChangeResponse equivalent of a *fwserver.ApplyResourceChangeResponse.

func Block

Block returns the *tfprotov6.SchemaNestedBlock equivalent of a Block. Errors will be tftypes.AttributePathErrors based on `path`. `name` is the name of the attribute.

func Config added in v0.9.0

Config returns the *tfprotov6.DynamicValue for a *tfsdk.Config.

func ConfigureProviderResponse added in v0.9.0

ConfigureProviderResponse returns the *tfprotov6.ConfigureProviderResponse equivalent of a *fwserver.ConfigureProviderResponse.

func DiagnosticSeverity added in v0.9.0

func DiagnosticSeverity(s diag.Severity) tfprotov6.DiagnosticSeverity

DiagnosticSeverity converts diag.Severity into tfprotov6.DiagnosticSeverity.

func Diagnostics

func Diagnostics(diagnostics diag.Diagnostics) []*tfprotov6.Diagnostic

Diagnostics converts the diagnostics into the tfprotov6 collection type.

func GetProviderSchemaResponse

GetProviderSchemaResponse returns the *tfprotov6.GetProviderSchemaResponse equivalent of a *fwserver.GetProviderSchemaResponse.

func ImportResourceStateResponse added in v0.9.0

ImportResourceStateResponse returns the *tfprotov6.ImportResourceStateResponse equivalent of a *fwserver.ImportResourceStateResponse.

func ImportedResource added in v0.9.0

ImportedResource returns the *tfprotov6.ImportedResource equivalent of a *fwserver.ImportedResource.

func PlanResourceChangeResponse added in v0.9.0

PlanResourceChangeResponse returns the *tfprotov6.PlanResourceChangeResponse equivalent of a *fwserver.PlanResourceChangeResponse.

func ReadDataSourceResponse added in v0.9.0

ReadDataSourceResponse returns the *tfprotov6.ReadDataSourceResponse equivalent of a *fwserver.ReadDataSourceResponse.

func ReadResourceResponse added in v0.9.0

ReadResourceResponse returns the *tfprotov6.ReadResourceResponse equivalent of a *fwserver.ReadResourceResponse.

func Schema

func Schema(ctx context.Context, s *tfsdk.Schema) (*tfprotov6.Schema, error)

Schema returns the *tfprotov6.Schema equivalent of a Schema.

func SchemaAttribute

func SchemaAttribute(ctx context.Context, name string, path *tftypes.AttributePath, a tfsdk.Attribute) (*tfprotov6.SchemaAttribute, error)

SchemaAttribute returns the *tfprotov6.SchemaAttribute equivalent of an Attribute. Errors will be tftypes.AttributePathErrors based on `path`. `name` is the name of the attribute.

func State added in v0.9.0

State returns the *tfprotov6.DynamicValue for a *tfsdk.State.

func UpgradeResourceStateResponse added in v0.9.0

UpgradeResourceStateResponse returns the *tfprotov6.UpgradeResourceStateResponse equivalent of a *fwserver.UpgradeResourceStateResponse.

func ValidateDataSourceConfigResponse added in v0.9.0

ValidateDataSourceConfigResponse returns the *tfprotov6.ValidateDataSourceConfigResponse equivalent of a *fwserver.ValidateDataSourceConfigResponse.

func ValidateProviderConfigResponse added in v0.9.0

ValidateProviderConfigResponse returns the *tfprotov6.ValidateProviderConfigResponse equivalent of a *fwserver.ValidateProviderConfigResponse.

func ValidateResourceConfigResponse added in v0.9.0

ValidateResourceConfigResponse returns the *tfprotov6.ValidateResourceConfigResponse equivalent of a *fwserver.ValidateResourceConfigResponse.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL