provider

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 52 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessSchemaBlock added in v0.1.5

func AccessSchemaBlock() schema.Block

func CIDRBlockAttributeSchema added in v0.1.5

func CIDRBlockAttributeSchema() schema.NestedAttributeObject

func New

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

func NewClickhouseClusterResource

func NewClickhouseClusterResource() resource.Resource

func NewClickhouseDataSource

func NewClickhouseDataSource() datasource.DataSource

func NewKafkaClusterResource

func NewKafkaClusterResource() resource.Resource

func NewKafkaDataSource

func NewKafkaDataSource() datasource.DataSource

func NewLogsExportResource added in v0.1.13

func NewLogsExportResource() resource.Resource

func NewNetworkConnectionAccepterResource added in v0.1.5

func NewNetworkConnectionAccepterResource() resource.Resource

func NewNetworkConnectionDataSource added in v0.1.5

func NewNetworkConnectionDataSource() datasource.DataSource

func NewNetworkConnectionResource added in v0.1.5

func NewNetworkConnectionResource() resource.Resource

func NewNetworkDataSource

func NewNetworkDataSource() datasource.DataSource

func NewNetworkResource

func NewNetworkResource() resource.Resource

func NewTransferDataSource

func NewTransferDataSource() datasource.DataSource

func NewTransferEndpointResource

func NewTransferEndpointResource() resource.Resource

func NewTransferResource

func NewTransferResource() resource.Resource

func NewWorkbookResource

func NewWorkbookResource() resource.Resource

Types

type AccessModel added in v0.1.5

type AccessModel struct {
	Ipv4CIDRBlocks []*CIDRBlock   `tfsdk:"ipv4_cidr_blocks"`
	Ipv6CIDRBlocks []*CIDRBlock   `tfsdk:"ipv6_cidr_blocks"`
	DataServices   []types.String `tfsdk:"data_services"`
}

type CIDRBlock added in v0.1.5

type CIDRBlock struct {
	Value       types.String `tfsdk:"value"`
	Description types.String `tfsdk:"description"`
}

type ClickhouseClusterResource

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

func (*ClickhouseClusterResource) Configure

func (*ClickhouseClusterResource) Create

func (*ClickhouseClusterResource) Delete

func (*ClickhouseClusterResource) ImportState

func (*ClickhouseClusterResource) Metadata

func (*ClickhouseClusterResource) Read

func (*ClickhouseClusterResource) Schema

func (*ClickhouseClusterResource) Update

type ClickhouseConnectionInfo added in v0.1.4

type ClickhouseConnectionInfo struct {
	Host           types.String `tfsdk:"host"`
	User           types.String `tfsdk:"user"`
	Password       types.String `tfsdk:"password"`
	HttpsPort      types.Int64  `tfsdk:"https_port"`
	TcpPortSecure  types.Int64  `tfsdk:"tcp_port_secure"`
	NativeProtocol types.String `tfsdk:"native_protocol"`
	HttpsUri       types.String `tfsdk:"https_uri"`
	JdbcUri        types.String `tfsdk:"jdbc_uri"`
	OdbcUri        types.String `tfsdk:"odbc_uri"`
}

type ClickhouseDataSource

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

func (*ClickhouseDataSource) Configure

func (*ClickhouseDataSource) Metadata

func (*ClickhouseDataSource) Read

func (*ClickhouseDataSource) Schema

type ClickhouseDataSourceModel

type ClickhouseDataSourceModel struct {
	Id                    types.String              `tfsdk:"id"`
	ProjectID             types.String              `tfsdk:"project_id"`
	Name                  types.String              `tfsdk:"name"`
	Description           types.String              `tfsdk:"description"`
	RegionID              types.String              `tfsdk:"region_id"`
	CloudType             types.String              `tfsdk:"cloud_type"`
	Version               types.String              `tfsdk:"version"`
	ConnectionInfo        *ClickhouseConnectionInfo `tfsdk:"connection_info"`
	PrivateConnectionInfo *ClickhouseConnectionInfo `tfsdk:"private_connection_info"`
}

type Config

type Config struct {
	Credentials *dc.Credentials
	ProjectId   string
	Endpoint    string
	// contains filtered or unexported fields
}

