Documentation

Overview

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

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    func Get

      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

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

        Types

        type UpdateOpts

        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

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

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

            Source Files