types

package
v0.0.0-...-b9cbcac Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 4 Imported by: 0

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"`
}

https://api.cloudflare.com/#dnssec-properties

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 DeprecatedFWAccessRuleAudit

type DeprecatedFWAccessRuleAudit struct {
	ID          string `json:"id"`
	Nodes       string `json:"nodes"`
	Mode        string `json:"mode"`
	TargetType  string `json:"target_type"`
	TargetValue string `json:"target_value"`
	ModTime     int64  `json:"mod_time"`
	Scope       string `json:"scope"`
}

type MemberAudit

type MemberAudit struct {
	ID     string                              `json:"id"`
	Code   string                              `json:"code"`
	User   cloudflare.AccountMemberUserDetails `json:"user"`
	Status string                              `json:"status"`
	Roles  []string                            `json:"roles"`
}

type PageRuleAudit

type PageRuleAudit struct {
	ID       string                 `json:"id"`
	Targets  []string               `json:"targets"`
	Actions  map[string]interface{} `json:"actions"`
	Priority int                    `json:"priority"`
	Status   string                 `json:"status"`
	ModTime  int64                  `json:"mod_time"`
}

type RecordAudit

type RecordAudit struct {
	ID      string `json:"id"`
	Name    string `json:"name"`
	Type    string `json:"type"`
	Content string `json:"content"`
	ModTime int64  `json:"mod_time"`
}

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 WAFAuditRule struct {
	ID          string `json:"id"`
	Description string `json:"description"`
	Priority    string `json:"priority"` // This is a string in the CF docs, too.
	Mode        string `json:"mode"`
	DefaultMode string `json:"default_mode"`
}

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 (audit *ZoneAudit) CountWAFGroups() (out int)

func (*ZoneAudit) CountWAFRules

func (audit *ZoneAudit) CountWAFRules() (out int)

func (*ZoneAudit) Initialize

func (audit *ZoneAudit) Initialize()

func (*ZoneAudit) Summarize

func (audit *ZoneAudit) Summarize() (out string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL