v0.2.0 Latest Latest

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

Go to latest
Published: May 30, 2014 License: Apache-2.0 Imports: 4 Imported by: 0




This section is empty.


This section is empty.


func ExtractMetadata

func ExtractMetadata(gr GetResult) map[string]string

ExtractMetadata is a function that takes a GetResult (of type *http.Response) and returns the custom metatdata associated with the account.

func Update

func Update(c *storage.Client, opts UpdateOpts) error

Update is a function that creates, updates, or deletes an account's metadata.


type GetOpts

type GetOpts struct {
	Headers map[string]string

GetOpts is a structure that contains parameters for getting an account's metadata.

type GetResult

type GetResult *http.Response

GetResult is a *http.Response that is returned from a call to the Get function.

func Get

func Get(c *storage.Client, opts GetOpts) (GetResult, error)

Get is a function that retrieves an account's metadata. To extract just the custom metadata, pass the GetResult response to the ExtractMetadata function.

type UpdateOpts

type UpdateOpts struct {
	Metadata map[string]string
	Headers  map[string]string

UpdateOpts is a structure that contains parameters for updating, creating, or deleting an account's metadata.

Jump to

Keyboard shortcuts

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