gophercloud: github.com/rackspace/gophercloud/rackspace/objectstorage/v1/bulk Index | Files

package bulk

import "github.com/rackspace/gophercloud/rackspace/objectstorage/v1/bulk"

Package bulk provides functionality for working with bulk operations in the Rackspace Cloud Files service.

Index

Package Files

doc.go requests.go results.go urls.go

type DeleteOpts Uses

type DeleteOpts []string

DeleteOpts is a structure that holds parameters for deleting an object.

func (DeleteOpts) ToBulkDeleteBody Uses

func (opts DeleteOpts) ToBulkDeleteBody() (string, error)

ToBulkDeleteBody formats a DeleteOpts into a request body.

type DeleteOptsBuilder Uses

type DeleteOptsBuilder interface {
    ToBulkDeleteBody() (string, error)
}

DeleteOptsBuilder allows extensions to add additional parameters to the Delete request.

type DeleteRespBody Uses

type DeleteRespBody struct {
    NumberNotFound int      `mapstructure:"Number Not Found"`
    ResponseStatus string   `mapstructure:"Response Status"`
    Errors         []string `mapstructure:"Errors"`
    NumberDeleted  int      `mapstructure:"Number Deleted"`
    ResponseBody   string   `mapstructure:"Response Body"`
}

DeleteRespBody is the form of the response body returned by a bulk delete request.

type DeleteResult Uses

type DeleteResult struct {
    gophercloud.Result
}

DeleteResult represents the result of a bulk delete operation.

func Delete Uses

func Delete(c *gophercloud.ServiceClient, opts DeleteOptsBuilder) DeleteResult

Delete will delete objects or containers in bulk.

func (DeleteResult) ExtractBody Uses

func (dr DeleteResult) ExtractBody() (DeleteRespBody, error)

ExtractBody will extract the body returned by the bulk extract request.

Package bulk imports 4 packages (graph). Updated 2016-07-23. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).