provider

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSchema added in v1.2.0

func GetSchema() schema.Schema

func New

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

func NewHTTPRequestResource

func NewHTTPRequestResource() resource.Resource

Types

type HTTPProvider

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

HTTPProvider defines the provider implementation.

func (*HTTPProvider) Configure

func (*HTTPProvider) DataSources

func (it *HTTPProvider) DataSources(context.Context) []func() datasource.DataSource

func (*HTTPProvider) Functions

func (it *HTTPProvider) Functions(context.Context) []func() function.Function

func (*HTTPProvider) Metadata

func (*HTTPProvider) Resources

func (it *HTTPProvider) Resources(context.Context) []func() resource.Resource

func (*HTTPProvider) Schema

func (*HTTPProvider) ValidateConfig added in v1.1.0

ValidateConfig At this point "IsUnknown()" is not useful because it is always true in the real apply.

type HTTPProviderModel

type HTTPProviderModel struct {
	URL       types.String `tfsdk:"url" json:"url"`
	BasicAuth types.Object `tfsdk:"basic_auth" json:"basic_auth"`
	IgnoreTLS types.Bool   `tfsdk:"ignore_tls" json:"-"`
}

HTTPProviderModel describes the provider data model.

type HTTPRequestResource

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

HTTPRequestResource defines the resource implementation.

func (*HTTPRequestResource) Configure

func (*HTTPRequestResource) Create

func (*HTTPRequestResource) Delete

func (*HTTPRequestResource) ImportState

func (*HTTPRequestResource) Metadata

func (*HTTPRequestResource) Read

func (*HTTPRequestResource) Schema

func (*HTTPRequestResource) Update

func (*HTTPRequestResource) ValidateConfig added in v1.1.0

type HTTPRequestResourceModel

type HTTPRequestResourceModel struct {
	// parameters
	Method               types.String `tfsdk:"method"`
	Path                 types.String `tfsdk:"path"`
	Headers              types.Map    `tfsdk:"headers"`
	RequestBody          types.String `tfsdk:"request_body"`
	IsResponseBodyJSON   types.Bool   `tfsdk:"is_response_body_json"`
	ResponseBodyIDFilter types.String `tfsdk:"response_body_id_filter"`

	// state
	ID               types.String `tfsdk:"id"`
	ResponseCode     types.Int32  `tfsdk:"response_code"`
	ResponseBody     types.String `tfsdk:"response_body"`
	ResponseBodyID   types.String `tfsdk:"response_body_id"`
	ResponseBodyJSON types.Map    `tfsdk:"response_body_json"`
}

HTTPRequestResourceModel describes the resource data model.

type HTTPRequestResourceModelNative added in v1.1.0

type HTTPRequestResourceModelNative struct {
	// parameters
	Method               string            `json:"method"`
	Path                 string            `json:"path"`
	Headers              map[string]string `json:"headers,omitempty"`
	RequestBody          string            `json:"request_body,omitempty"`
	IsResponseBodyJSON   bool              `json:"is_response_body_json,omitempty"`
	ResponseBodyIDFilter string            `json:"response_body_id_filter,omitempty"`

	// state
	ResponseCode     int32             `json:"response_code"`
	ResponseBody     string            `json:"response_body,omitempty"`
	ResponseBodyID   string            `json:"response_body_id,omitempty"`
	ResponseBodyJSON map[string]string `json:"response_body_json,omitempty"`
}

HTTPRequestResourceModelNative describes the resource data model in a native Go format.

Jump to

Keyboard shortcuts

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