One container per scheme and host (http/https), bucket (s3, gcs), or
directory (file), as the locations resolve under target.
Usage
ic_byterefs_containers(
br,
target = NULL,
region = Sys.getenv("AWS_REGION", "us-east-1")
)Arguments
- br
a byterefs store (see
ic_byterefs_read()).- target
remap target; default
meta.default_target, else"public", else no remapping.- region
S3 region for s3 containers.
Value
a list of ic_container() objects; the prefixes attribute
holds the URL prefixes, suitable for authorize.
Examples
ex <- ic_example_repo()
br <- ic_to_byterefs(ic_session_readonly(ic_repo_open(ex$path, authorize = ex$authorize), branch = "main"))
ic_byterefs_containers(br)
#> [[1]]
#> $url_prefix
#> [1] "file:///tmp/RtmpVaRScy/icechunk-example-35c93aee5e38/source/"
#>
#> $store
#> $store$type
#> [1] "local"
#>
#> $store$anonymous
#> [1] FALSE
#>
#> $store$allow_http
#> [1] FALSE
#>
#> $store$force_path_style
#> [1] FALSE
#>
#> $store$path
#> [1] "/tmp/RtmpVaRScy/icechunk-example-35c93aee5e38/source/"
#>
#>
#> attr(,"class")
#> [1] "icechunk_container"
#>
#> attr(,"prefixes")
#> [1] "file:///tmp/RtmpVaRScy/icechunk-example-35c93aee5e38/source/"