Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewHttpHealthResource() resource.Resource
- func NewLocalCommandResource() resource.Resource
- func NewTCPEchoResource() resource.Resource
- type CheckProviderModel
- type CheckmateProvider
- func (p *CheckmateProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *CheckmateProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *CheckmateProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *CheckmateProvider) Resources(ctx context.Context) []func() resource.Resource
- func (*CheckmateProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type CreateFileModel
- type HttpHealthResource
- func (r *HttpHealthResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *HttpHealthResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *HttpHealthResource) HealthCheck(ctx context.Context, data *HttpHealthResourceModel, diag *diag.Diagnostics)
- func (r *HttpHealthResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *HttpHealthResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *HttpHealthResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (*HttpHealthResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *HttpHealthResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type HttpHealthResourceModel
- type LocalCommandResource
- func (r *LocalCommandResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (*LocalCommandResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *LocalCommandResource) EnsureFile(ctx context.Context, data *LocalCommandResourceModel, diag *diag.Diagnostics)
- func (*LocalCommandResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (*LocalCommandResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (*LocalCommandResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *LocalCommandResource) RunCommand(ctx context.Context, data *LocalCommandResourceModel, diag *diag.Diagnostics)
- func (*LocalCommandResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *LocalCommandResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type LocalCommandResourceModel
- type TCPEchoResource
- func (r *TCPEchoResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (*TCPEchoResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (*TCPEchoResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (*TCPEchoResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (*TCPEchoResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (*TCPEchoResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *TCPEchoResource) TCPEcho(ctx context.Context, data *TCPEchoResourceModel, diag *diag.Diagnostics)
- func (r *TCPEchoResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type TCPEchoResourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHttpHealthResource ¶
func NewLocalCommandResource ¶
func NewTCPEchoResource ¶
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 (p *CheckmateProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*CheckmateProvider) DataSources ¶
func (p *CheckmateProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*CheckmateProvider) Metadata ¶
func (p *CheckmateProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*CheckmateProvider) Resources ¶
func (p *CheckmateProvider) Resources(ctx context.Context) []func() resource.Resource
func (*CheckmateProvider) Schema ¶
func (*CheckmateProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
Schema implements provider.Provider
type CreateFileModel ¶
type HttpHealthResource ¶
type HttpHealthResource struct{}
func (*HttpHealthResource) Create ¶
func (r *HttpHealthResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*HttpHealthResource) Delete ¶
func (r *HttpHealthResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*HttpHealthResource) HealthCheck ¶
func (r *HttpHealthResource) HealthCheck(ctx context.Context, data *HttpHealthResourceModel, diag *diag.Diagnostics)
func (*HttpHealthResource) ImportState ¶
func (r *HttpHealthResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*HttpHealthResource) Metadata ¶
func (r *HttpHealthResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*HttpHealthResource) Read ¶
func (r *HttpHealthResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*HttpHealthResource) Schema ¶
func (*HttpHealthResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
Schema implements resource.Resource
func (*HttpHealthResource) Update ¶
func (r *HttpHealthResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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 ¶
func (r *LocalCommandResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create implements resource.Resource
func (*LocalCommandResource) Delete ¶
func (*LocalCommandResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete implements resource.Resource
func (*LocalCommandResource) EnsureFile ¶
func (r *LocalCommandResource) EnsureFile(ctx context.Context, data *LocalCommandResourceModel, diag *diag.Diagnostics)
func (*LocalCommandResource) ImportState ¶
func (*LocalCommandResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState implements resource.ResourceWithImportState
func (*LocalCommandResource) Metadata ¶
func (*LocalCommandResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata implements resource.Resource
func (*LocalCommandResource) Read ¶
func (*LocalCommandResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read implements resource.Resource
func (*LocalCommandResource) RunCommand ¶
func (r *LocalCommandResource) RunCommand(ctx context.Context, data *LocalCommandResourceModel, diag *diag.Diagnostics)
func (*LocalCommandResource) Schema ¶
func (*LocalCommandResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
Schema implements resource.Resource
func (*LocalCommandResource) Update ¶
func (r *LocalCommandResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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 ¶
func (r *TCPEchoResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create implements resource.Resource
func (*TCPEchoResource) Delete ¶
func (*TCPEchoResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete implements resource.Resource
func (*TCPEchoResource) ImportState ¶
func (*TCPEchoResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState implements resource.ResourceWithImportState
func (*TCPEchoResource) Metadata ¶
func (*TCPEchoResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata implements resource.Resource
func (*TCPEchoResource) Read ¶
func (*TCPEchoResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read implements resource.Resource
func (*TCPEchoResource) Schema ¶
func (*TCPEchoResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
Schema implements resource.Resource
func (*TCPEchoResource) TCPEcho ¶
func (r *TCPEchoResource) TCPEcho(ctx context.Context, data *TCPEchoResourceModel, diag *diag.Diagnostics)
func (*TCPEchoResource) Update ¶
func (r *TCPEchoResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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"` }