blob: 2dfde7dca3cb623a46cd25efe07f884e386f3507 [file] [log] [blame]
Jon Perritt85ed5232015-01-16 09:14:51 -07001package base
2
Jon Perritt12395212016-02-24 10:41:17 -06003import "github.com/gophercloud/gophercloud"
Jon Perritt85ed5232015-01-16 09:14:51 -07004
5// HomeDocument is a resource that contains all the resources for the CDN API.
6type HomeDocument map[string]interface{}
7
8// GetResult represents the result of a Get operation.
9type GetResult struct {
10 gophercloud.Result
11}
12
13// Extract is a function that accepts a result and extracts a home document resource.
14func (r GetResult) Extract() (*HomeDocument, error) {
Jon Perritt12395212016-02-24 10:41:17 -060015 var s HomeDocument
16 err := r.ExtractInto(&s)
17 return &s, err
Jon Perritt85ed5232015-01-16 09:14:51 -070018}
19
20// PingResult represents the result of a Ping operation.
21type PingResult struct {
22 gophercloud.ErrResult
23}