Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewExampleDataSource() datasource.DataSource
- func NewHeartbeatMonitorResource() resource.Resource
- func NewHttpMonitorResource() resource.Resource
- func NewNotificationListResource() resource.Resource
- type BaseMonitorModel
- type CronitorProvider
- func (p *CronitorProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *CronitorProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *CronitorProvider) Functions(ctx context.Context) []func() function.Function
- func (p *CronitorProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *CronitorProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *CronitorProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type CronitorProviderModel
- type HeartbeatMonitorModel
- type HeartbeatMonitorResource
- func (r *HeartbeatMonitorResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *HeartbeatMonitorResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *HeartbeatMonitorResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *HeartbeatMonitorResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *HeartbeatMonitorResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *HeartbeatMonitorResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *HeartbeatMonitorResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *HeartbeatMonitorResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- func (r *HeartbeatMonitorResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, ...)
- type HttpMonitorModel
- type HttpMonitorResource
- func (r *HttpMonitorResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *HttpMonitorResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *HttpMonitorResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *HttpMonitorResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *HttpMonitorResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *HttpMonitorResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *HttpMonitorResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *HttpMonitorResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- func (r *HttpMonitorResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, ...)
- type NotificationListDataSource
- func (n *NotificationListDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (n *NotificationListDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *NotificationListDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (n *NotificationListDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type NotificationListModel
- type NotificationListResource
- func (r *NotificationListResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *NotificationListResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *NotificationListResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *NotificationListResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *NotificationListResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *NotificationListResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *NotificationListResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *NotificationListResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- func (r *NotificationListResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExampleDataSource ¶ added in v1.2.0
func NewExampleDataSource() datasource.DataSource
func NewHeartbeatMonitorResource ¶ added in v1.1.0
func NewHttpMonitorResource ¶
func NewNotificationListResource ¶ added in v1.2.0
Types ¶
type BaseMonitorModel ¶
type BaseMonitorModel struct { Key types.String `tfsdk:"key"` Name types.String `tfsdk:"name"` Disabled types.Bool `tfsdk:"disabled"` Paused types.Bool `tfsdk:"paused"` Schedule types.String `tfsdk:"schedule"` Notify types.List `tfsdk:"notify"` ScheduleTolerance types.Int32 `tfsdk:"schedule_tolerance"` FailureTolerance types.Int32 `tfsdk:"failure_tolerance"` GraceSeconds types.Int32 `tfsdk:"grace_seconds"` RealertInterval types.String `tfsdk:"realert_interval"` Timezone types.String `tfsdk:"timezone"` Tags types.List `tfsdk:"tags"` Environments types.List `tfsdk:"environments"` }
type CronitorProvider ¶
type CronitorProvider struct {
// contains filtered or unexported fields
}
ScaffoldingProvider defines the provider implementation.
func (*CronitorProvider) Configure ¶
func (p *CronitorProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*CronitorProvider) DataSources ¶
func (p *CronitorProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*CronitorProvider) Functions ¶
func (p *CronitorProvider) Functions(ctx context.Context) []func() function.Function
func (*CronitorProvider) Metadata ¶
func (p *CronitorProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*CronitorProvider) Resources ¶
func (p *CronitorProvider) Resources(ctx context.Context) []func() resource.Resource
func (*CronitorProvider) Schema ¶
func (p *CronitorProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type CronitorProviderModel ¶
type CronitorProviderModel struct { Endpoint types.String `tfsdk:"endpoint"` ApiKey types.String `tfsdk:"api_key"` }
ScaffoldingProviderModel describes the provider data model.
type HeartbeatMonitorModel ¶ added in v1.1.0
type HeartbeatMonitorModel struct { BaseMonitorModel TelemetryUrl types.String `tfsdk:"telemetry_url"` }
type HeartbeatMonitorResource ¶ added in v1.1.0
type HeartbeatMonitorResource struct {
// contains filtered or unexported fields
}
HeartbeatMonitorResource defines the resource implementation.
func (*HeartbeatMonitorResource) Configure ¶ added in v1.1.0
func (r *HeartbeatMonitorResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*HeartbeatMonitorResource) Create ¶ added in v1.1.0
func (r *HeartbeatMonitorResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*HeartbeatMonitorResource) Delete ¶ added in v1.1.0
func (r *HeartbeatMonitorResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*HeartbeatMonitorResource) ImportState ¶ added in v1.1.0
func (r *HeartbeatMonitorResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*HeartbeatMonitorResource) Metadata ¶ added in v1.1.0
func (r *HeartbeatMonitorResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*HeartbeatMonitorResource) Read ¶ added in v1.1.0
func (r *HeartbeatMonitorResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*HeartbeatMonitorResource) Schema ¶ added in v1.1.0
func (r *HeartbeatMonitorResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*HeartbeatMonitorResource) Update ¶ added in v1.1.0
func (r *HeartbeatMonitorResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
func (*HeartbeatMonitorResource) ValidateConfig ¶ added in v1.1.0
func (r *HeartbeatMonitorResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, resp *resource.ValidateConfigResponse)
type HttpMonitorModel ¶
type HttpMonitorModel struct { BaseMonitorModel Url types.String `tfsdk:"url"` Headers types.Map `tfsdk:"headers"` Cookies types.Map `tfsdk:"cookies"` Body types.String `tfsdk:"body"` Method types.String `tfsdk:"method"` TimeoutSeconds types.Int32 `tfsdk:"timeout_seconds"` Regions types.List `tfsdk:"regions"` FollowRedirects types.Bool `tfsdk:"follow_redirects"` VerifySsl types.Bool `tfsdk:"verify_ssl"` Assertions types.List `tfsdk:"assertions"` }
type HttpMonitorResource ¶
type HttpMonitorResource struct {
// contains filtered or unexported fields
}
HttpMonitorResource defines the resource implementation.
func (*HttpMonitorResource) Configure ¶
func (r *HttpMonitorResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*HttpMonitorResource) Create ¶
func (r *HttpMonitorResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*HttpMonitorResource) Delete ¶
func (r *HttpMonitorResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*HttpMonitorResource) ImportState ¶
func (r *HttpMonitorResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*HttpMonitorResource) Metadata ¶
func (r *HttpMonitorResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*HttpMonitorResource) Read ¶
func (r *HttpMonitorResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*HttpMonitorResource) Schema ¶
func (r *HttpMonitorResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*HttpMonitorResource) Update ¶
func (r *HttpMonitorResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
func (*HttpMonitorResource) ValidateConfig ¶
func (r *HttpMonitorResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, resp *resource.ValidateConfigResponse)
type NotificationListDataSource ¶ added in v1.2.0
type NotificationListDataSource struct {
// contains filtered or unexported fields
}
ExampleDataSource defines the data source implementation.
func (*NotificationListDataSource) Configure ¶ added in v1.2.0
func (n *NotificationListDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*NotificationListDataSource) Metadata ¶ added in v1.2.0
func (n *NotificationListDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*NotificationListDataSource) Read ¶ added in v1.2.0
func (d *NotificationListDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*NotificationListDataSource) Schema ¶ added in v1.2.0
func (n *NotificationListDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type NotificationListModel ¶ added in v1.2.0
type NotificationListResource ¶ added in v1.2.0
type NotificationListResource struct {
// contains filtered or unexported fields
}
NotificationListResource defines the resource implementation.
func (*NotificationListResource) Configure ¶ added in v1.2.0
func (r *NotificationListResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*NotificationListResource) Create ¶ added in v1.2.0
func (r *NotificationListResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*NotificationListResource) Delete ¶ added in v1.2.0
func (r *NotificationListResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*NotificationListResource) ImportState ¶ added in v1.2.0
func (r *NotificationListResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*NotificationListResource) Metadata ¶ added in v1.2.0
func (r *NotificationListResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*NotificationListResource) Read ¶ added in v1.2.0
func (r *NotificationListResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*NotificationListResource) Schema ¶ added in v1.2.0
func (r *NotificationListResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*NotificationListResource) Update ¶ added in v1.2.0
func (r *NotificationListResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
func (*NotificationListResource) ValidateConfig ¶ added in v1.2.0
func (r *NotificationListResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, resp *resource.ValidateConfigResponse)
Click to show internal directories.
Click to hide internal directories.