package
0.0.0-20240228095742-a1344517f04d
Repository: https://github.com/tsundata/flowline.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
DefaultServerURL converts a host, host:port, or URL string to the default base server API path to use with a Client at a given API version following the standard conventions for a Kubernetes API.
DefaultUserAgent returns a User-Agent string built from static global vars.
DefaultVersionedAPIPath constructs the default path for the given group version, assuming the given API path, following the standard conventions of the Kubernetes API.
HTTPClientFor returns an http.Client that will provide the authentication or transport level security defined by the provided Config.
NewClientErrorReporter will respond with valid v1.Status objects that report unexpected server responses.
No description provided by the author
NewRequestWithClient creates a Request with an embedded RESTClient for use in test scenarios.
NewRESTClient creates a new RESTClient.
No description provided by the author
RESTClientForConfigAndClient returns a RESTClient that satisfies the requested attributes on a client Config object.
# Structs
No description provided by the author
Config holds the common attributes that can be passed to a Kubernetes client on initialization.
No description provided by the author
ErrorReporter converts generic errors into runtime.Object errors without requiring the caller to take a dependency on meta/v1 (where Status lives).
ImpersonationConfig has all the available impersonation options.
NoBackoff is a stub implementation, can be used for mocking or else as a default.
No description provided by the author
No description provided by the author
Result contains the result of calling Request.Do().
RetryAfter holds information associated with the next retry.
URLBackoff struct implements the semantics on top of Backoff which we need for URL specific exponential backoff.
# Interfaces
No description provided by the author
HTTPClient is an interface for testing a request object.
No description provided by the author
ResponseWrapper is an interface for getting a response.
WithRetry allows the client to retry a request up to a certain number of times Note that WithRetry is not safe for concurrent use by multiple goroutines without additional locking or coordination.
# Type aliases
IsRetryableErrorFunc allows the client to provide its own function that determines whether the specified err from the server is retryable.