Documentation ¶
Index ¶
- func Delete(c *storage.Client, opts DeleteOpts) error
- func ExtractMetadata(gr GetResult) map[string]string
- func ExtractNames(lr ListResult) ([]string, error)
- func Update(c *storage.Client, opts UpdateOpts) error
- type Container
- type CreateOpts
- type DeleteOpts
- type GetOpts
- type GetResult
- type ListOpts
- type ListResult
- type UpdateOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
func Delete(c *storage.Client, opts DeleteOpts) error
Delete is a function that deletes a container.
func ExtractMetadata ¶
ExtractMetadata is a function that takes a GetResult (of type *http.Response) and returns the custom metadata associated with the container.
func ExtractNames ¶
func ExtractNames(lr ListResult) ([]string, error)
ExtractNames is a function that takes a ListResult (of type *http.Response) and returns the containers' names.
Types ¶
type Container ¶
type Container map[string]interface{}
Container is a structure that holds information related to a storage container.
func Create ¶
func Create(c *storage.Client, opts CreateOpts) (Container, error)
Create is a function that creates a new container.
func ExtractInfo ¶
func ExtractInfo(lr ListResult) ([]Container, error)
ExtractInfo is a function that takes a ListResult (of type *http.Response) and returns the containers' information.
type CreateOpts ¶
CreateOpts is a structure that holds parameters for creating a container.
type DeleteOpts ¶
DeleteOpts is a structure that holds parameters for deleting a container.
type ListResult ¶
ListResult is a *http.Response that is returned from a call to the List function.
func List ¶
func List(c *storage.Client, opts ListOpts) (ListResult, error)
List is a function that retrieves all objects in a container. It also returns the details for the account. To extract just the container information or names, pass the ListResult response to the ExtractInfo or ExtractNames function, respectively.