Load and query the centralized bucket configuration shipped in
inst/buckets.yml. Adding a new bucket is a one-line YAML change.
Usage
cdn_registry()
cdn_buckets()
cdn_bucket_info(bucket)
cdn_is_public(bucket)
Arguments
- bucket
Character(1). A registered bucket name.
Value
A named list with endpoint, region, and buckets.
Character vector of bucket names.
A named list with visibility and description.
Logical(1).
Functions
cdn_registry(): Return the full parsed registry (endpoint, region, buckets)
cdn_buckets(): List all registered bucket names
cdn_bucket_info(): Get metadata for a single bucket
cdn_is_public(): Check whether a bucket is public-read
Examples
cdn_buckets()
#> [1] "art-public" "art-coa" "art-data" "art-vault" "art-corpus"
#> [6] "art-testing"
cdn_bucket_info("art-public")
#> $visibility
#> [1] "public"
#>
#> $description
#> [1] "Public thumbnails and static site assets"
#>