Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewCloneResource() resource.Resource
- func NewSnapshotsDataSource() datasource.DataSource
- type CloneResource
- func (r *CloneResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *CloneResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *CloneResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *CloneResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *CloneResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *CloneResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *CloneResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *CloneResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type CloneResourceModel
- type DBLabProvider
- func (p *DBLabProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *DBLabProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *DBLabProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *DBLabProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *DBLabProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type DBLabProviderModel
- type DBLabSnapshot
- type SnapshotsDataSource
- func (d *SnapshotsDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *SnapshotsDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *SnapshotsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *SnapshotsDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type SnapshotsDataSourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCloneResource ¶
func NewSnapshotsDataSource ¶
func NewSnapshotsDataSource() datasource.DataSource
Types ¶
type CloneResource ¶
type CloneResource struct {
// contains filtered or unexported fields
}
CloneResource defines the resource implementation.
func (*CloneResource) Configure ¶
func (r *CloneResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*CloneResource) Create ¶
func (r *CloneResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*CloneResource) Delete ¶
func (r *CloneResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*CloneResource) ImportState ¶
func (r *CloneResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*CloneResource) Metadata ¶
func (r *CloneResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*CloneResource) Read ¶
func (r *CloneResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*CloneResource) Schema ¶
func (r *CloneResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*CloneResource) Update ¶
func (r *CloneResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type CloneResourceModel ¶
type CloneResourceModel struct { Id types.String `tfsdk:"id"` SnapshotId types.String `tfsdk:"snapshot_id"` Protected types.Bool `tfsdk:"protected"` DatabaseUsername types.String `tfsdk:"database_username"` DatabasePassword types.String `tfsdk:"database_password"` Port types.String `tfsdk:"port"` DatabaseName types.String `tfsdk:"database_name"` }
CloneResourceModel describes the resource data model.
type DBLabProvider ¶
type DBLabProvider struct {
// contains filtered or unexported fields
}
DBLabProvider defines the provider implementation.
func (*DBLabProvider) Configure ¶
func (p *DBLabProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*DBLabProvider) DataSources ¶
func (p *DBLabProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*DBLabProvider) Metadata ¶
func (p *DBLabProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*DBLabProvider) Resources ¶
func (p *DBLabProvider) Resources(ctx context.Context) []func() resource.Resource
func (*DBLabProvider) Schema ¶
func (p *DBLabProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type DBLabProviderModel ¶
type DBLabProviderModel struct { Endpoint types.String `tfsdk:"endpoint"` VerificationToken types.String `tfsdk:"verification_token"` }
DBLabProviderModel describes the provider data model.
type DBLabSnapshot ¶
type SnapshotsDataSource ¶
type SnapshotsDataSource struct {
// contains filtered or unexported fields
}
SnapshotsDataSource defines the data source implementation.
func (*SnapshotsDataSource) Configure ¶
func (d *SnapshotsDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*SnapshotsDataSource) Metadata ¶
func (d *SnapshotsDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*SnapshotsDataSource) Read ¶
func (d *SnapshotsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*SnapshotsDataSource) Schema ¶
func (d *SnapshotsDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type SnapshotsDataSourceModel ¶
type SnapshotsDataSourceModel struct {
Snapshots []DBLabSnapshot `tfsdk:"snapshots"`
}
SnapshotsDataSourceModel describes the data source data model.
Click to show internal directories.
Click to hide internal directories.