index

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2025 License: MPL-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateResourceId

func CreateResourceId(database basetypes.StringValue, collection basetypes.StringValue, index basetypes.StringValue) (basetypes.StringValue, error)

func IsDirection added in v0.1.5

func IsDirection() validator.Int64

func NewIndexDataSource

func NewIndexDataSource() datasource.DataSource

func NewIndexResource

func NewIndexResource() resource.Resource

Types

type IndexDataSource

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

IndexDataSource defines the data source implementation.

func (*IndexDataSource) Configure

func (*IndexDataSource) Metadata

func (*IndexDataSource) Read

func (*IndexDataSource) Schema

type IndexDataSourceModel

type IndexDataSourceModel struct {
	Id         types.String `tfsdk:"id"`
	Database   types.String `tfsdk:"database"`
	Collection types.String `tfsdk:"collection"`
	IndexName  types.String `tfsdk:"index_name"`
	Field      types.String `tfsdk:"field"`
	Direction  types.Int64  `tfsdk:"direction"`
	Unique     types.Bool   `tfsdk:"unique"`
}

IndexDataSourceModel describes the data source data model.

type IndexResource

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

IndexResource defines the resource implementation.

func (*IndexResource) Configure

func (*IndexResource) Create

func (*IndexResource) Delete

func (*IndexResource) ImportState

func (*IndexResource) Metadata

func (*IndexResource) Read

func (*IndexResource) Schema

func (*IndexResource) Update

type IndexResourceModel

type IndexResourceModel struct {
	Id           types.String `tfsdk:"id"`
	Database     types.String `tfsdk:"database"`
	Collection   types.String `tfsdk:"collection"`
	IndexName    types.String `tfsdk:"index_name"`
	Field        types.String `tfsdk:"field"`
	Direction    types.Int64  `tfsdk:"direction"`
	Unique       types.Bool   `tfsdk:"unique"`
	ForceDestroy types.Bool   `tfsdk:"force_destroy"`
}

IndexResourceModel describes the resource data model.

Jump to

Keyboard shortcuts

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