Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertError ¶
ConvertError converts generic HTTP error in JSON format returned by Pipeline API
Types ¶
type CurlCommand ¶
type CurlCommand []string
CurlCommand contains exec.Command compatible slice + helpers
func GetCurlCommand ¶
func GetCurlCommand(req *http.Request, insecureSkipVerify bool) (*CurlCommand, error)
GetCurlCommand returns a CurlCommand corresponding to an http.Request
func (*CurlCommand) String ¶
func (c *CurlCommand) String() string
String returns a ready to copy/paste command
Click to show internal directories.
Click to hide internal directories.