Documentation
¶
Overview ¶
Package toproto6 contains functions to convert from framework types to protocol version 6 (tfprotov6) types.
Index ¶
- func Block(ctx context.Context, name string, path *tftypes.AttributePath, b tfsdk.Block) (*tfprotov6.SchemaNestedBlock, error)
- func Diagnostics(diagnostics diag.Diagnostics) []*tfprotov6.Diagnostic
- func GetProviderSchemaResponse(ctx context.Context, fw *fwserver.GetProviderSchemaResponse) *tfprotov6.GetProviderSchemaResponse
- func Schema(ctx context.Context, s *tfsdk.Schema) (*tfprotov6.Schema, error)
- func SchemaAttribute(ctx context.Context, name string, path *tftypes.AttributePath, ...) (*tfprotov6.SchemaAttribute, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Block ¶
func Block(ctx context.Context, name string, path *tftypes.AttributePath, b tfsdk.Block) (*tfprotov6.SchemaNestedBlock, error)
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 Diagnostics ¶
func Diagnostics(diagnostics diag.Diagnostics) []*tfprotov6.Diagnostic
Diagnostics converts the diagnostics into the tfprotov6 collection type.
func GetProviderSchemaResponse ¶
func GetProviderSchemaResponse(ctx context.Context, fw *fwserver.GetProviderSchemaResponse) *tfprotov6.GetProviderSchemaResponse
GetProviderSchemaResponse returns the *tfprotov6.GetProviderSchemaResponse equivalent of a *fwserver.GetProviderSchemaResponse.
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.
Types ¶
This section is empty.