helper

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: MPL-2.0 Imports: 1 Imported by: 2

Documentation

Overview

Package helper contains schema.Schema helper functions. This package is designed similarly to the terraform/helper/schema package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataSourceSchemaFromResourceSchema

func DataSourceSchemaFromResourceSchema(rs map[string]*schema.Schema) map[string]*schema.Schema

DataSourceSchemaFromResourceSchema copies the schema map from a resource for use in a data source. In this way, the attributes of the data source and resource definitions are always in-sync and reduces errors associated with redefining and matching the schema's between the two. This also enables a data source full access to the properties of the associated resource for use in other resources.

When copying the schema definition, the struct attributes are modified for use with schema.Type and schema.Description left unmodified.

Types

This section is empty.

Jump to

Keyboard shortcuts

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