client

package
v0.0.0-...-b787089 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2016 License: MPL-2.0 Imports: 8 Imported by: 163

Documentation

Index

Constants

View Source
const (
	// The HTTP request methods.
	GET    = "GET"
	POST   = "POST"
	PUT    = "PUT"
	DELETE = "DELETE"
	HEAD   = "HEAD"
	COPY   = "COPY"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	SendRequest(method, apiCall, rfc1123Date string, request *joyenthttp.RequestData, response *joyenthttp.ResponseData) (err error)
	// MakeServiceURL prepares a full URL to a service endpoint, with optional
	// URL parts. It uses the first endpoint it can find for the given service type.
	MakeServiceURL(parts []string) string
	SignURL(path string, expires time.Time) (string, error)
}

Client implementations sends service requests to the JoyentCloud.

func NewClient

func NewClient(baseURL, apiVersion string, credentials *auth.Credentials, logger *log.Logger) Client

Jump to

Keyboard shortcuts

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