package base
import "k8s.io/kubernetes/Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/cdn/v1/base"
Package base provides information and interaction with the base API resource in the OpenStack CDN service. This API resource allows for retrieving the Home Document and pinging the root URL.
Index ¶
- func HandleGetSuccessfully(t *testing.T)
- func HandlePingSuccessfully(t *testing.T)
- type GetResult
- func Get(c *gophercloud.ServiceClient) GetResult
- func (r GetResult) Extract() (*HomeDocument, error)
- type HomeDocument
- type PingResult
Functions ¶
func HandleGetSuccessfully ¶
HandleGetSuccessfully creates an HTTP handler at `/` on the test handler mux that responds with a `Get` response.
func HandlePingSuccessfully ¶
HandlePingSuccessfully creates an HTTP handler at `/ping` on the test handler mux that responds with a `Ping` response.
Types ¶
type GetResult ¶
type GetResult struct { gophercloud.Result }
GetResult represents the result of a Get operation.
func Get ¶
func Get(c *gophercloud.ServiceClient) GetResult
Get retrieves the home document, allowing the user to discover the entire API.
func (GetResult) Extract ¶
func (r GetResult) Extract() (*HomeDocument, error)
Extract is a function that accepts a result and extracts a home document resource.
type HomeDocument ¶
type HomeDocument map[string]interface{}
HomeDocument is a resource that contains all the resources for the CDN API.
type PingResult ¶
type PingResult struct { gophercloud.ErrResult }
PingResult represents the result of a Ping operation.
func Ping ¶
func Ping(c *gophercloud.ServiceClient) PingResult
Ping retrieves a ping to the server.
Source Files ¶
doc.go fixtures.go requests.go results.go urls.go
- Version
- v0.13.1
- Published
- Mar 17, 2015
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 3 minutes ago –
Tools for package owners.