provider

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MPL-2.0 Imports: 15 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

New is a helper function to simplify provider server and testing implementation.

func NewConnectionDataSource

func NewConnectionDataSource() datasource.DataSource

func NewMonitorDataSource

func NewMonitorDataSource() datasource.DataSource

func NewMonitorResource

func NewMonitorResource() resource.Resource

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 (*ConnectionDataSource) Metadata

func (*ConnectionDataSource) Read

func (*ConnectionDataSource) Schema

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 (*MonitorDataSource) Metadata

func (*MonitorDataSource) Read

func (*MonitorDataSource) Schema

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

Configure adds the provider configured client to the resource.

func (*MonitorResource) Create

Create creates the resource and sets the initial Terraform state.

func (*MonitorResource) Delete

Delete deletes the resource and removes the Terraform state on success.

func (*MonitorResource) ImportState

func (*MonitorResource) Metadata

Metadata returns the resource type name.

func (*MonitorResource) Read

Read refreshes the Terraform state with the latest data.

func (*MonitorResource) Schema

Schema defines the schema for the resource.

func (*MonitorResource) Update

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"`
}

Jump to

Keyboard shortcuts

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