Versions in this module Expand all Collapse all v0 v0.7.4 Jun 14, 2017 Changes in this version + const AuthKeyEmail + const AuthUserService type API + APIUserServiceKey string + func (api *API) AvailableZoneRatePlans(zoneID string) ([]ZoneRatePlan, error) + func (api *API) CreateCustomHostname(zoneID string, ch CustomHostname) (*CustomHostnameResponse, error) + func (api *API) CreateOriginCertificate(certificate OriginCACertificate) (*OriginCACertificate, error) + func (api *API) CustomHostname(zoneID string, customHostnameID string) (CustomHostname, error) + func (api *API) CustomHostnameIDByName(zoneID string, hostname string) (string, error) + func (api *API) CustomHostnames(zoneID string, page int, filter CustomHostname) ([]CustomHostname, ResultInfo, error) + func (api *API) DeleteCustomHostname(zoneID string, customHostnameID string) error + func (api *API) OrganizationDetails(organizationID string) (OrganizationDetails, error) + func (api *API) OrganizationInvites(organizationID string) ([]OrganizationInvite, ResultInfo, error) + func (api *API) OrganizationMembers(organizationID string) ([]OrganizationMember, ResultInfo, error) + func (api *API) OrganizationRoles(organizationID string) ([]OrganizationRole, ResultInfo, error) + func (api *API) OriginCertificate(certificateID string) (*OriginCACertificate, error) + func (api *API) OriginCertificates(options OriginCACertificateListOptions) ([]OriginCACertificate, error) + func (api *API) RevokeOriginCertificate(certificateID string) (*OriginCACertificateID, error) + func (api *API) SetAuthType(authType int) + func (api *API) UpdateCustomHostnameSSL(zoneID string, customHostnameID string, ssl CustomHostnameSSL) (CustomHostname, error) + func (api *API) ZoneSSLSettings(zoneID string) (ZoneSSLSetting, error) + func (api *API) ZoneSetRatePlan(zoneID string, plan ZoneRatePlan) (Zone, error) + type AvailableZoneRatePlansResponse struct + Result []ZoneRatePlan + type CustomHostname struct + CustomMetadata CustomMetadata + Hostname string + ID string + SSL CustomHostnameSSL + type CustomHostnameListResponse struct + Result []CustomHostname + type CustomHostnameResponse struct + Result CustomHostname + type CustomHostnameSSL struct + CnameName string + CnameTarget string + Method string + Status string + Type string + type CustomMetadata map[string]interface + type OrganizationDetails struct + ID string + Invites []OrganizationInvite + Members []OrganizationMember + Name string + Roles []OrganizationRole + type OrganizationInvite struct + ExpiresOn *time.Time + ID string + InvitedBy string + InvitedMemberEmail string + InvitedMemberID string + InvitedOn *time.Time + OrganizationID string + OrganizationName string + Roles []OrganizationRole + Status string + type OrganizationMember struct + Email string + ID string + Name string + Roles []OrganizationRole + Status string + type OrganizationRole struct + Description string + ID string + Name string + Permissions []string + type OriginCACertificate struct + CSR string + Certificate string + ExpiresOn time.Time + Hostnames []string + ID string + RequestType string + RequestValidity int + type OriginCACertificateID struct + ID string + type OriginCACertificateListOptions struct + ZoneID string + type ZoneRatePlan struct + Components []zoneRatePlanComponents + Currency string + Duration int + Frequency string + ID string + Name string + Price int + type ZoneRatePlanResponse struct + Result ZoneRatePlan + type ZoneSSLSetting struct + CertificateStatus string + Editable bool + ID string + ModifiedOn string + Value string + type ZoneSSLSettingResponse struct + Result ZoneSSLSetting v0.7.3 Jan 16, 2017 Changes in this version type API + func (api *API) ListOrganizations() ([]Organization, ResultInfo, error) + func (api *API) UserBillingProfile() (UserBillingProfile, error) type ResultInfo + TotalPages int + type UserBillingProfile struct + Address string + Address2 string + CardExpiryMonth int + CardExpiryYear int + CardNumber string + City string + Company string + Country string + CreatedOn *time.Time + EditedOn *time.Time + FirstName string + ID string + LastName string + State string + Telephone string + VAT string + ZipCode string v0.7.2 Dec 21, 2016 Changes in this version + var PageRuleActions = map[string]string + type API struct + APIEmail string + APIKey string + BaseURL string + func New(key, email string, opts ...Option) (*API, error) + func (api *API) AvailableZonePlans(zoneID string) ([]ZonePlan, error) + func (api *API) ChangePageRule(zoneID, ruleID string, rule PageRule) error + func (api *API) ConnectZoneRailgun(zoneID, railgunID string) (ZoneRailgun, error) + func (api *API) CreateDNSRecord(zoneID string, rr DNSRecord) (*DNSRecordResponse, error) + func (api *API) CreateKeyless() + func (api *API) CreatePageRule(zoneID string, rule PageRule) error + func (api *API) CreateRailgun(name string) (Railgun, error) + func (api *API) CreateSSL(zoneID string, options ZoneCustomSSLOptions) (ZoneCustomSSL, error) + func (api *API) CreateVirtualDNS(v *VirtualDNS) (*VirtualDNS, error) + func (api *API) CreateZone(name string, jumpstart bool, org Organization) (Zone, error) + func (api *API) DNSRecord(zoneID, recordID string) (DNSRecord, error) + func (api *API) DNSRecords(zoneID string, rr DNSRecord) ([]DNSRecord, error) + func (api *API) DeleteDNSRecord(zoneID, recordID string) error + func (api *API) DeleteKeyless() + func (api *API) DeletePageRule(zoneID, ruleID string) error + func (api *API) DeleteRailgun(railgunID string) error + func (api *API) DeleteSSL(zoneID, certificateID string) error + func (api *API) DeleteVirtualDNS(virtualDNSID string) error + func (api *API) DeleteZone(zoneID string) (ZoneID, error) + func (api *API) DisableRailgun(railgunID string) (Railgun, error) + func (api *API) DisconnectZoneRailgun(zoneID, railgunID string) (ZoneRailgun, error) + func (api *API) EditZone(zoneID string, zoneOpts ZoneOptions) (Zone, error) + func (api *API) EnableRailgun(railgunID string) (Railgun, error) + func (api *API) Keyless() + func (api *API) ListKeyless() + func (api *API) ListPageRules(zoneID string) ([]PageRule, error) + func (api *API) ListRailguns(options RailgunListOptions) ([]Railgun, error) + func (api *API) ListSSL(zoneID string) ([]ZoneCustomSSL, error) + func (api *API) ListVirtualDNS() ([]*VirtualDNS, error) + func (api *API) ListWAFPackages(zoneID string) ([]WAFPackage, error) + func (api *API) ListWAFRules(zoneID, packageID string) ([]WAFRule, error) + func (api *API) ListZones(z ...string) ([]Zone, error) + func (api *API) PageRule(zoneID, ruleID string) (PageRule, error) + func (api *API) PurgeCache(zoneID string, pcr PurgeCacheRequest) (PurgeCacheResponse, error) + func (api *API) PurgeEverything(zoneID string) (PurgeCacheResponse, error) + func (api *API) RailgunDetails(railgunID string) (Railgun, error) + func (api *API) RailgunZones(railgunID string) ([]Zone, error) + func (api *API) ReprioritizeSSL(zoneID string, p []ZoneCustomSSLPriority) ([]ZoneCustomSSL, error) + func (api *API) SSLDetails(zoneID, certificateID string) (ZoneCustomSSL, error) + func (api *API) TestRailgunConnection(zoneID, railgunID string) (RailgunDiagnosis, error) + func (api *API) UpdateDNSRecord(zoneID, recordID string, rr DNSRecord) error + func (api *API) UpdateKeyless() + func (api *API) UpdatePageRule(zoneID, ruleID string, rule PageRule) error + func (api *API) UpdateSSL(zoneID, certificateID string, options ZoneCustomSSLOptions) (ZoneCustomSSL, error) + func (api *API) UpdateUser() (User, error) + func (api *API) UpdateVirtualDNS(virtualDNSID string, vv VirtualDNS) error + func (api *API) UserDetails() (User, error) + func (api *API) VirtualDNS(virtualDNSID string) (*VirtualDNS, error) + func (api *API) ZoneActivationCheck(zoneID string) (Response, error) + func (api *API) ZoneAnalyticsByColocation(zoneID string, options ZoneAnalyticsOptions) ([]ZoneAnalyticsColocation, error) + func (api *API) ZoneAnalyticsDashboard(zoneID string, options ZoneAnalyticsOptions) (ZoneAnalyticsData, error) + func (api *API) ZoneDetails(zoneID string) (Zone, error) + func (api *API) ZoneIDByName(zoneName string) (string, error) + func (api *API) ZonePlanDetails(zoneID, planID string) (ZonePlan, error) + func (api *API) ZoneRailgunDetails(zoneID, railgunID string) (ZoneRailgun, error) + func (api *API) ZoneRailguns(zoneID string) ([]ZoneRailgun, error) + func (api *API) ZoneSetPaused(zoneID string, paused bool) (Zone, error) + func (api *API) ZoneSetPlan(zoneID string, plan ZonePlan) (Zone, error) + func (api *API) ZoneSetVanityNS(zoneID string, ns []string) (Zone, error) + type AvailableZonePlansResponse struct + Result []ZonePlan + type CustomPage struct + CreatedOn string + Description string + ModifiedOn time.Time + PreviewTarget string + RequiredTokens []string + State string + URL string + type CustomPageResponse struct + Result []CustomPage + type DNSListResponse struct + Result []DNSRecord + type DNSRecord struct + Content string + CreatedOn time.Time + Data interface{} + ID string + Locked bool + Meta interface{} + ModifiedOn time.Time + Name string + Priority int + Proxiable bool + Proxied bool + TTL int + Type string + ZoneID string + ZoneName string + type DNSRecordResponse struct + Result DNSRecord + type Error interface + Network func() bool + Parse func() bool + User func() bool + type IPRanges struct + IPv4CIDRs []string + IPv6CIDRs []string + func IPs() (IPRanges, error) + type IPsResponse struct + Result IPRanges + type KeylessSSL struct + CreatedOn time.Time + Enabled bool + Host string + ID string + ModifiedOn time.Time + Name string + Permissions []string + Port int + Status string + type KeylessSSLResponse struct + Result []KeylessSSL + type Option func(*API) error + func HTTPClient(client *http.Client) Option + func Headers(headers http.Header) Option + type Organization struct + ID string + Name string + Permissions []string + Roles []string + Status string + type OrganizationResponse struct + Result []Organization + ResultInfo ResultInfo + type Owner struct + Email string + ID string + OwnerType string + type PageRule struct + Actions []PageRuleAction + CreatedOn time.Time + ID string + ModifiedOn time.Time + Priority int + Status string + Targets []PageRuleTarget + type PageRuleAction struct + ID string + Value interface{} + type PageRuleDetailResponse struct + Errors []string + Messages []string + Result PageRule + Success bool + type PageRuleTarget struct + Constraint struct{ ... } + Target string + type PageRulesResponse struct + Errors []string + Messages []string + Result []PageRule + Success bool + type PurgeCacheRequest struct + Everything bool + Files []string + Tags []string + type PurgeCacheResponse struct + type Railgun struct + ActivatedOn time.Time + ActivationKey string + Build string + CreatedOn time.Time + Enabled bool + ID string + ModifiedOn time.Time + Name string + Revision string + Status string + UpgradeInfo struct{ ... } + Version string + ZonesConnected int + type RailgunDiagnosis struct + BodyHash string + BodySize string + CFCacheStatus string + CFRay string + CFWANError string + Cloudflare string + ConnectionClose bool + ElapsedTime string + HTTPStatus int + HostName string + Method string + MissingHeaders string + Protocol string + Railgun string + ResponseStatus string + URL string + type RailgunListOptions struct + Direction string + type Response struct + Errors []ResponseInfo + Messages []ResponseInfo + Success bool + type ResponseInfo struct + Code int + Message string + type ResultInfo struct + Count int + Page int + PerPage int + Total int + type User struct + APIKey string + Betas []string + Country string + CreatedOn time.Time + Email string + FirstName string + ID string + LastName string + ModifiedOn time.Time + Organizations []Organization + Telephone string + TwoFA bool + Username string + Zipcode string + type UserError struct + Err error + func (e *UserError) Error() string + func (e *UserError) Network() bool + func (e *UserError) Parse() bool + func (e *UserError) User() bool + type UserResponse struct + Result User + type VirtualDNS struct + DeprecateAnyRequests bool + ID string + MaximumCacheTTL uint + MinimumCacheTTL uint + ModifiedOn string + Name string + OriginIPs []string + VirtualDNSIPs []string + type VirtualDNSListResponse struct + Result []*VirtualDNS + type VirtualDNSResponse struct + Result *VirtualDNS + type WAFPackage struct + ActionMode string + Description string + DetectionMode string + ID string + Name string + Sensitivity string + ZoneID string + type WAFPackagesResponse struct + Result []WAFPackage + ResultInfo ResultInfo + type WAFRule struct + AllowedModes []string + DefaultMode string + Description string + Group struct{ ... } + ID string + Mode string + PackageID string + Priority string + type WAFRulesResponse struct + Result []WAFRule + ResultInfo ResultInfo + type Zone struct + Betas []string + CreatedOn time.Time + DeactReason string + DevMode int + Host struct{ ... } + ID string + Meta ZoneMeta + ModifiedOn time.Time + Name string + NameServers []string + OriginalDNSHost string + OriginalNS []string + OriginalRegistrar string + Owner Owner + Paused bool + Permissions []string + Plan ZonePlan + PlanPending ZonePlan + Status string + Type string + VanityNS []string + type ZoneAnalytics struct + Bandwidth struct{ ... } + Pageviews struct{ ... } + Requests struct{ ... } + Since time.Time + Threats struct{ ... } + Uniques struct{ ... } + Until time.Time + type ZoneAnalyticsColocation struct + ColocationID string + Timeseries []ZoneAnalytics + type ZoneAnalyticsData struct + Timeseries []ZoneAnalytics + Totals ZoneAnalytics + type ZoneAnalyticsOptions struct + Continuous *bool + Since *time.Time + Until *time.Time + type ZoneCustomSSL struct + BundleMethod string + ExpiresOn time.Time + Hosts []string + ID string + Issuer string + KeylessServer KeylessSSL + ModifiedOn time.Time + Priority int + Signature string + Status string + UploadedOn time.Time + ZoneID string + type ZoneCustomSSLOptions struct + BundleMethod string + Certificate string + PrivateKey string + type ZoneCustomSSLPriority struct + ID string + Priority int + type ZoneID struct + ID string + type ZoneIDResponse struct + Result ZoneID + type ZoneMeta struct + PageRuleQuota int + PhishingDetected bool + WildcardProxiable bool + type ZoneOptions struct + Paused bool + Plan *ZonePlan + VanityNS []string + type ZonePlan struct + CanSubscribe bool + Currency string + Frequency string + ID string + IsSubscribed bool + LegacyID string + Name string + Price int + type ZonePlanResponse struct + Result ZonePlan + type ZoneRailgun struct + Connected bool + Enabled bool + ID string + Name string + type ZoneResponse struct + Result Zone + type ZoneSetting struct + Editable bool + ID string + ModifiedOn string + TimeRemaining int + Value interface{} + type ZoneSettingResponse struct + Result []ZoneSetting + type ZonesResponse struct + Result []Zone v0.7.1-beta Jun 14, 2016