コード例 #1
0
def get_cloudflare_rate_limits(root_domain):
    from ckan_cloud_operator.providers.routers import manager as routers_manager
    from ckan_cloud_operator import cloudflare
    return cloudflare.get_zone_rate_limits(*routers_manager.get_cloudflare_credentials(), root_domain)
コード例 #2
0
def get_cloudflare_credentials():
    from ckan_cloud_operator.providers.routers import manager as routers_manager
    cloudflare_email, cloudflare_auth_key = routers_manager.get_cloudflare_credentials(
    )
    return cloudflare_email, cloudflare_auth_key