provider

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: Apache-2.0 Imports: 30 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 NewHttpHealthResource

func NewHttpHealthResource() resource.Resource

func NewLocalCommandResource

func NewLocalCommandResource() resource.Resource

func NewTCPEchoResource

func NewTCPEchoResource() resource.Resource

Types

type CheckProviderModel

type CheckProviderModel struct{}

CheckProviderModel describes the provider data model.

type CheckmateProvider

type CheckmateProvider struct {
	// contains filtered or unexported fields
}

CheckmateProvider defines the provider implementation.

func (*CheckmateProvider) Configure

func (*CheckmateProvider) DataSources

func (p *CheckmateProvider) DataSources(ctx context.Context) []func() datasource.DataSource

func (*CheckmateProvider) Metadata

func (*CheckmateProvider) Resources

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

func (*CheckmateProvider) Schema

Schema implements provider.Provider

type CreateFileModel

type CreateFileModel struct {
	Contents            types.String `tfsdk:"contents"`
	Path                types.String `tfsdk:"path"`
	UseWorkingDirectory types.Bool   `tfsdk:"use_working_dir"`
	Name                types.String `tfsdk:"name"`
	CreateDirectory     types.Bool   `tfsdk:"create_directory"`
}

type HttpHealthResource

type HttpHealthResource struct{}

func (*HttpHealthResource) Create

func (*HttpHealthResource) Delete

func (*HttpHealthResource) HealthCheck

func (r *HttpHealthResource) HealthCheck(ctx context.Context, data *HttpHealthResourceModel, diag *diag.Diagnostics)

func (*HttpHealthResource) ImportState

func (*HttpHealthResource) Metadata

func (*HttpHealthResource) Read

func (*HttpHealthResource) Schema

Schema implements resource.Resource

func (*HttpHealthResource) Update

type HttpHealthResourceModel

type HttpHealthResourceModel struct {
	URL                  types.String `tfsdk:"url"`
	Id                   types.String `tfsdk:"id"`
	Method               types.String `tfsdk:"method"`
	Timeout              types.Int64  `tfsdk:"timeout"`
	RequestTimeout       types.Int64  `tfsdk:"request_timeout"`
	Interval             types.Int64  `tfsdk:"interval"`
	StatusCode           types.String `tfsdk:"status_code"`
	ConsecutiveSuccesses types.Int64  `tfsdk:"consecutive_successes"`
	Headers              types.Map    `tfsdk:"headers"`
	IgnoreFailure        types.Bool   `tfsdk:"create_anyway_on_check_failure"`
	Passed               types.Bool   `tfsdk:"passed"`
	RequestBody          types.String `tfsdk:"request_body"`
	ResultBody           types.String `tfsdk:"result_body"`
	CABundle             types.String `tfsdk:"ca_bundle"`
	InsecureTLS          types.Bool   `tfsdk:"insecure_tls"`
	Keepers              types.Map    `tfsdk:"keepers"`
	JSONPath             types.String `tfsdk:"jsonpath"`
	JSONValue            types.String `tfsdk:"json_value"`
}

type LocalCommandResource

type LocalCommandResource struct{}

func (*LocalCommandResource) Create

Create implements resource.Resource

func (*LocalCommandResource) Delete

Delete implements resource.Resource

func (*LocalCommandResource) EnsureFile

func (*LocalCommandResource) ImportState

ImportState implements resource.ResourceWithImportState

func (*LocalCommandResource) Metadata

Metadata implements resource.Resource

func (*LocalCommandResource) Read

Read implements resource.Resource

func (*LocalCommandResource) RunCommand

func (*LocalCommandResource) Schema

Schema implements resource.Resource

func (*LocalCommandResource) Update

Update implements resource.Resource

type LocalCommandResourceModel

type LocalCommandResourceModel struct {
	Id                   types.String     `tfsdk:"id"`
	Command              types.String     `tfsdk:"command"`
	Timeout              types.Int64      `tfsdk:"timeout"`
	CommandTimeout       types.Int64      `tfsdk:"command_timeout"`
	Interval             types.Int64      `tfsdk:"interval"`
	ConsecutiveSuccesses types.Int64      `tfsdk:"consecutive_successes"`
	WorkDir              types.String     `tfsdk:"working_directory"`
	Stdout               types.String     `tfsdk:"stdout"`
	Stderr               types.String     `tfsdk:"stderr"`
	Env                  types.Map        `tfsdk:"env"`
	CreateFile           *CreateFileModel `tfsdk:"create_file"`
	IgnoreFailure        types.Bool       `tfsdk:"create_anyway_on_check_failure"`
	Passed               types.Bool       `tfsdk:"passed"`
	Keepers              types.Map        `tfsdk:"keepers"`
}

type TCPEchoResource

type TCPEchoResource struct{}

func (*TCPEchoResource) Create

Create implements resource.Resource

func (*TCPEchoResource) Delete

Delete implements resource.Resource

func (*TCPEchoResource) ImportState

ImportState implements resource.ResourceWithImportState

func (*TCPEchoResource) Metadata

Metadata implements resource.Resource

func (*TCPEchoResource) Read

Read implements resource.Resource

func (*TCPEchoResource) Schema

Schema implements resource.Resource

func (*TCPEchoResource) TCPEcho

func (r *TCPEchoResource) TCPEcho(ctx context.Context, data *TCPEchoResourceModel, diag *diag.Diagnostics)

func (*TCPEchoResource) Update

Update implements resource.Resource

type TCPEchoResourceModel

type TCPEchoResourceModel struct {
	Id                      types.String `tfsdk:"id"`
	Host                    types.String `tfsdk:"host"`
	Port                    types.Int64  `tfsdk:"port"`
	Message                 types.String `tfsdk:"message"`
	ExpectedMessage         types.String `tfsdk:"expected_message"`
	PersistentResponseRegex types.String `tfsdk:"persistent_response_regex"`
	ExpectWriteFailure      types.Bool   `tfsdk:"expect_write_failure"`
	ConnectionTimeout       types.Int64  `tfsdk:"connection_timeout"`
	SingleAttemptTimeout    types.Int64  `tfsdk:"single_attempt_timeout"`
	Timeout                 types.Int64  `tfsdk:"timeout"`
	Interval                types.Int64  `tfsdk:"interval"`
	ConsecutiveSuccesses    types.Int64  `tfsdk:"consecutive_successes"`
	IgnoreFailure           types.Bool   `tfsdk:"create_anyway_on_check_failure"`
	Passed                  types.Bool   `tfsdk:"passed"`
	Keepers                 types.Map    `tfsdk:"keepers"`
}

Jump to

Keyboard shortcuts

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