serviceassets

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: Apache-2.0 Imports: 2 Imported by: 1

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

This section is empty.

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

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

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.

Directories

Path Synopsis
cdn_serviceassets_v1
cdn_serviceassets_v1

Jump to

Keyboard shortcuts

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