provider

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: Apache-2.0 Imports: 31 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 NewEndpointResource

func NewEndpointResource() resource.Resource

func NewFilterDataSource added in v0.6.0

func NewFilterDataSource() datasource.DataSource

NewFilterDataSource returns a new instance of the data source.

func NewStreamResource added in v0.6.0

func NewStreamResource() resource.Resource

Types

type EndpointResource

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

EndpointResource defines the resource implementation.

func (*EndpointResource) Configure

func (*EndpointResource) Create

func (*EndpointResource) Delete

func (*EndpointResource) ImportState

func (*EndpointResource) Metadata

func (*EndpointResource) ModifyPlan added in v0.3.0

func (*EndpointResource) Read

func (*EndpointResource) Schema

func (*EndpointResource) Update

type EndpointResourceModel

type EndpointResourceModel struct {
	Label    types.String `tfsdk:"label"`
	Chain    types.String `tfsdk:"chain"`
	Network  types.String `tfsdk:"network"`
	Url      types.String `tfsdk:"url"`
	Id       types.String `tfsdk:"id"`
	Security types.Object `tfsdk:"security"`
}

EndpointResourceModel describes the resource data model.

type EndpointResourceSecurityToken

type EndpointResourceSecurityToken struct {
	Id    types.String
	Token types.String
}

type FilterDataSource added in v0.6.0

type FilterDataSource struct{}

FilterDataSource implements datasource.DataSource.

func (*FilterDataSource) Metadata added in v0.6.0

Metadata returns the data source type name.

func (*FilterDataSource) Read added in v0.6.0

Read reads the data source.

func (*FilterDataSource) Schema added in v0.6.0

Schema defines the schema for the data source.

type FilterDataSourceModel added in v0.6.0

type FilterDataSourceModel struct {
	FilePath      types.String `tfsdk:"file_path"`
	FilterCode    types.String `tfsdk:"filter_code"`
	Base64Encoded types.String `tfsdk:"base64_encoded"`
}

FilterDataSourceModel describes the data structure.

type OptionalFields added in v0.6.0

type OptionalFields struct {
	EndRange            *int
	FixBlockReorgs      *float32
	KeepDistanceFromTip *float32
	NotificationEmail   *string
	FilterFunction      *string
}

OptionalFields represents optional fields that can be null or have values.

type QuickNodeData added in v0.4.0

type QuickNodeData struct {
	Client        quicknode.ClientWithResponsesInterface
	StreamsClient streams.ClientWithResponsesInterface
	Chains        []quicknode.Chain
	ApiKey        string
}

QuickNodeData is provided in the DataSourceData and ResourceData to be made accessible by data and resources.

type QuickNodeProvider

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

QuickNodeProvider defines the provider implementation.

func (*QuickNodeProvider) Configure

func (*QuickNodeProvider) DataSources

func (p *QuickNodeProvider) DataSources(ctx context.Context) []func() datasource.DataSource

func (*QuickNodeProvider) Functions

func (p *QuickNodeProvider) Functions(ctx context.Context) []func() function.Function

func (*QuickNodeProvider) Metadata

func (*QuickNodeProvider) Resources

func (p *QuickNodeProvider) Resources(ctx context.Context) []func() resource.Resource

func (*QuickNodeProvider) Schema

type QuickNodeProviderModel

type QuickNodeProviderModel struct {
	Endpoint          types.String `tfsdk:"endpoint"`
	ApiKey            types.String `tfsdk:"apikey"`
	RequestsPerSecond types.Int64  `tfsdk:"requests_per_second"`
}

QuickNodeProviderModel describes the provider data model.

type StreamResource added in v0.6.0

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

func (*StreamResource) Configure added in v0.6.0

func (*StreamResource) Create added in v0.6.0

func (*StreamResource) Delete added in v0.6.0

func (*StreamResource) ImportState added in v0.6.0

func (*StreamResource) Metadata added in v0.6.0

func (*StreamResource) Read added in v0.6.0

func (*StreamResource) Schema added in v0.6.0

func (*StreamResource) Update added in v0.6.0

type StreamResourceModel added in v0.6.0

type StreamResourceModel struct {
	Id                    types.String `tfsdk:"id"`
	Name                  types.String `tfsdk:"name"`
	Network               types.String `tfsdk:"network"`
	Dataset               types.String `tfsdk:"dataset"`
	StartRange            types.Int64  `tfsdk:"start_range"`
	EndRange              types.Int64  `tfsdk:"end_range"`
	DatasetBatchSize      types.Int64  `tfsdk:"dataset_batch_size"`
	IncludeStreamMetadata types.String `tfsdk:"include_stream_metadata"`
	Destination           types.String `tfsdk:"destination"`
	Status                types.String `tfsdk:"status"`
	ElasticBatchEnabled   types.Bool   `tfsdk:"elastic_batch_enabled"`
	Region                types.String `tfsdk:"region"`
	FixBlockReorgs        types.Int64  `tfsdk:"fix_block_reorgs"`
	KeepDistanceFromTip   types.Int64  `tfsdk:"keep_distance_from_tip"`
	NotificationEmail     types.String `tfsdk:"notification_email"`
	DestinationAttributes types.Object `tfsdk:"destination_attributes"`
	FilterFunction        types.String `tfsdk:"filter_function"`
}

StreamResourceModel represents the Terraform state structure.

Jump to

Keyboard shortcuts

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