securehttp

package
v0.0.0-...-a423d60 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Caller

type Caller struct {
	Credentials auth.Credentials

	Provider director_http.AuthorizationProvider
	// contains filtered or unexported fields
}

Caller can be used to call secured http endpoints with given credentials

func NewCaller

func NewCaller(config CallerConfig) (*Caller, error)

NewCaller creates a new Caller

func (*Caller) Call

func (c *Caller) Call(req *http.Request) (*http.Response, error)

Call executes a http call with the configured credentials

type CallerConfig

type CallerConfig struct {
	Credentials   auth.Credentials
	ClientTimeout time.Duration

	SkipSSLValidation            bool
	Cache                        credloader.CertCache
	ExternalClientCertSecretName string
}

CallerConfig holds the configuration for Caller

Jump to

Keyboard shortcuts

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