kubernetes/vendor/github.com/libopenstorage/openstorage/api/client/client.go

var httpCache

var cacheLock

// NewClient returns a new REST client for specified server.
func NewClient(host, version, userAgent string) (*Client, error) {}

// NewAuthClient returns a new REST client for specified server.
func NewAuthClient(host, version, authstring, accesstoken, userAgent string) (*Client, error) {}

// GetUnixServerPath returns a unix domain socket prepended with the
// provided path.
func GetUnixServerPath(socketName string, paths ...string) string {}

type Client

// Status sends a Status request at the /status REST endpoint.
func (c *Client) Status() (*Status, error) {}

// Versions send a request at the /versions REST endpoint.
func (c *Client) Versions(endpoint string) ([]string, error) {}

// Get returns a Request object setup for GET call.
func (c *Client) Get() *Request {}

// Post returns a Request object setup for POST call.
func (c *Client) Post() *Request {}

// Put returns a Request object setup for PUT call.
func (c *Client) Put() *Request {}

// Delete returns a Request object setup for DELETE call.
func (c *Client) Delete() *Request {}

func unix2HTTP(u *url.URL) {}

func newHTTPClient(
	u *url.URL,
	tlsConfig *tls.Config,
	timeout time.Duration,
	responseTimeout time.Duration,
) *http.Client {}

func getHTTPClient(host string) *http.Client {}