Expand description
Path vocabulary for declared trees: RelPath, collection paths and
resource keys.
A repo-relative path is gateways/<g>/resources/<module>/<type>/...;
its collection path drops the resources/ prefix and is what the
gateway holds under its resource collection directory
(<module>/<type>/...). All paths are /-separated UTF-8 and compare as
raw bytes: no normalization, no case folding (DRND-01 encoding edge).
Structs§
- RelPath
- A validated
/-separated relative path. - Resource
Key - The identity of one gateway resource.
Enums§
- KeyCollection
- The collection a write-half key names (
split_key).
Constants§
- CORE_
KEY_ PREFIX - The prefix that names the
corecollection in the write half’s keys (quick 261102-cef, A2):.core/<collection path>. - PAIR_
UNSYNCED_ TAG_ TYPES - The two tag types a redundant pair cannot carry in a mode collection (debug deploy-tag-redundancy-sync, captured on an 8.3.6 pair).
- TAG_
TYPES - The four tag types the gateway writes under
ignition/for a tag provider, in the order a provider is built (21-02 capture, decision CD5).
Functions§
- collection_
path - Gateway-relative path to collection path.
- core_
key - The
corekey of the collection pathpath. - is_
pair_ unsynced_ tag_ path - Whether the collection path
pathis the type folder of one of thePAIR_UNSYNCED_TAG_TYPES(ignition/tag-definition) or below it. Exact bytes, as every collection path compares. - repo_
path - Collection path to gateway-relative repo path: the exact inverse of
collection_path(CD5), used bydeploy pullto place live files. - resource_
key - The resource a collection path belongs to: module and type from components 1 and 2, the name from component 3 only when a 4th exists (otherwise component 3 is a file of a singleton).
- route
- The write-half key of the collection path
pathon a target ofredundancy(decision D1 of quick 261102-cef): itscore_keywhen the target is a redundant pair andpathis aPAIR_UNSYNCED_TAG_TYPESpath (is_pair_unsynced_tag_path), elsepathitself. The one routing rule plan, apply and verify share. - split_
key - The collection
keynames and its collection path: aCORE_KEY_PREFIXkey iscoreand the rest after the prefix, any other key is the mode collection and the key itself. - tag_
provider - The tag provider directory a gateway-relative
tags/<P>/...path sits in.