Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoHTTPProbe ¶
func DoHTTPProbe(url string, payload *rolloutv1alpha1.RolloutWebhookReview, client HTTPClientInterface) probe.Result
DoHTTPProbe checks if a POST request to the url succeeds. If the HTTP response code is successful (i.e. code == 200 or 201), it returns Success. If the HTTP response code is unsuccessful or HTTP communication fails, it returns Failure. This is exported because some other packages may want to do direct HTTP probes.
func New ¶
func New(config rolloutv1alpha1.WebhookClientConfig) probe.WebhookProber
New creates Prober that will skip TLS verification while probing.
func NewTestHTTPServer ¶
NewTestHTTPServer mock http server
Types ¶
Click to show internal directories.
Click to hide internal directories.