{"modulePath":"github.com/hyperhq/hypernetes","version":"v1.3.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package webhook\n\nPackage webhook implements a generic HTTP webhook plugin.\n\n## Types\n\n```go\ntype GenericWebhook struct {\n\tRestClient *restclient.RESTClient\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewGenericWebhook(kubeConfigFile string, groupVersions []unversioned.GroupVersion, initialBackoff time.Duration) (*GenericWebhook, error)\n```\nNew creates a new GenericWebhook from the provided kubeconfig file.\n\n```go\nfunc (g *GenericWebhook) WithExponentialBackoff(webhookFn func() restclient.Result) restclient.Result\n```\nWithExponentialBackoff will retry webhookFn 5 times w/ exponentially increasing backoff when a 429 or a 5xx response code is returned.\n\n","path":"github.com/hyperhq/hypernetes/plugin/pkg/webhook","name":"webhook","synopsis":"Package webhook implements a generic HTTP webhook plugin.","isRedistributable":true}
