gophercloud: Index | Files

package accounts

import ""

Package accounts provides information and interaction with the account API resource for the Rackspace Cloud Files service.


Package Files

delegate.go doc.go

func Get Uses

func Get(c *gophercloud.ServiceClient) os.GetResult

Get is a function that retrieves an account's metadata. To extract just the custom metadata, call the ExtractMetadata method on the GetResult. To extract all the headers that are returned (including the metadata), call the ExtractHeader method on the GetResult.

func Update Uses

func Update(c *gophercloud.ServiceClient, opts os.UpdateOptsBuilder) os.UpdateResult

Update will update an account's metadata with the Metadata in the UpdateOptsBuilder.

type UpdateOpts Uses

type UpdateOpts struct {
    Metadata    map[string]string
    TempURLKey  string `h:"X-Account-Meta-Temp-URL-Key"`
    TempURLKey2 string `h:"X-Account-Meta-Temp-URL-Key-2"`

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

func (UpdateOpts) ToAccountUpdateMap Uses

func (opts UpdateOpts) ToAccountUpdateMap() (map[string]string, error)

ToAccountUpdateMap formats an UpdateOpts into a map[string]string of headers.

Package accounts imports 2 packages (graph) and is imported by 2 packages. Updated 2016-07-23. Refresh now. Tools for package owners.