Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountAudit ¶
type AccountAudit struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Settings *cloudflare.AccountSettings `json:"settings"` CustomPages map[string]cloudflare.CustomPage `json:"-"` // Not exported automatically Members map[string]MemberAudit `json:"-"` // Not exported automatically Roles map[string]cloudflare.AccountRole `json:"-"` // Not exported automatically }
type CFCert ¶
type CFCert struct { ID json.Token `json:"id,omitempty"` Hosts []string `json:"hosts"` Issuer string `json:"issuer"` Signature string `json:"signature"` Status string `json:"status"` BundleMethod string `json:"bundle_method"` GeoRestrictions cloudflare.ZoneCustomSSLGeoRestrictions `json:"geo_restrictions,omitempty"` ZoneID string `json:"zone_id"` UploadedOn time.Time `json:"uploaded_on"` ModifiedOn time.Time `json:"modified_on"` ExpiresOn time.Time `json:"expires_on"` Priority int `json:"priority"` KeylessServer *cloudflare.KeylessSSL `json:"keyless_server,omitempty"` }
type CFCertificatePack ¶
type CFCertificatePack struct { ID string `json:"id"` Type string `json:"type"` Hosts []string `json:"hosts"` Certificates []CFCert `json:"certificates"` PrimaryCertificate json.Token `json:"primary_certificate,omitempty"` }
Cloudflare does not expose this in cloudflare-go
type CFDNSSEC ¶
type CFDNSSEC struct { Digest string `json:"digest,omitempty"` Flags string `json:"flags,omitempty"` PublicKey string `json:"public_key,omitempty"` Algorithm string `json:"algorithm,omitempty"` DS string `json:"ds,omitempty"` Status string `json:"status"` DigestAlgorithm string `json:"digest_algorithm,omitempty"` DigestType string `json:"digest_type,omitempty"` ModifiedOn time.Time `json:"modified_on,omitempty"` KeyType string `json:"key_type,omitempty"` KeyTag int `json:"key_tag,omitempty"` }
type CertAudit ¶
type CertAudit struct { ID string `json:"id"` Hosts []string `json:"hosts"` Issuer string `json:"issuer"` Signature string `json:"signature"` Status string `json:"status"` GeoRestrictions string `json:"geo_restrictions,omitempty"` ModTime int64 `json:"mod_time"` Expiry int64 `json:"expiry"` Priority int `json:"priority"` Primary bool `json:"primary"` Active bool `json:"active"` }
type MemberAudit ¶
type PageRuleAudit ¶
type RecordAudit ¶
type SpectrumAudit ¶
type SpectrumAudit struct { ID string `json:"id"` Protocol string `json:"protocol"` Name string `json:"name,omitempty"` Origin []string `json:"origin"` IPFirewall bool `json:"ip_firewall"` ProxyProtocol string `json:"proxy_protocol"` TLS string `json:"tls"` TrafficType string `json:"traffic_type"` EdgeIPs []string `json:"edge_ips"` ArgoSmartRouting bool `json:"argo_smart_routing"` ModTime int64 `json:"mod_time"` }
type WAFAuditGroup ¶
type WAFAuditGroup struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` ModifiedRules int `json:"modified_rules"` Mode string `json:"mode"` Rules map[string]WAFAuditRule `json:"rules"` }
func (*WAFAuditGroup) CountWAFRules ¶
func (grp *WAFAuditGroup) CountWAFRules() int
type WAFAuditPackage ¶
type WAFAuditPackage struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` DetectionMode string `json:"detection_mode"` Sensitivity string `json:"sensitivity"` ActionMode string `json:"action_mode"` Groups map[string]WAFAuditGroup `json:"-"` }
func (*WAFAuditPackage) CountWAFGroups ¶
func (pkg *WAFAuditPackage) CountWAFGroups() int
func (*WAFAuditPackage) CountWAFRules ¶
func (pkg *WAFAuditPackage) CountWAFRules() (out int)
type WAFAuditRule ¶
type ZoneAudit ¶
type ZoneAudit struct { ID string `json:"id"` Name string `json:"name"` DevMode int `json:"development_mode"` ModTime int64 `json:"mod_time"` NameServers []string `json:"name_servers"` Status string `json:"status"` Paused bool `json:"paused"` Type string `json:"type"` VanityNS []string `json:"vanity_name_servers"` DeactReason string `json:"deactivation_reason"` Records map[string]RecordAudit `json:"-"` // Not exported automatically SpectrumApps map[string]SpectrumAudit `json:"-"` // Not exported automatically Certs map[string]CertAudit `json:"-"` // Not exported automatically PageRules map[string]PageRuleAudit `json:"-"` // Not exported automatically DeprecatedFWAccessRules map[string]DeprecatedFWAccessRuleAudit `json:"-"` // Not exported automatically WAF map[string]WAFAuditPackage `json:"-"` // Not exported automatically WAFOverrides map[string]cloudflare.WAFOverride `json:"-"` // Not exported automatically UserAgentRules map[string]cloudflare.UserAgentRule `json:"-"` // Not exported automatically TemporaryUserAgentRules map[string]cloudflare.UserAgentRule `json:"-"` // Not exported automatically Settings map[string]cloudflare.ZoneSetting `json:"-"` // Not exported automatically LogpushJobs map[string]cloudflare.LogpushJob `json:"-"` // Not exported automatically CustomPages map[string]cloudflare.CustomPage `json:"-"` // Not exported automatically WorkerRoutes map[string]cloudflare.WorkerRoute `json:"-"` // Not exported automatically RateLimits map[string]cloudflare.RateLimit `json:"-"` // Not exported automatically TemporaryRateLimits map[string]cloudflare.RateLimit `json:"-"` // Not exported automatically LockdownRules map[string]cloudflare.ZoneLockdown `json:"-"` // Not exported automatically FirewallRules map[string]cloudflare.FirewallRule `json:"-"` // Not exported automatically TemporaryFirewallRules map[string]cloudflare.FirewallRule `json:"-"` // Not exported automatically DNSSEC *CFDNSSEC `json:"dnssec"` UniversalSSL bool `json:"universal_ssl_enabled"` ArgoSmartRouting bool `json:"argo_smart_routing"` }
func (*ZoneAudit) CountWAFGroups ¶
func (*ZoneAudit) CountWAFRules ¶
func (*ZoneAudit) Initialize ¶
func (audit *ZoneAudit) Initialize()
Click to show internal directories.
Click to hide internal directories.