provider

package
v0.0.0-...-b4628b8 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTLSTransport

func GetTLSTransport(insecure bool) http.RoundTripper

GetTLSTransport Get a TLS transport instance, that skips verification if configured via environment variables.

func NewTracingTransport

func NewTracingTransport(ctx context.Context, inner http.RoundTripper) *tracingTransport

func Provider

func Provider(version string, testing bool) *schema.Provider

Provider -

Types

type APIClient

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

APIClient Hold the API Client and any relevant configuration

type TestingTransport

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

TestingTransport Transport used for testing, always returns a 400 Response

func NewTestingTransport

func NewTestingTransport(inner http.RoundTripper) *TestingTransport

NewTestingTransport Get a HTTP Transport that fails all requests

func (*TestingTransport) RoundTrip

func (tt *TestingTransport) RoundTrip(r *http.Request) (*http.Response, error)

RoundTrip HTTP Transport

Source Files

Jump to

Keyboard shortcuts

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