Expand description
#3479: the Vectorize settings of bynk.toml.
A Vectorize capability (capability Docs = Vectorize …) names an index
the deploy creates. A team that already has one (made by hand, or shared
with another system) names it here instead, per deployment environment, as
Hyperdrive’s config_id does:
[deploy.vectorize.Docs]
index = { production = "docs-prod" }An adopted index is checked against the declaration for drift and is never
created, changed or deleted by bynk deploy.
Under bynk dev a Vectorize has no local simulation, so a Worker reaches
an index of the developer’s own, named per capability and never the deploy’s:
[dev.vectorize-index]
Docs = "docs-dev"A capability with no entry is unbound under bynk dev.
Structs§
- Vectorize
Deploy - One capability’s
[deploy.vectorize.<Capability>]entry.
Constants§
- DEPLOY_
ENTRY_ KEYS - The keys of a
[deploy.vectorize.<Capability>]entry.
Functions§
- deploy_
vectorize_ from - The
[deploy]table’svectorizeentries. - dev_
vectorize_ index_ from - The
[dev]table’svectorize-indexentries. - is_
index_ name - Whether
namecan be a Vectorize index name: kebab-cased (lowercase letters, digits and hyphens, not starting or ending with one), 1 to 64 bytes. It goes into a command line, so nothing else may reach it. - try_
read_ vectorize_ deploy try_read_vectorize_deploy_with, readingbynk.tomlfrom disk.- try_
read_ vectorize_ deploy_ with - Read
bynk.toml’s[deploy.vectorize]entries, honouringoverlay. No manifest, or none of the table, is empty. - try_
read_ vectorize_ dev try_read_vectorize_dev_with, readingbynk.tomlfrom disk.- try_
read_ vectorize_ dev_ with - Read
bynk.toml’s[dev.vectorize-index]entries, honouringoverlay. No manifest, or none of the table, is empty.
Type Aliases§
- Vectorize
Deploy Config - The
[deploy.vectorize]entries, by capability name. - Vectorize
DevIndexes - The
[dev.vectorize-index]entries, by capability name: the index of the developer’s own thatbynk devbinds for each.