package
0.0.0-20221205081027-fb1d94189521
Repository: https://github.com/ti-net2/apiserver.git
Documentation: pkg.go.dev

# Functions

DefaultRetryBackoffWithInitialDelay returns the default backoff parameters for webhook retry from a given initial delay.
DefaultShouldRetry is a default implementation for the GenericWebhook ShouldRetry function property.
NewClientManager creates a clientManager.
NewDefaultAuthenticationInfoResolver generates an AuthenticationInfoResolver that builds rest.Config based on the kubeconfig file.
NewDefaultAuthenticationInfoResolverWrapper builds a default authn resolver wrapper.
NewDefaultServiceResolver creates a new default server resolver.
NewGenericWebhook creates a new GenericWebhook from the provided kubeconfig file.
No description provided by the author
ValidateWebhookURL validates webhook's URL.
WithExponentialBackoff will retry webhookFn up to 5 times with exponentially increasing backoff when it returns an error for which shouldRetry returns true, confirming it to be retriable.

# Structs

AuthenticationInfoResolverDelegator implements AuthenticationInfoResolver.
ClientConfig defines parameters required for creating a hook client.
ClientConfigService defines service discovery parameters of the webhook.
ClientManager builds REST clients to talk to webhooks.
ErrCallingWebhook is returned for transport-layer errors calling webhooks.
ErrWebhookRejection represents a webhook properly rejecting a request.
GenericWebhook defines a generic client for webhooks with commonly used capabilities, such as retry requests.

# Interfaces

AuthenticationInfoResolver builds rest.Config base on the server or service name and service namespace.
ServiceResolver knows how to convert a service reference into an actual location.

# Type aliases

AuthenticationInfoResolverWrapper can be used to inject Dial function to the rest.Config generated by the resolver.