Documentation
¶
Index ¶
- Variables
- func ActivationCheck(api *cloudflare.API, ZoneId string) (resp interface{}, err error)
- func AvailableZoneRatePlans(api *cloudflare.API, ZoneId string) (resp interface{}, err error)
- func ChangePageRule(api *cloudflare.API, ZoneId string, PageruleId string, Targets string, ...) (resp interface{}, err error)
- func Configure(cmd *cobra.Command, args []string) error
- func ConnectZoneRailgun(api *cloudflare.API, ZoneId string, RailgunId string) (resp interface{}, err error)
- func CreateCustomHostname(api *cloudflare.API, ZoneId string, Hostname string, Method string, ...) (resp interface{}, err error)
- func CreateDnsRecord(api *cloudflare.API, ZoneId string, Type string, Name string, Content string, ...) (resp interface{}, err error)
- func CreateLoadBalancer(api *cloudflare.API, ZoneId string, Name string, FallbackPool string, ...) (resp interface{}, err error)
- func CreateLoadBalancerMonitor(api *cloudflare.API, ExpectedCodes string, Method string, Header string, ...) (resp interface{}, err error)
- func CreateLoadBalancerPool(api *cloudflare.API, Name string, Origins string, Description string, ...) (resp interface{}, err error)
- func CreateOrganizationAccessRule(api *cloudflare.API, OrganizationId string, Mode string, Configuration string, ...) (resp interface{}, err error)
- func CreateOriginCertificate(api *cloudflare.API, Hostnames string, RequestValidity int, RequestType string, ...) (resp interface{}, err error)
- func CreatePageRule(api *cloudflare.API, ZoneId string, Targets string, Actions string, ...) (resp interface{}, err error)
- func CreateRailgun(api *cloudflare.API, Name string) (resp interface{}, err error)
- func CreateRateLimit(api *cloudflare.API, ZoneId string, Match string, Threshold int, Period int, ...) (resp interface{}, err error)
- func CreateSSL(api *cloudflare.API, ZoneId string, Certificate string, PrivateKey string, ...) (resp interface{}, err error)
- func CreateUserAccessRule(api *cloudflare.API, Mode string, Configuration string, Notes string) (resp interface{}, err error)
- func CreateUserAgentRule(api *cloudflare.API, ZoneId string, Mode string, Configuration string, ...) (resp interface{}, err error)
- func CreateVirtualDNS(api *cloudflare.API, Name string, OriginIps string, MinimumCacheTtl int, ...) (resp interface{}, err error)
- func CreateWorkerRoute(api *cloudflare.API, ZoneId string, Pattern string, Disabled bool) (resp interface{}, err error)
- func CreateWorkersKVNamespace(api *cloudflare.API, OrganizationId string, Name string) (resp interface{}, err error)
- func CreateZone(api *cloudflare.API, Name string, Jumpstart bool, OrganizationId string) (resp interface{}, err error)
- func CreateZoneLockdown(api *cloudflare.API, ZoneId string, Configuration string, Urls string, ...) (resp interface{}, err error)
- func CustomHostname(api *cloudflare.API, ZoneId string, CustomHostnameId string) (resp interface{}, err error)
- func CustomHostnameIDByName(api *cloudflare.API, ZoneId string, Name string) (resp interface{}, err error)
- func CustomHostnames(api *cloudflare.API, ZoneId string, Hostname string, Page int) (resp interface{}, err error)
- func DNSRecord(api *cloudflare.API, ZoneId string, RecordId string) (resp interface{}, err error)
- func DeleteCustomHostname(api *cloudflare.API, ZoneId string, CustomHostnameId string) (resp interface{}, err error)
- func DeleteDnsRecord(api *cloudflare.API, ZoneId string, RecordId string) (resp interface{}, err error)
- func DeleteLoadBalancer(api *cloudflare.API, ZoneId string, LoadbalancerId string) (resp interface{}, err error)
- func DeleteLoadBalancerMonitor(api *cloudflare.API, MonitorId string) (resp interface{}, err error)
- func DeleteLoadBalancerPool(api *cloudflare.API, PoolId string) (resp interface{}, err error)
- func DeleteOrganizationAccessRule(api *cloudflare.API, OrganizationId string, AccessRuleId string) (resp interface{}, err error)
- func DeleteOrganizationWorker(api *cloudflare.API, OrganizationId string, Name string) (resp interface{}, err error)
- func DeletePageRule(api *cloudflare.API, ZoneId string, PageruleId string) (resp interface{}, err error)
- func DeleteRailgun(api *cloudflare.API, RailgunId string) (resp interface{}, err error)
- func DeleteRateLimit(api *cloudflare.API, ZoneId string, RatelimitId string) (resp interface{}, err error)
- func DeleteSSL(api *cloudflare.API, ZoneId string, CertificateId string) (resp interface{}, err error)
- func DeleteUserAccessRule(api *cloudflare.API, AccessRuleId string) (resp interface{}, err error)
- func DeleteUserAgentRule(api *cloudflare.API, UserAgentId string, ZoneId string) (resp interface{}, err error)
- func DeleteVirtualDNS(api *cloudflare.API, VirtualDnsId string) (resp interface{}, err error)
- func DeleteWorker(api *cloudflare.API, ZoneId string) (resp interface{}, err error)
- func DeleteWorkersKV(api *cloudflare.API, OrganizationId string, NamespaceId string, Key string) (resp interface{}, err error)
- func DeleteWorkersKVNamespace(api *cloudflare.API, OrganizationId string, NamespaceId string) (resp interface{}, err error)
- func DeleteZone(api *cloudflare.API, ZoneId string) (resp interface{}, err error)
- func DeleteZoneAccessRule(api *cloudflare.API, AccessRuleId string, ZoneId string) (resp interface{}, err error)
- func DeleteZoneLockdown(api *cloudflare.API, ZoneId string, LockdownId string) (resp interface{}, err error)
- func DisableRailgun(api *cloudflare.API, RailgunId string) (resp interface{}, err error)
- func DisconnectZoneRailgun(api *cloudflare.API, RailgunId string, ZoneId string) (resp interface{}, err error)
- func DownloadOrganizationWorker(api *cloudflare.API, OrganizationId string, Name string) (resp interface{}, err error)
- func DownloadWorker(api *cloudflare.API, ZoneId string) (resp interface{}, err error)
- func EditDNSRecord(api *cloudflare.API, Proxied bool, ZoneId string, RecordId string, Type string, ...) (resp interface{}, err error)
- func EditZonePaused(api *cloudflare.API, ZoneId string, Paused bool) (resp interface{}, err error)
- func EditZoneVanityNS(api *cloudflare.API, ZoneId string, VanityNs string) (resp interface{}, err error)
- func EnableRailgun(api *cloudflare.API, RailgunId string) (resp interface{}, err error)
- func Execute()
- func GetIDByName(api *cloudflare.API, ZoneName string) (resp interface{}, err error)
- func GetOrganizationAuditLogs(api *cloudflare.API, OrganizationId string) (resp interface{}, err error)
- func GetUserAuditLogs(api *cloudflare.API, ActorIP string, ActorEmail string, ZoneName string, ...) (resp interface{}, err error)
- func ListAllRateLimits(api *cloudflare.API, ZoneId string) (resp interface{}, err error)
- func ListCustomCerts(api *cloudflare.API, ZoneId string) (resp interface{}, err error)
- func ListDnsRecords(api *cloudflare.API, ZoneId string, Type string, Name string, Content string) (resp interface{}, err error)
- func ListLoadBalancerMonitors(api *cloudflare.API) (resp interface{}, err error)
- func ListLoadBalancerPools(api *cloudflare.API) (resp interface{}, err error)
- func ListLoadBalancers(api *cloudflare.API, ZoneId string) (resp interface{}, err error)
- func ListOrganizationAccessRules(api *cloudflare.API, OrganizationId string, Notes string, Mode string, ...) (resp interface{}, err error)
- func ListOrganizations(api *cloudflare.API) (resp interface{}, err error)
- func ListPageRules(api *cloudflare.API, ZoneId string) (resp interface{}, err error)
- func ListRailguns(api *cloudflare.API) (resp interface{}, err error)
- func ListUserAccessRules(api *cloudflare.API, Notes string, Mode string, Page int) (resp interface{}, err error)
- func ListUserAgentRules(api *cloudflare.API, ZoneId string, Page int) (resp interface{}, err error)
- func ListVirtualDns(api *cloudflare.API) (resp interface{}, err error)
- func ListWAFPackages(api *cloudflare.API, ZoneId string) (resp interface{}, err error)
- func ListWAFRules(api *cloudflare.API, ZoneId string, PackageId string) (resp interface{}, err error)
- func ListWorkerRoutes(api *cloudflare.API, ZoneId string) (resp interface{}, err error)
- func ListWorkerScripts(api *cloudflare.API, OrganizationId string) (resp interface{}, err error)
- func ListWorkersKVNamespaces(api *cloudflare.API, OrganizationId string) (resp interface{}, err error)
- func ListWorkersKVs(api *cloudflare.API, OrganizationId string, NamespaceId string) (resp interface{}, err error)
- func ListZoneAccessRules(api *cloudflare.API, ZoneId string, Notes string, Mode string, Page int) (resp interface{}, err error)
- func ListZoneLockdowns(api *cloudflare.API, ZoneId string, Page int) (resp interface{}, err error)
- func ListZoneRailguns(api *cloudflare.API) (resp interface{}, err error)
- func ListZones(api *cloudflare.API, ZoneNameFilter string) (resp interface{}, err error)
- func LoadBalancerDetails(api *cloudflare.API, ZoneId string, LoadbalancerId string) (resp interface{}, err error)
- func LoadBalancerMonitorDetails(api *cloudflare.API, MonitorId string) (resp interface{}, err error)
- func LoadBalancerPoolDetails(api *cloudflare.API, PoolId string) (resp interface{}, err error)
- func Main(cmd *cobra.Command, args []string, name string)
- func ModifyLoadBalancer(api *cloudflare.API, ZoneId string, LoadbalancerId string, Name string, ...) (resp interface{}, err error)
- func ModifyLoadBalancerMonitor(api *cloudflare.API, MonitorId string, ExpectedCodes string, Method string, ...) (resp interface{}, err error)
- func ModifyLoadBalancerPool(api *cloudflare.API, PoolId string, Name string, Origins string, ...) (resp interface{}, err error)
- func OrganizationDetails(api *cloudflare.API, OrganizationId string) (resp interface{}, err error)
- func OrganizationInvites(api *cloudflare.API, OrganizationId string) (resp interface{}, err error)
- func OrganizationMembers(api *cloudflare.API, OrganizationId string) (resp interface{}, err error)
- func OrganizationRoles(api *cloudflare.API, OrganizationId string) (resp interface{}, err error)
- func OriginCertificate(api *cloudflare.API, CertificateId string) (resp interface{}, err error)
- func OriginCertificates(api *cloudflare.API, ZoneId string) (resp interface{}, err error)
- func PageRule(api *cloudflare.API, ZoneId string, PageruleId string) (resp interface{}, err error)
- func Purge(api *cloudflare.API, ZoneId string, Files string, Tags string, Hosts string) (resp interface{}, err error)
- func PurgeEverything(api *cloudflare.API, ZoneId string) (resp interface{}, err error)
- func RailgunDetails(api *cloudflare.API, RailgunId string) (resp interface{}, err error)
- func RailgunZones(api *cloudflare.API, RailgunId string) (resp interface{}, err error)
- func RateLimit(api *cloudflare.API, ZoneId string, RatelimitId string) (resp interface{}, err error)
- func ReadWorkersKV(api *cloudflare.API, OrganizationId string, NamespaceId string, Key string) (resp interface{}, err error)
- func ReprioritizeSSL(api *cloudflare.API, ZoneId string, PriorityList string) (resp interface{}, err error)
- func RevokeOriginCertificate(api *cloudflare.API, CertificateId string) (resp interface{}, err error)
- func Run(cmd *cobra.Command, args []string, name string, api *cloudflare.API) (resp interface{}, err error)
- func SSLDetails(api *cloudflare.API, CertificateId string, ZoneId string) (resp interface{}, err error)
- func TestRailgunConnection(api *cloudflare.API, ZoneId string, RailgunId string) (resp interface{}, err error)
- func UpdateCustomHostnameSSL(api *cloudflare.API, ZoneId string, CustomHostnameId string, Method string, ...) (resp interface{}, err error)
- func UpdateOrganizationAccessRule(api *cloudflare.API, OrganizationId string, AccessRuleId string, Mode string, ...) (resp interface{}, err error)
- func UpdateRateLimit(api *cloudflare.API, ZoneId string, LimitId string, Match string, ...) (resp interface{}, err error)
- func UpdateSSL(api *cloudflare.API, ZoneId string, CertificateId string, Certificate string, ...) (resp interface{}, err error)
- func UpdateUser(api *cloudflare.API, FirstName string, LastName string, Telephone string, ...) (resp interface{}, err error)
- func UpdateUserAccessRule(api *cloudflare.API, AccessRuleId string, Mode string, Configuration string, ...) (resp interface{}, err error)
- func UpdateUserAgentRule(api *cloudflare.API, ZoneId string, UserAgentId string, Mode string, ...) (resp interface{}, err error)
- func UpdateVirtualDNS(api *cloudflare.API, VirtualDnsId string, OriginIps string, ...) (resp interface{}, err error)
- func UpdateWorkerRoute(api *cloudflare.API, ZoneId string, RouteId string, Pattern string, ...) (resp interface{}, err error)
- func UpdateWorkersKVNamespace(api *cloudflare.API, OrganizationId string, NamespaceId string, Name string) (resp interface{}, err error)
- func UpdateZoneAccessRule(api *cloudflare.API, ZoneId string, AccessRuleId string, Mode string, ...) (resp interface{}, err error)
- func UpdateZoneLockdown(api *cloudflare.API, ZoneId string, LockdownId string, Configuration string, ...) (resp interface{}, err error)
- func UpdateZoneSettings(api *cloudflare.API, ZoneId string, ZoneSettings string) (resp interface{}, err error)
- func UploadOrganizationWorker(api *cloudflare.API, ZoneId string, OrganizationId, Name string, Script string) (resp interface{}, err error)
- func UploadWorker(api *cloudflare.API, ZoneId, Script, ScriptName string) (resp interface{}, err error)
- func UserBillingProfile(api *cloudflare.API) (resp interface{}, err error)
- func UserDetails(api *cloudflare.API) (resp interface{}, err error)
- func VirtualDNS(api *cloudflare.API, VirtualDnsId string) (resp interface{}, err error)
- func WriteWorkersKV(api *cloudflare.API, OrganizationId string, NamespaceId string, Key string, ...) (resp interface{}, err error)
- func ZoneAnalyticsByColocation(api *cloudflare.API, ZoneId string, Since string, Until string, ...) (resp interface{}, err error)
- func ZoneAnalyticsDashboard(api *cloudflare.API, ZoneId string, Since string, Until string, ...) (resp interface{}, err error)
- func ZoneDetails(api *cloudflare.API, ZoneId string) (resp interface{}, err error)
- func ZoneLockdown(api *cloudflare.API, ZoneId string, LockdownId string) (resp interface{}, err error)
- func ZoneRailgunDetails(api *cloudflare.API, ZoneId string, RailgunId string) (resp interface{}, err error)
- func ZoneSSLSettings(api *cloudflare.API, ZoneId string) (resp interface{}, err error)
- func ZoneSetPaused(api *cloudflare.API, ZoneId string, Paused bool) (resp interface{}, err error)
- func ZoneSetVanityNS(api *cloudflare.API, ZoneId string, VanityNs string) (resp interface{}, err error)
- func ZoneSettings(api *cloudflare.API, ZoneId string) (resp interface{}, err error)
- type Credentials
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ZoneNameFilter string ZoneId string Type string Name string Content string Ttl int NotProxied bool Priority int RecordId string Jumpstart bool OrganizationId string Page int PackageId string LockdownId string Paused bool VanityNs string Proxied bool Notes string Mode string RailgunId string Hostname string Method string ExpectedCodes string Header string Timeout int Path string Interval int Retries int ExpectedBody string Description string FallbackPool string DefaultPools string ZoneName string VirtualDnsId string PageruleId string LoadbalancerId string MonitorId string PoolId string CertificateId string RatelimitId string CustomHostnameId string AccessRuleId string UserAgentId string Since string Until string Continuous bool FirstName string LastName string Telephone string Country string Zipcode string Origins string Disabled bool MinimumOrigins int Monitor string NotificationEmail string ZoneSettingsObject string Configuration string Urls string OriginIps string MinimumCacheTtl int MaximumCacheTtl int DeprecateAnyRequest bool Targets string Actions string Status string Hostnames string RequestValidity int RequestType string Csr string Match string Threshold int Period int Action string Enabled bool Bypass string LimitId string Certificate string PrivateKey string BundleMethod string Files string Tags string Hosts string PriorityList string Pattern string Disable bool RouteId string Script string ScriptName string ActorIp string ActorEmail string Id string Direction string Before string Per_page int NamespaceId string Key string Value string )
View Source
var ( ConfigureCmd = &cobra.Command{ Use: "configure", Short: "A command for configuring your cloudflare api credentials", Run: func(cmd *cobra.Command, args []string) { err := Configure(cmd, args) if err != nil { log.Fatalf("Could not configure cf cli: %s", err) } }, } )
View Source
var RootCmd = &cobra.Command{
Use: "cf",
Short: "A CLI for interacting with Cloudflare's V4 API",
}
Functions ¶
func ActivationCheck ¶
func ActivationCheck(api *cloudflare.API, ZoneId string) (resp interface{}, err error)
func AvailableZoneRatePlans ¶
func AvailableZoneRatePlans(api *cloudflare.API, ZoneId string) (resp interface{}, err error)
func ChangePageRule ¶
func ConnectZoneRailgun ¶
func ConnectZoneRailgun(api *cloudflare.API, ZoneId string, RailgunId string) (resp interface{}, err error)
func CreateCustomHostname ¶
func CreateDnsRecord ¶
func CreateLoadBalancer ¶
func CreateLoadBalancerPool ¶
func CreateOriginCertificate ¶
func CreatePageRule ¶
func CreateRailgun ¶
func CreateRailgun(api *cloudflare.API, Name string) (resp interface{}, err error)
func CreateRateLimit ¶
func CreateUserAccessRule ¶
func CreateUserAgentRule ¶
func CreateVirtualDNS ¶
func CreateWorkerRoute ¶
func CreateWorkersKVNamespace ¶
func CreateWorkersKVNamespace(api *cloudflare.API, OrganizationId string, Name string) (resp interface{}, err error)
func CreateZone ¶
func CreateZoneLockdown ¶
func CustomHostname ¶
func CustomHostname(api *cloudflare.API, ZoneId string, CustomHostnameId string) (resp interface{}, err error)
func CustomHostnameIDByName ¶
func CustomHostnameIDByName(api *cloudflare.API, ZoneId string, Name string) (resp interface{}, err error)
func CustomHostnames ¶
func DNSRecord ¶
func DNSRecord(api *cloudflare.API, ZoneId string, RecordId string) (resp interface{}, err error)
func DeleteCustomHostname ¶
func DeleteCustomHostname(api *cloudflare.API, ZoneId string, CustomHostnameId string) (resp interface{}, err error)
func DeleteDnsRecord ¶
func DeleteDnsRecord(api *cloudflare.API, ZoneId string, RecordId string) (resp interface{}, err error)
func DeleteLoadBalancer ¶
func DeleteLoadBalancer(api *cloudflare.API, ZoneId string, LoadbalancerId string) (resp interface{}, err error)
func DeleteLoadBalancerMonitor ¶
func DeleteLoadBalancerMonitor(api *cloudflare.API, MonitorId string) (resp interface{}, err error)
func DeleteLoadBalancerPool ¶
func DeleteLoadBalancerPool(api *cloudflare.API, PoolId string) (resp interface{}, err error)
func DeleteOrganizationAccessRule ¶
func DeleteOrganizationAccessRule(api *cloudflare.API, OrganizationId string, AccessRuleId string) (resp interface{}, err error)
func DeleteOrganizationWorker ¶
func DeleteOrganizationWorker(api *cloudflare.API, OrganizationId string, Name string) (resp interface{}, err error)
func DeletePageRule ¶
func DeletePageRule(api *cloudflare.API, ZoneId string, PageruleId string) (resp interface{}, err error)
func DeleteRailgun ¶
func DeleteRailgun(api *cloudflare.API, RailgunId string) (resp interface{}, err error)
func DeleteRateLimit ¶
func DeleteRateLimit(api *cloudflare.API, ZoneId string, RatelimitId string) (resp interface{}, err error)
func DeleteSSL ¶
func DeleteSSL(api *cloudflare.API, ZoneId string, CertificateId string) (resp interface{}, err error)
func DeleteUserAccessRule ¶
func DeleteUserAccessRule(api *cloudflare.API, AccessRuleId string) (resp interface{}, err error)
func DeleteUserAgentRule ¶
func DeleteUserAgentRule(api *cloudflare.API, UserAgentId string, ZoneId string) (resp interface{}, err error)
func DeleteVirtualDNS ¶
func DeleteVirtualDNS(api *cloudflare.API, VirtualDnsId string) (resp interface{}, err error)
func DeleteWorker ¶
func DeleteWorker(api *cloudflare.API, ZoneId string) (resp interface{}, err error)
func DeleteWorkersKV ¶
func DeleteWorkersKVNamespace ¶
func DeleteWorkersKVNamespace(api *cloudflare.API, OrganizationId string, NamespaceId string) (resp interface{}, err error)
func DeleteZone ¶
func DeleteZone(api *cloudflare.API, ZoneId string) (resp interface{}, err error)
func DeleteZoneAccessRule ¶
func DeleteZoneAccessRule(api *cloudflare.API, AccessRuleId string, ZoneId string) (resp interface{}, err error)
func DeleteZoneLockdown ¶
func DeleteZoneLockdown(api *cloudflare.API, ZoneId string, LockdownId string) (resp interface{}, err error)
func DisableRailgun ¶
func DisableRailgun(api *cloudflare.API, RailgunId string) (resp interface{}, err error)
func DisconnectZoneRailgun ¶
func DisconnectZoneRailgun(api *cloudflare.API, RailgunId string, ZoneId string) (resp interface{}, err error)
func DownloadOrganizationWorker ¶
func DownloadOrganizationWorker(api *cloudflare.API, OrganizationId string, Name string) (resp interface{}, err error)
func DownloadWorker ¶
func DownloadWorker(api *cloudflare.API, ZoneId string) (resp interface{}, err error)
func EditDNSRecord ¶
func EditZonePaused ¶
func EditZonePaused(api *cloudflare.API, ZoneId string, Paused bool) (resp interface{}, err error)
func EditZoneVanityNS ¶
func EditZoneVanityNS(api *cloudflare.API, ZoneId string, VanityNs string) (resp interface{}, err error)
func EnableRailgun ¶
func EnableRailgun(api *cloudflare.API, RailgunId string) (resp interface{}, err error)
func GetIDByName ¶
func GetIDByName(api *cloudflare.API, ZoneName string) (resp interface{}, err error)
func GetOrganizationAuditLogs ¶
func GetOrganizationAuditLogs(api *cloudflare.API, OrganizationId string) (resp interface{}, err error)
func GetUserAuditLogs ¶
func ListAllRateLimits ¶
func ListAllRateLimits(api *cloudflare.API, ZoneId string) (resp interface{}, err error)
func ListCustomCerts ¶
func ListCustomCerts(api *cloudflare.API, ZoneId string) (resp interface{}, err error)
func ListDnsRecords ¶
func ListLoadBalancerMonitors ¶
func ListLoadBalancerMonitors(api *cloudflare.API) (resp interface{}, err error)
func ListLoadBalancerPools ¶
func ListLoadBalancerPools(api *cloudflare.API) (resp interface{}, err error)
func ListLoadBalancers ¶
func ListLoadBalancers(api *cloudflare.API, ZoneId string) (resp interface{}, err error)
func ListOrganizations ¶
func ListOrganizations(api *cloudflare.API) (resp interface{}, err error)
func ListPageRules ¶
func ListPageRules(api *cloudflare.API, ZoneId string) (resp interface{}, err error)
func ListRailguns ¶
func ListRailguns(api *cloudflare.API) (resp interface{}, err error)
func ListUserAccessRules ¶
func ListUserAgentRules ¶
func ListUserAgentRules(api *cloudflare.API, ZoneId string, Page int) (resp interface{}, err error)
func ListVirtualDns ¶
func ListVirtualDns(api *cloudflare.API) (resp interface{}, err error)
func ListWAFPackages ¶
func ListWAFPackages(api *cloudflare.API, ZoneId string) (resp interface{}, err error)
func ListWAFRules ¶
func ListWAFRules(api *cloudflare.API, ZoneId string, PackageId string) (resp interface{}, err error)
func ListWorkerRoutes ¶
func ListWorkerRoutes(api *cloudflare.API, ZoneId string) (resp interface{}, err error)
func ListWorkerScripts ¶
func ListWorkerScripts(api *cloudflare.API, OrganizationId string) (resp interface{}, err error)
func ListWorkersKVNamespaces ¶
func ListWorkersKVNamespaces(api *cloudflare.API, OrganizationId string) (resp interface{}, err error)
func ListWorkersKVs ¶
func ListWorkersKVs(api *cloudflare.API, OrganizationId string, NamespaceId string) (resp interface{}, err error)
func ListZoneAccessRules ¶
func ListZoneLockdowns ¶
func ListZoneLockdowns(api *cloudflare.API, ZoneId string, Page int) (resp interface{}, err error)
func ListZoneRailguns ¶
func ListZoneRailguns(api *cloudflare.API) (resp interface{}, err error)
func ListZones ¶
func ListZones(api *cloudflare.API, ZoneNameFilter string) (resp interface{}, err error)
func LoadBalancerDetails ¶
func LoadBalancerDetails(api *cloudflare.API, ZoneId string, LoadbalancerId string) (resp interface{}, err error)
func LoadBalancerMonitorDetails ¶
func LoadBalancerMonitorDetails(api *cloudflare.API, MonitorId string) (resp interface{}, err error)
func LoadBalancerPoolDetails ¶
func LoadBalancerPoolDetails(api *cloudflare.API, PoolId string) (resp interface{}, err error)
func Main ¶
Main is where the high level program execution takes place. The first thing that happens is the credentials are attempted to be loaded from a file or your environment. If the creds are loaded from a file then they are set as env vars to be used by cloudflare-go. Next, `root` is called, which is where API calls are made to the cloudflare v4 API by using the `cloudflare-go` library. Finally, the results are outputted to stdout (or stderr if something disasterous happens).
func ModifyLoadBalancer ¶
func ModifyLoadBalancerPool ¶
func OrganizationDetails ¶
func OrganizationDetails(api *cloudflare.API, OrganizationId string) (resp interface{}, err error)
func OrganizationInvites ¶
func OrganizationInvites(api *cloudflare.API, OrganizationId string) (resp interface{}, err error)
func OrganizationMembers ¶
func OrganizationMembers(api *cloudflare.API, OrganizationId string) (resp interface{}, err error)
func OrganizationRoles ¶
func OrganizationRoles(api *cloudflare.API, OrganizationId string) (resp interface{}, err error)
func OriginCertificate ¶
func OriginCertificate(api *cloudflare.API, CertificateId string) (resp interface{}, err error)
func OriginCertificates ¶
func OriginCertificates(api *cloudflare.API, ZoneId string) (resp interface{}, err error)
func PageRule ¶
func PageRule(api *cloudflare.API, ZoneId string, PageruleId string) (resp interface{}, err error)
func PurgeEverything ¶
func PurgeEverything(api *cloudflare.API, ZoneId string) (resp interface{}, err error)
func RailgunDetails ¶
func RailgunDetails(api *cloudflare.API, RailgunId string) (resp interface{}, err error)
func RailgunZones ¶
func RailgunZones(api *cloudflare.API, RailgunId string) (resp interface{}, err error)
func RateLimit ¶
func RateLimit(api *cloudflare.API, ZoneId string, RatelimitId string) (resp interface{}, err error)
func ReadWorkersKV ¶
func ReprioritizeSSL ¶
func ReprioritizeSSL(api *cloudflare.API, ZoneId string, PriorityList string) (resp interface{}, err error)
func RevokeOriginCertificate ¶
func RevokeOriginCertificate(api *cloudflare.API, CertificateId string) (resp interface{}, err error)
func SSLDetails ¶
func SSLDetails(api *cloudflare.API, CertificateId string, ZoneId string) (resp interface{}, err error)
func TestRailgunConnection ¶
func TestRailgunConnection(api *cloudflare.API, ZoneId string, RailgunId string) (resp interface{}, err error)
func UpdateCustomHostnameSSL ¶
func UpdateRateLimit ¶
func UpdateUser ¶
func UpdateUserAccessRule ¶
func UpdateUserAgentRule ¶
func UpdateVirtualDNS ¶
func UpdateWorkerRoute ¶
func UpdateZoneAccessRule ¶
func UpdateZoneLockdown ¶
func UpdateZoneSettings ¶
func UpdateZoneSettings(api *cloudflare.API, ZoneId string, ZoneSettings string) (resp interface{}, err error)
func UploadWorker ¶
func UploadWorker(api *cloudflare.API, ZoneId, Script, ScriptName string) (resp interface{}, err error)
func UserBillingProfile ¶
func UserBillingProfile(api *cloudflare.API) (resp interface{}, err error)
func UserDetails ¶
func UserDetails(api *cloudflare.API) (resp interface{}, err error)
func VirtualDNS ¶
func VirtualDNS(api *cloudflare.API, VirtualDnsId string) (resp interface{}, err error)
func WriteWorkersKV ¶
func ZoneAnalyticsDashboard ¶
func ZoneDetails ¶
func ZoneDetails(api *cloudflare.API, ZoneId string) (resp interface{}, err error)
func ZoneLockdown ¶
func ZoneLockdown(api *cloudflare.API, ZoneId string, LockdownId string) (resp interface{}, err error)
func ZoneRailgunDetails ¶
func ZoneRailgunDetails(api *cloudflare.API, ZoneId string, RailgunId string) (resp interface{}, err error)
func ZoneSSLSettings ¶
func ZoneSSLSettings(api *cloudflare.API, ZoneId string) (resp interface{}, err error)
func ZoneSetPaused ¶
func ZoneSetPaused(api *cloudflare.API, ZoneId string, Paused bool) (resp interface{}, err error)
func ZoneSetVanityNS ¶
func ZoneSetVanityNS(api *cloudflare.API, ZoneId string, VanityNs string) (resp interface{}, err error)
func ZoneSettings ¶
func ZoneSettings(api *cloudflare.API, ZoneId string) (resp interface{}, err error)
Types ¶
type Credentials ¶
type Credentials struct {
Email string
}
Click to show internal directories.
Click to hide internal directories.