httpcall

package
v0.0.0-...-1b7b844 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(ctx context.Context, client *http.Client, opts Options) (*http.Response, error)

func HTTPClientForEndpoint

func HTTPClientForEndpoint(authn *Endpoint) (*http.Client, error)

Types

type Endpoint

type Endpoint struct {
	ServerURL                string
	ProxyURL                 string
	CertificateAuthorityData string
	ClientCertificateData    string
	ClientKeyData            string
	Token                    string
	Username                 string
	Password                 string
	Insecure                 bool
	Debug                    bool
}

func (*Endpoint) HasBasicAuth

func (ep *Endpoint) HasBasicAuth() bool

HasBasicAuth returns whether the configuration has basic authentication or not.

func (*Endpoint) HasCA

func (ep *Endpoint) HasCA() bool

HasCA returns whether the configuration has a certificate authority or not.

func (*Endpoint) HasCertAuth

func (ep *Endpoint) HasCertAuth() bool

HasCertAuth returns whether the configuration has certificate authentication or not.

func (*Endpoint) HasTokenAuth

func (ep *Endpoint) HasTokenAuth() bool

HasTokenAuth returns whether the configuration has token authentication or not.

type Options

type Options struct {
	API      *finopsdatatypes.API
	Endpoint *Endpoint
	DS       map[string]any
}

Jump to

Keyboard shortcuts

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