curl

package
v0.0.72 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2019 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CurlClient

type CurlClient struct {
	// contains filtered or unexported fields
}

func NewCurlClient

func NewCurlClient(
	pivnetClient PivnetClient,
	eh errorhandler.ErrorHandler,
	format string,
	outputWriter io.Writer,
	printer printer.Printer,
) *CurlClient

func (*CurlClient) MakeRequest

func (c *CurlClient) MakeRequest(
	method string,
	data string,
	url string,
) error

type PivnetClient

type PivnetClient interface {
	MakeRequest(method string, url string, expectedResponseCode int, body io.Reader) (*http.Response, error)
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL