Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeployCurl ¶
DeployCurl helps deploying a Pod that provides "curl" you must wait for it to be ready
Types ¶
type CurlOpts ¶
type CurlOpts struct { Silent bool Insecure bool Username string Password string Timeout int Verbose bool }
CurlOpts allows specifying arguments to run curl on a pod
type CurlResponse ¶
type CurlResponse struct { HttpVersion string StatusCode int ReasonPhrase string Headers map[string]string Body string Output string }
CurlResponse wraps a response for a curl execution
func Curl ¶
func Curl(kubeClient kubernetes.Interface, config *restclient.Config, ns, podName, url string, opts CurlOpts) (*CurlResponse, error)
Curl runs curl on a given pod (or if empty, it will try to find the service-controller pod and run against it).
Click to show internal directories.
Click to hide internal directories.