Documentation ¶
Overview ¶
Manta implements a client for the Joyent Manta API. http://apidocs.joyent.com/manta/index.html.
Included in the package is an incomplete implementation of the CLI Utilities. http://apidocs.joyent.com/manta/commands-reference.html
Index ¶
- Variables
- func Flags() *flag.FlagSet
- type Client
- func (c *Client) Do(method, path string, r io.Reader) (*http.Response, error)
- func (c *Client) Get(path string) (*http.Response, error)
- func (c *Client) NewRequest(method, path string, r io.Reader) (*http.Request, error)
- func (c *Client) Put(path string, r io.Reader) (*http.Response, error)
- func (c *Client) SignRequest(req *http.Request) error
- type Signer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MANTA_USER string MANTA_URL string MANTA_KEY_ID string )
Functions ¶
Types ¶
type Client ¶
type Client struct { User string KeyId string Key string Url string // contains filtered or unexported fields }
Client is a Manta client. Client is not safe for concurrent use.
func DefaultClient ¶
func DefaultClient() *Client
DefaultClient returns a Client instance configured from the default Manta environment variables.
func (*Client) NewRequest ¶
NewRequest is similar to http.NewRequest except it appends path to the API endpoint this client is configured for.
Directories ¶
Path | Synopsis |
---|---|
mget - download an object from Manta.
|
mget - download an object from Manta. |
mls - list directory contents.
|
mls - list directory contents. |
mput - create an object http://apidocs.joyent.com/manta/mput.html
|
mput - create an object http://apidocs.joyent.com/manta/mput.html |
Click to show internal directories.
Click to hide internal directories.