Documentation ¶
Overview ¶
Package services provides information and interaction with the services API resource in the Rackspace CDN service. This API resource allows for listing, creating, updating, retrieving, and deleting services.
A service represents an application that has its content cached to the edge nodes.
Index ¶
- func Create(c *gophercloud.ServiceClient, opts os.CreateOptsBuilder) os.CreateResult
- func Delete(c *gophercloud.ServiceClient, id string) os.DeleteResult
- func Get(c *gophercloud.ServiceClient, id string) os.GetResult
- func List(c *gophercloud.ServiceClient, opts os.ListOptsBuilder) pagination.Pager
- func Update(c *gophercloud.ServiceClient, id string, patches []os.Patch) os.UpdateResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(c *gophercloud.ServiceClient, opts os.CreateOptsBuilder) os.CreateResult
Create accepts a CreateOpts struct and creates a new CDN service using the values provided.
func Delete ¶
func Delete(c *gophercloud.ServiceClient, id string) os.DeleteResult
Delete accepts a unique ID and deletes the CDN service associated with it.
func Get ¶
func Get(c *gophercloud.ServiceClient, id string) os.GetResult
Get retrieves a specific service based on its unique ID.
func List ¶
func List(c *gophercloud.ServiceClient, opts os.ListOptsBuilder) pagination.Pager
List returns a Pager which allows you to iterate over a collection of CDN services. It accepts a ListOpts struct, which allows for pagination via marker and limit.
func Update ¶
func Update(c *gophercloud.ServiceClient, id string, patches []os.Patch) os.UpdateResult
Update accepts a UpdateOpts struct and updates an existing CDN service using the values provided.
Types ¶
This section is empty.