type DoubleCloudProvider

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

DoubleCloudProvider defines the provider implementation.

func (*DoubleCloudProvider) Configure

func (*DoubleCloudProvider) DataSources

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

func (*DoubleCloudProvider) Metadata

func (*DoubleCloudProvider) Resources

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

func (*DoubleCloudProvider) Schema

type DoubleCloudProviderModel

type DoubleCloudProviderModel struct {
	AuthorizedKey types.String `tfsdk:"authorized_key"`
	Endpoint      types.String `tfsdk:"endpoint"`
	TokenURL      types.String `tfsdk:"token_url"`
}

DoubleCloudProviderModel describes the provider data model.

type KafkaClusterConfigModel added in v0.1.13

type KafkaClusterConfigModel struct {
	MessageMaxBytes      types.Int64 `tfsdk:"message_max_bytes"`
	ReplicaFetchMaxBytes types.Int64 `tfsdk:"replica_fetch_max_bytes"`
	LogRetentionBytes    types.Int64 `tfsdk:"log_retention_bytes"`
	LogRetentionHours    types.Int64 `tfsdk:"log_retention_hours"`
	LogRetentionMinutes  types.Int64 `tfsdk:"log_retention_minutes"`
	LogRetentionMs       types.Int64 `tfsdk:"log_retention_ms"`
}

type KafkaClusterModel

type KafkaClusterModel struct {
	Id                    types.String             `tfsdk:"id"`
	ProjectID             types.String             `tfsdk:"project_id"`
	CloudType             types.String             `tfsdk:"cloud_type"`
	RegionID              types.String             `tfsdk:"region_id"`
	Name                  types.String             `tfsdk:"name"`
	Description           types.String             `tfsdk:"description"`
	Version               types.String             `tfsdk:"version"`
	Resources             *KafkaResourcesModel     `tfsdk:"resources"`
	NetworkId             types.String             `tfsdk:"network_id"`
	SchemaRegistry        *schemaRegistryModel     `tfsdk:"schema_registry"`
	Access                *AccessModel             `tfsdk:"access"`
	ConnectionInfo        types.Object             `tfsdk:"connection_info"`
	PrivateConnectionInfo types.Object             `tfsdk:"private_connection_info"`
	Config                *KafkaClusterConfigModel `tfsdk:"config"`
}

type KafkaClusterResource

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

func (*KafkaClusterResource) Configure

func (*KafkaClusterResource) Create

func (*KafkaClusterResource) Delete

func (*KafkaClusterResource) ImportState

func (*KafkaClusterResource) Metadata

func (*KafkaClusterResource) Read

func (*KafkaClusterResource) Schema

func (*KafkaClusterResource) Update

type KafkaConnectionInfo

type KafkaConnectionInfo struct {
	ConnectionString types.String `tfsdk:"connection_string"`
	User             types.String `tfsdk:"user"`
	Password         types.String `tfsdk:"password"`
}

type KafkaDataSource

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

func (*KafkaDataSource) Configure

func (*KafkaDataSource) Metadata

func (*KafkaDataSource) Read

func (*KafkaDataSource) Schema

type KafkaDataSourceModel

type KafkaDataSourceModel struct {
	Id                    types.String         `tfsdk:"id"`
	ProjectID             types.String         `tfsdk:"project_id"`
	Name                  types.String         `tfsdk:"name"`
	Description           types.String         `tfsdk:"description"`
	RegionID              types.String         `tfsdk:"region_id"`
	CloudType             types.String         `tfsdk:"cloud_type"`
	Version               types.String         `tfsdk:"version"`
	ConnectionInfo        *KafkaConnectionInfo `tfsdk:"connection_info"`
	PrivateConnectionInfo *KafkaConnectionInfo `tfsdk:"private_connection_info"`
}

type KafkaResourcesKafkaModel

type KafkaResourcesKafkaModel struct {
	ResourcePresetId types.String `tfsdk:"resource_preset_id"`
	DiskSize         types.Int64  `tfsdk:"disk_size"`
	MaxDiskSize      types.Int64  `tfsdk:"max_disk_size"`
	BrokerCount      types.Int64  `tfsdk:"broker_count"`
	ZoneCount        types.Int64  `tfsdk:"zone_count"`
}

