bulk

package
v0.4.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2015 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteOpts

type DeleteOpts []string

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

func (DeleteOpts) ToBulkDeleteBody

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

ToBulkDeleteBody formats a DeleteOpts into a request body.

type DeleteOptsBuilder

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

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

type DeleteRespBody

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

type DeleteResult struct {
	gophercloud.Result
}

DeleteResult represents the result of a bulk delete operation.

func Delete

Delete will delete objects or containers in bulk.

func (DeleteResult) ExtractBody

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

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

Jump to

Keyboard shortcuts

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