modulepackage
0.0.0-20230727134852-2e9f020229f4
Repository: https://github.com/simplesurance/bunny-go.git
Documentation: pkg.go.dev
# README
bunny-go
This project is discontinued.
# Functions
NewClient returns a new bunny.net API client.
WithHTTPRequestLogger is an option to log all sent out HTTP-Request via a log function.
WithHTTPResponseLogger is an option to log all received HTTP-Responses via a log function.
WithLogger is an option to set a log function to which informal and warning messages will be logged.
WithUserAgent is an option to specify the value of the User-Agent HTTP Header.
# Constants
AccessKeyHeaderKey is the name of the HTTP header that contains the Bunny API key.
BaseURL is the base URL of the Bunny CDN HTTP API.
DefaultPaginationPage is the default value that is used for PaginationOptions.Page if it is unset.
DefaultPaginationPerPage is the default value that is used for PaginationOptions.PerPage if it is unset.
DefaultUserAgent is the default value of the sent HTTP User-Agent header.
Constants for the Type field of a DNS Record.
Constants for the Type field of a DNS Record.
Constants for the Type field of a DNS Record.
Constants for the Type field of a DNS Record.
Constants for the Type field of a DNS Record.
Constants for the Type field of a DNS Record.
Constants for the Type field of a DNS Record.
Bunny.NET Pull Zone custom record.
Bunny.NET Redirect custom record.
Bunny.NET Script custom record.
Constants for the Type field of a DNS Record.
Constants for the Type field of a DNS Record.
Constants for the ActionType fields of an EdgeRule.
Constants for the ActionType fields of an EdgeRule.
Constants for the ActionType fields of an EdgeRule.
Constants for the ActionType fields of an EdgeRule.
Constants for the ActionType fields of an EdgeRule.
Constants for the ActionType fields of an EdgeRule.
Constants for the ActionType fields of an EdgeRule.
Constants for the ActionType fields of an EdgeRule.
Constants for the ActionType fields of an EdgeRule.
Constants for the ActionType fields of an EdgeRule.
Constants for the ActionType fields of an EdgeRule.
Constants for the ActionType fields of an EdgeRule.
Constants for the ActionType fields of an EdgeRule.
Constants for the ActionType fields of an EdgeRule.
Constants for the ActionType fields of an EdgeRule.
Constants for the ActionType fields of an EdgeRule.
Constants for the Type field of an EdgeRuleTrigger.
Constants for the Type field of an EdgeRuleTrigger.
Constants for the Type field of an EdgeRuleTrigger.
Constants for the Type field of an EdgeRuleTrigger.
Constants for the Type field of an EdgeRuleTrigger.
Constants for the Type field of an EdgeRuleTrigger.
Constants for the Type field of an EdgeRuleTrigger.
Constants for the Type field of an EdgeRuleTrigger.
Constants for the Type field of an EdgeRuleTrigger.
Constants for the Type field of an EdgeRuleTrigger.
Constants for the values of the PatternMatchingType of EdgeRuleTrigger and TriggerMatchingType of an EdgeRule.
Constants for the values of the PatternMatchingType of EdgeRuleTrigger and TriggerMatchingType of an EdgeRule.
Constants for the values of the PatternMatchingType of EdgeRuleTrigger and TriggerMatchingType of an EdgeRule.
Constants for the Type fields of a Pull Zone.
Constants for the Type fields of a Pull Zone.
# Structs
AddCustomHostnameOptions represents the message that is sent to the Add Custom Hostname API Endpoint.
AddOrUpdateDNSRecordOptions represents the message that is sent to the Add DNS Record API Endpoint.
AddOrUpdateEdgeRuleOptions is the message that is sent to the Add/Update Edge Rule API Endpoint.
APIError represents an error that is returned by some Bunny API endpoints on failures.
AuthenticationError represents an Unauthorized (401) HTTP error.
Client is a Bunny CDN HTTP API Client.
DNSRecord represents individual DNS records for a DNS Zone.
DNSZone represents the response of the the List and Get DNS Zone API endpoint.
DNSZoneService communicates with the /dnszone API endpoint.
DNSZoneUpdateOptions represents the request parameters for the Update DNS Zone API endpoint.
EdgeRule represents an EdgeRule.
EdgeRuleTrigger represents the values of the Trigger field of an EdgeRule.
EnvironmentalVariable represents the environmental variables attached to a DNS record.
Hostname represents a Hostname returned from the Get and List Pull Zone API Endpoints.
HTTPError is returned by the Client when an unsuccessful HTTP response was returned or a response could not be processed.
IPGeoLocationInfo represents the geolocation data attached to a DNS record.
PaginationOptions specifies optional parameters for List APIs.
PaginationReply represents the pagination information contained in a List API endpoint response.
PullZone represents the response of the the List and Get Pull Zone API endpoint.
PullZoneAddCustomCertificateOptions are the request parameters for the Add Custom Certificate API Endpoint.
PullZoneAddOptions are the request parameters for the Get Pull Zone API endpoint.
PullZoneService communicates with the /pullzone API endpoint.
PullZoneUpdateOptions represents the request parameters for the Update Pull Zone API endpoint.
RemoveCertificateOptions represents the request parameters for the Remove Certificate API Endpoint.
RemoveCustomHostnameOptions represents the message that is sent to the Remove Custom Hostname API Endpoint.
SetEdgeRuleEnabledOptions represents the message that is sent to Add/Update Edge Rule endpoint.
SetForceSSLOptions represents the message is to the the Set Force SSL Endpoint.
StorageZone represents the response of the the List and Get Storage Zone API endpoint.
StorageZoneAddOptions are the request parameters for the Get Storage Zone API endpoint.
StorageZoneService communicates with the /storagezone API endpoint.
StorageZoneUpdateOptions represents the request parameters for the Update Storage Zone API endpoint.
VideoLibrary represents the response of the the List and Get Video Library API endpoint.
VideoLibraryAddOptions are the request parameters for the Get Video Library API endpoint.
VideoLibraryGetOpts represents optional query parameters available when Getting or Listing Video Libraries.
VideoLibraryListOpts represents both PaginationOptions and the other optional query parameters of the List endpoint.
VideoLibraryService communicates with the /videolibrary API endpoint.
VideoLibraryUpdateOptions represents the request parameters for the Update Storage Zone API endpoint.