type KafkaResourcesModel

type KafkaResourcesModel struct {
	Kafka KafkaResourcesKafkaModel `tfsdk:"kafka"`
}

type LogExportResource added in v0.1.13

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

func (*LogExportResource) Configure added in v0.1.13

func (*LogExportResource) Create added in v0.1.13

func (*LogExportResource) Delete added in v0.1.13

func (*LogExportResource) ImportState added in v0.1.13

func (*LogExportResource) Metadata added in v0.1.13

func (*LogExportResource) Read added in v0.1.13

func (*LogExportResource) Schema added in v0.1.13

func (*LogExportResource) Update added in v0.1.13

type LogsExportResourceModel added in v0.1.13

type LogsExportResourceModel struct {
	ID          types.String                    `tfsdk:"id"`
	ProjectID   types.String                    `tfsdk:"project_id"`
	Name        types.String                    `tfsdk:"name"`
	Description types.String                    `tfsdk:"description"`
	Sources     []*logExportSourceResourceModel `tfsdk:"sources"`

	S3      *s3LogsExportResourceModel             `tfsdk:"s3"`
	Datadog *datadogLogsExportNetworkResourceModel `tfsdk:"datadog"`
}

func (*LogsExportResourceModel) FromProtobuf added in v0.1.13

func (m *LogsExportResourceModel) FromProtobuf(nc *logs.LogsExport) error

type NetworkConnectionAccepterModel added in v0.1.5

type NetworkConnectionAccepterModel struct {
	ID types.String `tfsdk:"id"`
}

type NetworkConnectionAccepterResource added in v0.1.5

type NetworkConnectionAccepterResource struct {
	NetworkConnectionResource
}

NetworkConnectionAccepterResource is meta resource to provide async work with NetworkConnectionResource

func (*NetworkConnectionAccepterResource) Create added in v0.1.5

func (*NetworkConnectionAccepterResource) Delete added in v0.1.5

func (*NetworkConnectionAccepterResource) Metadata added in v0.1.5

func (*NetworkConnectionAccepterResource) Read added in v0.1.5

func (*NetworkConnectionAccepterResource) Schema added in v0.1.5

func (*NetworkConnectionAccepterResource) Update added in v0.1.5

type NetworkConnectionDataSource added in v0.1.5

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

NetworkConnectionDataSource defines the data source implementation.

func (*NetworkConnectionDataSource) Configure added in v0.1.5

func (*NetworkConnectionDataSource) Metadata added in v0.1.5

func (*NetworkConnectionDataSource) Read added in v0.1.5

func (*NetworkConnectionDataSource) Schema added in v0.1.5

type NetworkConnectionModel added in v0.1.5

type NetworkConnectionModel struct {
	ID          types.String `tfsdk:"id"`
	NetworkID   types.String `tfsdk:"network_id"`
	Description types.String `tfsdk:"description"`

	AWS    *awsNetworkConnectionInfo    `tfsdk:"aws"`
	Google *googleNetworkConnectionInfo `tfsdk:"google"`
	// contains filtered or unexported fields
}

func (*NetworkConnectionModel) FromProtobuf added in v0.1.5

func (m *NetworkConnectionModel) FromProtobuf(nc *network.NetworkConnection) error

func (*NetworkConnectionModel) IsOK added in v0.1.5

func (m *NetworkConnectionModel) IsOK() (bool, string)

func (*NetworkConnectionModel) IsReady added in v0.1.5

func (m *NetworkConnectionModel) IsReady() bool

func (*NetworkConnectionModel) Poll added in v0.1.5

type NetworkConnectionResource added in v0.1.5

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

func (*NetworkConnectionResource) Configure added in v0.1.5

func (*NetworkConnectionResource) Create added in v0.1.5

func (*NetworkConnectionResource) Delete added in v0.1.5

func (*NetworkConnectionResource) ImportState added in v0.1.5

func (*NetworkConnectionResource) Metadata added in v0.1.5

func (*NetworkConnectionResource) Read added in v0.1.5

func (*NetworkConnectionResource) Schema added in v0.1.5

