Documentation ¶
Index ¶
- func CheckExistance(client *mongoclient.MongoClient, name string, diags *diag.Diagnostics) *mongoclient.Database
- func CreateResourceId(name basetypes.StringValue) (basetypes.StringValue, error)
- func NewDatabaseDataSource() datasource.DataSource
- func NewDatabaseResource() resource.Resource
- type DatabaseDataSource
- func (d *DatabaseDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *DatabaseDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *DatabaseDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *DatabaseDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type DatabaseDataSourceModel
- type DatabaseResource
- func (r *DatabaseResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *DatabaseResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *DatabaseResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *DatabaseResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *DatabaseResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *DatabaseResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *DatabaseResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *DatabaseResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type DatabaseResourceModel
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 ¶
Types ¶
type DatabaseDataSource ¶
type DatabaseDataSource struct {
// contains filtered or unexported fields
}
DatabaseDataSource defines the data source implementation.
func (*DatabaseDataSource) Configure ¶
func (d *DatabaseDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*DatabaseDataSource) Metadata ¶
func (d *DatabaseDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*DatabaseDataSource) Read ¶
func (d *DatabaseDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*DatabaseDataSource) Schema ¶
func (d *DatabaseDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
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 (r *DatabaseResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*DatabaseResource) Create ¶
func (r *DatabaseResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*DatabaseResource) Delete ¶
func (r *DatabaseResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*DatabaseResource) ImportState ¶
func (r *DatabaseResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*DatabaseResource) Metadata ¶
func (r *DatabaseResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*DatabaseResource) Read ¶
func (r *DatabaseResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*DatabaseResource) Schema ¶
func (r *DatabaseResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*DatabaseResource) Update ¶
func (r *DatabaseResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Click to show internal directories.
Click to hide internal directories.