collection

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckExistance

func CheckExistance(database *mongoclient.Database, name string, diags *diag.Diagnostics) *mongoclient.Collection

func CreateResourceId

func CreateResourceId(database basetypes.StringValue, name basetypes.StringValue) (basetypes.StringValue, error)

func NewCollectionDataSource

func NewCollectionDataSource() datasource.DataSource

func NewCollectionResource

func NewCollectionResource() resource.Resource

Types

type CollectionDataSource

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

CollectionDataSource defines the data source implementation.

func (*CollectionDataSource) Configure

func (*CollectionDataSource) Metadata

func (*CollectionDataSource) Read

func (*CollectionDataSource) Schema

type CollectionDataSourceModel

type CollectionDataSourceModel struct {
	Id       types.String `tfsdk:"id"`
	Database types.String `tfsdk:"database"`
	Name     types.String `tfsdk:"name"`
}

CollectionDataSourceModel describes the data source data model.

type CollectionResource

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

CollectionResource defines the resource implementation.

func (*CollectionResource) Configure

func (*CollectionResource) Create

func (*CollectionResource) Delete

func (*CollectionResource) ImportState

func (*CollectionResource) Metadata

func (*CollectionResource) Read

func (*CollectionResource) Schema

func (*CollectionResource) Update

type CollectionResourceModel

type CollectionResourceModel struct {
	Id           types.String `tfsdk:"id"`
	Database     types.String `tfsdk:"database"`
	Name         types.String `tfsdk:"name"`
	ForceDestroy types.Bool   `tfsdk:"force_destroy"`
}

CollectionResourceModel describes the resource data model.

Jump to

Keyboard shortcuts

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