# Packages
cdn_services_v1.
# Functions
Create accepts a CreateOpts struct and creates a new CDN service using the values provided.
Delete accepts a service's ID or its URL and deletes the CDN service associated with it.
ExtractServices is a function that takes a ListResult and returns the services' information.
Get retrieves a specific service based on its URL or its unique ID.
List returns a Pager which allows you to iterate over a collection of CDN services.
Update accepts a slice of Patch operations (Insertion, Append, Replacement or Removal) and updates an existing CDN service using the values provided.
# Variables
PathCaching indicates that an update operation is to be performed on a CacheRule.
PathDomains indicates that an update operation is to be performed on a Domain.
PathOrigins indicates that an update operation is to be performed on an Origin.
# Structs
Append is a Patch that requests the addition of a value (Domain, Origin, or CacheRule) to a Service at the end of its respective collection.
CacheRule specifies the TTL rules for the assets under this service.
CreateOpts is the common options struct used in this package's Create operation.
CreateResult represents the result of a Create operation.
DeleteResult represents the result of a Delete operation.
Domain represents a domain used by users to access their website.
Error specifies an error that occurred during the previous service action.
GetResult represents the result of a get operation.
Insertion is a Patch that requests the addition of a value (Domain, Origin, or CacheRule) to a Service at a fixed index.
ListOpts allows the filtering and sorting of paginated collections through the API.
NameReplacement specifically updates the Service name.
Origin specifies a list of origin domains or IP addresses where the original assets are stored.
OriginRule represents a rule that defines when an origin should be accessed.
Path is a JSON pointer location that indicates which service parameter is being added, replaced, or removed.
Removal is a Patch that requests the removal of a service parameter (Domain, Origin, or CacheRule) by index.
Replacement is a Patch that alters a specific service parameter (Domain, Origin, or CacheRule) in-place by index.
Restriction specifies a restriction that defines who can access assets (content from the CDN cache).
RestrictionRule specifies a rule that determines if this restriction should be applied to an asset.
Service represents a CDN service resource.
ServicePage is the page returned by a pager when traversing over a collection of CDN services.
TTLRule specifies a rule that determines if a TTL should be applied to an asset.
UpdateResult represents the result of a Update operation.
# Interfaces
CreateOptsBuilder is the interface options structs have to satisfy in order to be used in the main Create operation in this package.
ListOptsBuilder allows extensions to add additional parameters to the List request.
Patch represents a single update to an existing Service.
# Type aliases
CacheRuleList provides a useful way to perform bulk operations in a single Patch.
DomainList provides a useful way to perform bulk operations in a single Patch.
OriginList provides a useful way to perform bulk operations in a single Patch.
UpdateOpts is a slice of Patches used to update a CDN service.