package serviceassets

import "k8s.io/kubernetes/Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/cdn/v1/serviceassets"

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

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.

Source Files

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

Version
v1.1.8
Published
Feb 23, 2016
Platform
linux/amd64
Imports
6 packages
Last checked
12 seconds ago

Tools for package owners.