provider

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(version string) func() provider.Provider

func NewExampleDataSource added in v1.2.0

func NewExampleDataSource() datasource.DataSource

func NewHeartbeatMonitorResource added in v1.1.0

func NewHeartbeatMonitorResource() resource.Resource

func NewHttpMonitorResource

func NewHttpMonitorResource() resource.Resource

func NewNotificationListResource added in v1.2.0

func NewNotificationListResource() resource.Resource

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 (*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 (*CronitorProvider) Resources

func (p *CronitorProvider) Resources(ctx context.Context) []func() resource.Resource

func (*CronitorProvider) Schema

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 (*HeartbeatMonitorResource) Create added in v1.1.0

func (*HeartbeatMonitorResource) Delete added in v1.1.0

func (*HeartbeatMonitorResource) ImportState added in v1.1.0

func (*HeartbeatMonitorResource) Metadata added in v1.1.0

func (*HeartbeatMonitorResource) Read added in v1.1.0

func (*HeartbeatMonitorResource) Schema added in v1.1.0

func (*HeartbeatMonitorResource) Update added in v1.1.0

func (*HeartbeatMonitorResource) ValidateConfig added in v1.1.0

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 (*HttpMonitorResource) Create

func (*HttpMonitorResource) Delete

func (*HttpMonitorResource) ImportState

func (*HttpMonitorResource) Metadata

func (*HttpMonitorResource) Read

func (*HttpMonitorResource) Schema

func (*HttpMonitorResource) Update

func (*HttpMonitorResource) ValidateConfig

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 (*NotificationListDataSource) Metadata added in v1.2.0

func (*NotificationListDataSource) Read added in v1.2.0

func (*NotificationListDataSource) Schema added in v1.2.0

type NotificationListModel added in v1.2.0

type NotificationListModel struct {
	Name      types.String `tfsdk:"name"`
	Key       types.String `tfsdk:"key"`
	Emails    types.List   `tfsdk:"emails"`
	Slack     types.List   `tfsdk:"slack"`
	Pagerduty types.List   `tfsdk:"pagerduty"`
	Phones    types.List   `tfsdk:"phones"`
	Webhooks  types.List   `tfsdk:"webhooks"`
}

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 (*NotificationListResource) Create added in v1.2.0

func (*NotificationListResource) Delete added in v1.2.0

func (*NotificationListResource) ImportState added in v1.2.0

func (*NotificationListResource) Metadata added in v1.2.0

func (*NotificationListResource) Read added in v1.2.0

func (*NotificationListResource) Schema added in v1.2.0

func (*NotificationListResource) Update added in v1.2.0

func (*NotificationListResource) ValidateConfig added in v1.2.0

Jump to

Keyboard shortcuts

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