provider

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const TerraformProviderProductUserAgent = "terraform-provider-terracurl"

Variables

This section is empty.

Functions

func Provider

func Provider() *schema.Provider

Types

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}
var (
	Client HTTPClient
)

func NewTLSClient added in v1.0.0

func NewTLSClient(certFile, keyFile, caCert, caDir string, insecureSkipVerify bool, useDefaultClient bool) (HTTPClient, error)

type RequestData

type RequestData struct {
	Url               string
	Method            string
	RequestBody       []byte
	Headers           map[string]string
	RequestParameters map[string]string
}

type ResponseData

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

type TLSClient added in v1.0.0

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

func (*TLSClient) Do added in v1.0.0

func (tc *TLSClient) Do(req *http.Request) (*http.Response, error)

type TlsConfig added in v1.0.0

type TlsConfig struct {
	CertFile        string
	KeyFile         string
	CaCertFile      string
	CaCertDirectory string
	SkipTlsVerify   bool
}

Jump to

Keyboard shortcuts

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