Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewConnectionDataSource() datasource.DataSource
- func NewMonitorDataSource() datasource.DataSource
- func NewMonitorResource() resource.Resource
- type ConnectionDataSource
- func (d *ConnectionDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *ConnectionDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *ConnectionDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *ConnectionDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type ConnectionDataSourceModel
- type MonitorDataSource
- func (d *MonitorDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *MonitorDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *MonitorDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *MonitorDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type MonitorDataSourceModel
- type MonitorResource
- func (r *MonitorResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *MonitorResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *MonitorResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *MonitorResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *MonitorResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *MonitorResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *MonitorResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *MonitorResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type MonitorResourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConnectionDataSource ¶
func NewConnectionDataSource() datasource.DataSource
func NewMonitorDataSource ¶
func NewMonitorDataSource() datasource.DataSource
func NewMonitorResource ¶
NewOrderResource is a helper function to simplify the provider implementation.
Types ¶
type ConnectionDataSource ¶
type ConnectionDataSource struct {
// contains filtered or unexported fields
}
ConnectionDataSource defines the data source implementation.
func (*ConnectionDataSource) Configure ¶
func (d *ConnectionDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*ConnectionDataSource) Metadata ¶
func (d *ConnectionDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*ConnectionDataSource) Read ¶
func (d *ConnectionDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*ConnectionDataSource) Schema ¶
func (d *ConnectionDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type ConnectionDataSourceModel ¶
type ConnectionDataSourceModel struct { Name types.String `tfsdk:"name"` ConnectionId types.String `tfsdk:"id"` Type types.String `tfsdk:"type"` IsEnabled types.Bool `tfsdk:"is_enabled"` UpdatedAt types.String `tfsdk:"updated_at"` CreatedAt types.String `tfsdk:"created_at"` Status types.String `tfsdk:"status"` }
type MonitorDataSource ¶
type MonitorDataSource struct {
// contains filtered or unexported fields
}
MonitorDataSource defines the data source implementation.
func (*MonitorDataSource) Configure ¶
func (d *MonitorDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*MonitorDataSource) Metadata ¶
func (d *MonitorDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*MonitorDataSource) Read ¶
func (d *MonitorDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*MonitorDataSource) Schema ¶
func (d *MonitorDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type MonitorDataSourceModel ¶
type MonitorDataSourceModel struct { ConnectionId types.String `tfsdk:"connection_id"` MonitorId types.String `tfsdk:"monitor_id"` Type types.String `tfsdk:"type"` CronTab types.String `tfsdk:"cron_tab"` IsEnabled types.Bool `tfsdk:"is_enabled"` AbsolutePath types.String `tfsdk:"absolute_path"` UpdatedAt types.String `tfsdk:"updated_at"` CreatedAt types.String `tfsdk:"created_at"` }
type MonitorResource ¶
type MonitorResource struct {
// contains filtered or unexported fields
}
MonitorResource is the resource implementation.
func (*MonitorResource) Configure ¶
func (r *MonitorResource) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure adds the provider configured client to the resource.
func (*MonitorResource) Create ¶
func (r *MonitorResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates the resource and sets the initial Terraform state.
func (*MonitorResource) Delete ¶
func (r *MonitorResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the resource and removes the Terraform state on success.
func (*MonitorResource) ImportState ¶
func (r *MonitorResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*MonitorResource) Metadata ¶
func (r *MonitorResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the resource type name.
func (*MonitorResource) Read ¶
func (r *MonitorResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (*MonitorResource) Schema ¶
func (r *MonitorResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the resource.
func (*MonitorResource) Update ¶
func (r *MonitorResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update updates the resource and sets the updated Terraform state on success.
type MonitorResourceModel ¶
type MonitorResourceModel struct { ConnectionId types.String `tfsdk:"connection_id"` MonitorId types.String `tfsdk:"monitor_id"` Type types.String `tfsdk:"type"` CronTab types.String `tfsdk:"cron_tab"` AbsolutePath types.String `tfsdk:"absolute_path"` EntityType types.String `tfsdk:"entity_type"` UpdatedAt types.String `tfsdk:"updated_at"` CreatedAt types.String `tfsdk:"created_at"` }