serviceassets

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2015 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package serviceassets provides information and interaction with the serviceassets API resource in the OpenStack CDN service. This API resource allows for deleting cached assets.

A service distributes assets across the network. Service assets let you interrogate properties about these assets and perform certain actions on them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleDeleteCDNAssetSuccessfully

func HandleDeleteCDNAssetSuccessfully(t *testing.T)

HandleDeleteCDNAssetSuccessfully creates an HTTP handler at `/services/{id}/assets` on the test handler mux that responds with a `Delete` response.

Types

type DeleteOpts

type DeleteOpts struct {
	// If all is set to true, specifies that the delete occurs against all of the
	// assets for the service.
	All bool `q:"all"`
	// Specifies the relative URL of the asset to be deleted.
	URL string `q:"url"`
}

DeleteOpts is a structure that holds options for deleting CDN service assets.

func (DeleteOpts) ToCDNAssetDeleteParams

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

ToCDNAssetDeleteParams formats a DeleteOpts into a query string.

type DeleteOptsBuilder

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

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

type DeleteResult

type DeleteResult struct {
	gophercloud.ErrResult
}

DeleteResult represents the result of a Delete operation.

func Delete

Delete accepts a unique service ID or URL and deletes the CDN service asset associated with it. For example, both "96737ae3-cfc1-4c72-be88-5d0e7cc9a3f0" and "https://global.cdn.api.rackspacecloud.com/v1.0/services/96737ae3-cfc1-4c72-be88-5d0e7cc9a3f0" are valid options for idOrURL.

Jump to

Keyboard shortcuts

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