func (*NetworkConnectionResource) Update added in v0.1.5

type NetworkDataSource

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

NetworkDataSource defines the data source implementation.

func (*NetworkDataSource) Configure

func (*NetworkDataSource) Metadata

func (*NetworkDataSource) Read

func (*NetworkDataSource) Schema

type NetworkDataSourceModel

type NetworkDataSourceModel struct {
	Id            types.String `tfsdk:"id"`
	ProjectID     types.String `tfsdk:"project_id"`
	Name          types.String `tfsdk:"name"`
	Description   types.String `tfsdk:"description"`
	RegionID      types.String `tfsdk:"region_id"`
	CloudType     types.String `tfsdk:"cloud_type"`
	Ipv4CidrBlock types.String `tfsdk:"ipv4_cidr_block"`
}

type NetworkResource

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

func (*NetworkResource) Configure

func (*NetworkResource) Create

func (*NetworkResource) Delete

func (*NetworkResource) ImportState

func (*NetworkResource) Metadata

func (*NetworkResource) Read

func (*NetworkResource) Schema

func (*NetworkResource) Update

func (*NetworkResource) ValidateConfig added in v0.1.5

type NetworkResourceModel

type NetworkResourceModel struct {
	Id            types.String `tfsdk:"id"`
	ProjectID     types.String `tfsdk:"project_id"`
	Name          types.String `tfsdk:"name"`
	Description   types.String `tfsdk:"description"`
	RegionID      types.String `tfsdk:"region_id"`
	CloudType     types.String `tfsdk:"cloud_type"`
	Ipv4CidrBlock types.String `tfsdk:"ipv4_cidr_block"`
	Ipv6CidrBlock types.String `tfsdk:"ipv6_cidr_block"`
	IsExternal    types.Bool   `tfsdk:"is_external"`

	AWS *awsExternalNetworkResourceModel    `tfsdk:"aws"`
	GCP *googleExternalNetworkResourceModel `tfsdk:"gcp"`
}

type TransferDataSource

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

func (*TransferDataSource) Configure

func (*TransferDataSource) Metadata

func (*TransferDataSource) Read

func (*TransferDataSource) Schema

type TransferDataSourceModel

type TransferDataSourceModel struct {
	Id          types.String `tfsdk:"id"`
	ProjectID   types.String `tfsdk:"project_id"`
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
	Status      types.String `tfsdk:"status"`
	Type        types.String `tfsdk:"type"`
}

type TransferEndpointModel

type TransferEndpointModel struct {
	Id          types.String      `tfsdk:"id"`
	ProjectID   types.String      `tfsdk:"project_id"`
	Name        types.String      `tfsdk:"name"`
	Description types.String      `tfsdk:"description"`
	Settings    *endpointSettings `tfsdk:"settings"`
}

type TransferEndpointResource

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

func (*TransferEndpointResource) Configure

func (*TransferEndpointResource) Create

func (*TransferEndpointResource) Delete

func (*TransferEndpointResource) ImportState

func (*TransferEndpointResource) Metadata

func (*TransferEndpointResource) Read

func (*TransferEndpointResource) Schema

func (*TransferEndpointResource) Update

type TransferResource

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

func (*TransferResource) Configure

func (*TransferResource) Create

func (*TransferResource) Delete

func (*TransferResource) ImportState

func (*TransferResource) Metadata

func (*TransferResource) Read

func (*TransferResource) Schema

func (*TransferResource) Update

type WorkbookResource

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

func (*WorkbookResource) Configure

func (*WorkbookResource) Create

func (*WorkbookResource) Delete

func (*WorkbookResource) ImportState

func (*WorkbookResource) Metadata

func (*WorkbookResource) Read

func (*WorkbookResource) Schema

func (*WorkbookResource) Update

type WorkbookResourceModel

type WorkbookResourceModel struct {
	Id          types.String `tfsdk:"id"`
	ProjectID   types.String `tfsdk:"project_id"`
	Title       types.String `tfsdk:"title"`
	Config      types.String `tfsdk:"config"`
	Connections types.Set    `tfsdk:"connect"`
}

Jump to

Keyboard shortcuts

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