util

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveFinalizerOnInstanceNotFound

func RemoveFinalizerOnInstanceNotFound(finalizer string,
	machine *v1alpha1.Machine,
	provider *cloudprovidertypes.ProviderData) (bool, error)

RemoveFinalizerOnInstanceNotFound checks whether a finalizer exists and removes it on demand.

Types

type HTTPClientConfig added in v1.14.3

type HTTPClientConfig struct {
	// LogPrefix is pre-pended to request/response logs
	LogPrefix string
	// Global timeout used by the client
	Timeout time.Duration
}

func (HTTPClientConfig) New added in v1.14.3

func (c HTTPClientConfig) New() http.Client

New return a custom HTTP client that allows for logging HTTP request and response information.

type LogRoundTripper added in v1.14.3

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

LogRoundTripper is used to log information about requests and responses that may be useful for debugging purposes. Note that setting log level >5 results in full dumps of requests and responses, including sensitive invormation (e.g. Authorization header).

func (*LogRoundTripper) RoundTrip added in v1.14.3

func (lrt *LogRoundTripper) RoundTrip(request *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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