Documentation ¶
Overview ¶
Copyright © 2021 Joshua Rich <joshua.rich@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2021 Joshua Rich <joshua.rich@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCloudflare ¶ added in v0.4.0
func NewCloudflare() *cloudflare
Types ¶
type Plan ¶
type Plan struct { ID string `json:"id"` Name string `json:"name"` Price int64 `json:"price"` Currency string `json:"currency"` Frequency string `json:"frequency"` IsSubscribed bool `json:"is_subscribed"` CanSubscribe bool `json:"can_subscribe"` LegacyID string `json:"legacy_id"` LegacyDiscount bool `json:"legacy_discount"` ExternallyManaged bool `json:"externally_managed"` }
type RecordResponse ¶
type RecordResponse struct { Result []RecordResult `json:"result"` ResultInfo ResultInfo `json:"result_info"` Success bool `json:"success"` Errors []Error `json:"errors"` Messages []interface{} `json:"messages"` }
type RecordResult ¶
type RecordResult struct { ID string `json:"id"` Type string `json:"type"` Name string `json:"name"` Content string `json:"content"` Proxiable bool `json:"proxiable"` Proxied bool `json:"proxied"` TTL int64 `json:"ttl"` Locked bool `json:"locked"` ZoneID string `json:"zone_id"` ZoneName string `json:"zone_name"` ModifiedOn string `json:"modified_on"` CreatedOn string `json:"created_on"` Meta Meta `json:"meta"` }
type ResultInfo ¶
type ZoneResponse ¶
type ZoneResponse struct { Result []ZoneResult `json:"result"` ResultInfo ResultInfo `json:"result_info"` Success bool `json:"success"` Errors []Error `json:"errors"` Messages []interface{} `json:"messages"` }
type ZoneResult ¶
type ZoneResult struct { ID string `json:"id"` Name string `json:"name"` Status string `json:"status"` Paused bool `json:"paused"` Type string `json:"type"` DevelopmentMode int64 `json:"development_mode"` NameServers []string `json:"name_servers"` OriginalNameServers []string `json:"original_name_servers"` OriginalRegistrar interface{} `json:"original_registrar"` OriginalDnshost interface{} `json:"original_dnshost"` ModifiedOn string `json:"modified_on"` CreatedOn string `json:"created_on"` ActivatedOn string `json:"activated_on"` Meta Meta `json:"meta"` Owner Owner `json:"owner"` Account Account `json:"account"` Permissions []string `json:"permissions"` Plan Plan `json:"plan"` }