provider

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MPL-2.0 Imports: 22 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 NewAlertDataSource

func NewAlertDataSource() datasource.DataSource

func NewAlertResource

func NewAlertResource() resource.Resource

func NewDashboardDataSource

func NewDashboardDataSource() datasource.DataSource

func NewDashboardResource

func NewDashboardResource() resource.Resource

func NewJavascriptFunctionDataSource

func NewJavascriptFunctionDataSource() datasource.DataSource

func NewJavascriptFunctionResource

func NewJavascriptFunctionResource() resource.Resource

func NewMaterializedViewDataSource

func NewMaterializedViewDataSource() datasource.DataSource

func NewMaterializedViewResource

func NewMaterializedViewResource() resource.Resource

func NewRemoteFunctionDataSource

func NewRemoteFunctionDataSource() datasource.DataSource

func NewRemoteFunctionResource

func NewRemoteFunctionResource() resource.Resource

func NewSinkDataSource

func NewSinkDataSource() datasource.DataSource

func NewSinkResource

func NewSinkResource() resource.Resource

func NewSourceDataSource

func NewSourceDataSource() datasource.DataSource

func NewSourceResource

func NewSourceResource() resource.Resource

func NewStreamDataSource

func NewStreamDataSource() datasource.DataSource

func NewStreamResource

func NewStreamResource() resource.Resource

func NewViewDataSource

func NewViewDataSource() datasource.DataSource

func NewViewResource

func NewViewResource() resource.Resource

Types

type TimeplusProvider

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

TimeplusProvider defines the provider implementation.

func (*TimeplusProvider) Configure

func (*TimeplusProvider) DataSources

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

func (*TimeplusProvider) Metadata

func (*TimeplusProvider) Resources

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

func (*TimeplusProvider) Schema

type TimeplusProviderModel

type TimeplusProviderModel struct {
	Endpoint  types.String `tfsdk:"endpoint"`
	Workspace types.String `tfsdk:"workspace"`
	ApiKey    types.String `tfsdk:"api_key"`

	// Ideally we should read this from stream definitions. However, there are 2 limitations
	//   1. Proton cluster (e.g. replica = 3) doesn't allow stream with relicatoin_refactor equals other number (e.g. 2)
	//   2. Proton get/list stream endpoint doesn't return relicatoin_refactor of the stream
	// Thus, we currently define this `replicas` as a provider setting
	Replicas types.Int64 `tfsdk:"replicas"`
}

TimeplusProviderModel describes the provider data model.

Jump to

Keyboard shortcuts

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