database

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckExistance

func CheckExistance(client *mongoclient.MongoClient, name string, diags *diag.Diagnostics) *mongoclient.Database

func CreateResourceId

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

func NewDatabaseDataSource

func NewDatabaseDataSource() datasource.DataSource

func NewDatabaseResource

func NewDatabaseResource() resource.Resource

Types

type DatabaseDataSource

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

DatabaseDataSource defines the data source implementation.

func (*DatabaseDataSource) Configure

func (*DatabaseDataSource) Metadata

func (*DatabaseDataSource) Read

func (*DatabaseDataSource) Schema

type DatabaseDataSourceModel

type DatabaseDataSourceModel struct {
	Id   types.String `tfsdk:"id"`
	Name types.String `tfsdk:"name"`
}

DatabaseDataSourceModel describes the data source data model.

type DatabaseResource

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

DatabaseResource defines the resource implementation.

func (*DatabaseResource) Configure

func (*DatabaseResource) Create

func (*DatabaseResource) Delete

func (*DatabaseResource) ImportState

func (*DatabaseResource) Metadata

func (*DatabaseResource) Read

func (*DatabaseResource) Schema

func (*DatabaseResource) Update

type DatabaseResourceModel

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

DatabaseResourceModel describes the resource data model.

Jump to

Keyboard shortcuts

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