provider

package
v0.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneClient added in v0.0.4

func CloneClient(ctx context.Context, client *zilliz.Client, data *ClusterResourceModel) (*zilliz.Client, error)

func New

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

func NewCloudProvidersDataSource

func NewCloudProvidersDataSource() datasource.DataSource

func NewCloudRegionsDataSource

func NewCloudRegionsDataSource() datasource.DataSource

func NewClusterDataSource

func NewClusterDataSource() datasource.DataSource

func NewClusterResource

func NewClusterResource() resource.Resource

func NewClustersDataSource

func NewClustersDataSource() datasource.DataSource

func NewProjectDataSource

func NewProjectDataSource() datasource.DataSource

Types

type CloudProviderItem

type CloudProviderItem struct {
	Description types.String `tfsdk:"description"`
	CloudId     types.String `tfsdk:"cloud_id"`
}

CloudProviderDataSourceModel describes the data source data model.

type CloudProvidersDataSource

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

CloudProvidersDataSource defines the data source implementation.

func (*CloudProvidersDataSource) Configure

func (*CloudProvidersDataSource) Metadata

func (*CloudProvidersDataSource) Read

func (*CloudProvidersDataSource) Schema

type CloudProvidersDataSourceModel

type CloudProvidersDataSourceModel struct {
	CloudProviders []CloudProviderItem `tfsdk:"cloud_providers"`
}

CloudProvidersDataSourceModel describes the data source data model.

type CloudRegionItem

type CloudRegionItem struct {
	ApiBaseUrl types.String `tfsdk:"api_base_url"`
	CloudId    types.String `tfsdk:"cloud_id"`
	RegionId   types.String `tfsdk:"region_id"`
}

type CloudRegionsDataSource

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

CloudRegionsDataSource defines the data source implementation.

func (*CloudRegionsDataSource) Configure

func (*CloudRegionsDataSource) Metadata

func (*CloudRegionsDataSource) Read

func (*CloudRegionsDataSource) Schema

type CloudRegionsDataSourceModel

type CloudRegionsDataSourceModel struct {
	CloudRegions []CloudRegionItem `tfsdk:"items"`
	CloudId      types.String      `tfsdk:"cloud_id"`
}

CloudRegionsDataSourceModel describes the data source data model.

type ClusterDataSource

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

ClusterDataSource defines the data source implementation.

func (*ClusterDataSource) Configure

func (*ClusterDataSource) Metadata

func (*ClusterDataSource) Read

func (*ClusterDataSource) Schema

type ClusterDataSourceModel

type ClusterDataSourceModel struct {
	ClusterId          types.String `tfsdk:"id"`
	ClusterName        types.String `tfsdk:"cluster_name"`
	Description        types.String `tfsdk:"description"`
	RegionId           types.String `tfsdk:"region_id"`
	ClusterType        types.String `tfsdk:"cluster_type"`
	CuSize             types.Int64  `tfsdk:"cu_size"`
	Status             types.String `tfsdk:"status"`
	ConnectAddress     types.String `tfsdk:"connect_address"`
	PrivateLinkAddress types.String `tfsdk:"private_link_address"`
	CreateTime         types.String `tfsdk:"create_time"`
}

ClusterDataSourceModel describes the cluster data model.

type ClusterResource

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

ClusterResource defines the resource implementation.

func (*ClusterResource) Configure

func (*ClusterResource) Create

func (*ClusterResource) Delete

func (*ClusterResource) ImportState

func (*ClusterResource) Metadata

func (*ClusterResource) Read

func (*ClusterResource) Schema

func (*ClusterResource) Update

type ClusterResourceModel

type ClusterResourceModel struct {
	ClusterId          types.String   `tfsdk:"id"`
	Plan               types.String   `tfsdk:"plan"`
	ClusterName        types.String   `tfsdk:"cluster_name"`
	CuSize             types.Int64    `tfsdk:"cu_size"`
	CuType             types.String   `tfsdk:"cu_type"`
	ProjectId          types.String   `tfsdk:"project_id"`
	Username           types.String   `tfsdk:"username"`
	Password           types.String   `tfsdk:"password"`
	Prompt             types.String   `tfsdk:"prompt"`
	Description        types.String   `tfsdk:"description"`
	RegionId           types.String   `tfsdk:"region_id"`
	ClusterType        types.String   `tfsdk:"cluster_type"`
	Status             types.String   `tfsdk:"status"`
	ConnectAddress     types.String   `tfsdk:"connect_address"`
	PrivateLinkAddress types.String   `tfsdk:"private_link_address"`
	CreateTime         types.String   `tfsdk:"create_time"`
	Timeouts           timeouts.Value `tfsdk:"timeouts"`
}

ClusterResourceModel describes the resource data model.

type ClustersDataSource

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

ClusterDataSource defines the data source implementation.

func (*ClustersDataSource) Configure

func (*ClustersDataSource) Metadata

func (*ClustersDataSource) Read

func (*ClustersDataSource) Schema

type ClustersDataSourceModel

type ClustersDataSourceModel struct {
	Clusters []ClusterDataSourceModel `tfsdk:"clusters"`
	Id       types.String             `tfsdk:"id"`
}

ClustersDataSourceModel describes the clusters data model.

type ProjectDataSource

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

ProjectDataSource defines the data source implementation.

func (*ProjectDataSource) Configure

func (*ProjectDataSource) Metadata

func (*ProjectDataSource) Read

func (*ProjectDataSource) Schema

type ProjectsDataSourceModel

type ProjectsDataSourceModel struct {
	Id            types.String `tfsdk:"id"`
	Name          types.String `tfsdk:"name"`
	InstanceCount types.Int64  `tfsdk:"instance_count"`
	CreatedAt     types.Int64  `tfsdk:"created_at"`
}

type ZillizProvider

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

ZillizProvider defines the provider implementation.

func (*ZillizProvider) Configure

func (*ZillizProvider) DataSources

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

func (*ZillizProvider) Metadata

func (*ZillizProvider) Resources

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

func (*ZillizProvider) Schema

Jump to

Keyboard shortcuts

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