v0.3.1 Latest Latest

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

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



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.



This section is empty.


This section is empty.


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.


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 {

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 "" are valid options for idOrURL.

Jump to

Keyboard shortcuts

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