json

package
v0.0.0-...-34d313d Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(version string) func() provider.Provider

func NewExampleDataSource

func NewExampleDataSource() datasource.DataSource

func NewExampleFunction

func NewExampleFunction() function.Function

func NewExampleResource

func NewExampleResource() resource.Resource

Types

type DataStorage

type DataStorage struct {
	// contains filtered or unexported fields
}

type ExampleDataSource

type ExampleDataSource struct {
	// contains filtered or unexported fields
}

ExampleDataSource defines the data source implementation.

func (*ExampleDataSource) Configure

func (*ExampleDataSource) Metadata

func (*ExampleDataSource) Read

func (*ExampleDataSource) Schema

type ExampleDataSourceModel

type ExampleDataSourceModel struct {
	ConfigurableAttribute types.String `tfsdk:"configurable_attribute"`
	Id                    types.String `tfsdk:"id"`
}

ExampleDataSourceModel describes the data source data model.

type ExampleFunction

type ExampleFunction struct {
	function.Function
}

func (*ExampleFunction) Definition

func (*ExampleFunction) Metadata

func (ExampleFunction) Run

type ExampleResource

type ExampleResource struct {
	// contains filtered or unexported fields
}

ExampleResource defines the resource implementation.

func (*ExampleResource) Configure

func (*ExampleResource) Create

func (*ExampleResource) Delete

func (*ExampleResource) ImportState

func (*ExampleResource) Metadata

func (*ExampleResource) Read

func (*ExampleResource) Schema

func (*ExampleResource) Update

type ExampleResourceModel

type ExampleResourceModel struct {
	ConfigurableAttribute types.String `tfsdk:"configurable_attribute"`
	Defaulted             types.String `tfsdk:"defaulted"`
	Id                    types.String `tfsdk:"id"`
}

ExampleResourceModel describes the resource data model.

type JsonProvider

type JsonProvider struct {
	provider.ProviderWithFunctions
	// contains filtered or unexported fields
}

func (*JsonProvider) Configure

func (p *JsonProvider) Configure(context context.Context, request provider.ConfigureRequest, response *provider.ConfigureResponse)

Configure is called at the beginning of the provider lifecycle, when Terraform sends to the provider the values the user specified in the provider configuration block.

func (*JsonProvider) DataSources

func (p *JsonProvider) DataSources(_ context.Context) []func() datasource.DataSource

DataSources returns a slice of functions to instantiate each DataSource implementation.

func (*JsonProvider) Functions

func (p *JsonProvider) Functions(_ context.Context) []func() function.Function

func (*JsonProvider) Metadata

func (p *JsonProvider) Metadata(context context.Context, request provider.MetadataRequest, response *provider.MetadataResponse)

func (*JsonProvider) Resources

func (p *JsonProvider) Resources(_ context.Context) []func() resource.Resource

Resources returns a slice of functions to instantiate each Resource implementation.

func (*JsonProvider) Schema

func (p *JsonProvider) Schema(context context.Context, request provider.SchemaRequest, response *provider.SchemaResponse)

Schema should return the schema for this provider.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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