host.storage · thing ·

hostStorageContext

A host storage context record carrying schema, schemaVersion, hostFamily, applicationDataRoot, source, and related state.

cpuhosthost.storagemethodsource-examplestoragethingyeho

Read and write bounded application storage through the host contract.

external thing hostStorageContext

Status: source-declared

Fields and methods (9)
text schema
Stores schema as text.
int schemaVersion
Stores schema version as int.
text hostFamily
Stores host family as text.
text applicationDataRoot
Stores application data root as text.
text source
Stores source as text.
bool available
Stores available as bool.
hostStorageContext(text hostFamily, text applicationDataRoot, text source)
Host storage context.
ApplicationDataPath(text vendor, text application) returns text
Application data path. Complete example
Describe() returns text
Describe. Complete example

Use hostStorageContext

A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.

cpu · source-example · type checked

using host.storage

// Read and write bounded application storage through the host contract.
hostStorageContext sample = hostStorageContext("host Family", "application Data Root", "example")
Console.Log(Text.From(sample.schema))
project.mech
manifestVersion = "2"
package = "api.example.host_storage__hoststoragecontext"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.storage"
version = "0.1.0"
path = "../../../yeho/packages/host/storage"

hostStorageContext.ApplicationDataPath

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using host.storage

// Application data path.
hostStorageContext instance = hostStorageContext("host Family", "application Data Root", "example")
text argument_vendor = "argument vendor"
text argument_application = "argument application"
text result = instance.ApplicationDataPath(argument_vendor, argument_application)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_storage__hoststoragecontext"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.storage"
version = "0.1.0"
path = "../../../yeho/packages/host/storage"

hostStorageContext.Describe

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using host.storage

// Describe.
hostStorageContext instance = hostStorageContext("host Family", "application Data Root", "example")
text result = instance.Describe()
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_storage__hoststoragecontext"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.storage"
version = "0.1.0"
path = "../../../yeho/packages/host/storage"
Notes and source

Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.

yeho/packages/host/storage/storage.yh:4