Module holochain_types::app
source · [−]Expand description
Everything to do with App (hApp) installation and uninstallation
An App is a essentially a collection of Cells which are intended to be available for a particular Holochain use-case, such as a microservice used by some UI in a broader application.
Each Cell maintains its own identity separate from any App. Access to Cells can be shared between different Apps.
Modules
Normalized, validated representation of the App Manifest.
Structs
A bundle of an AppManifest and collection of DNAs
Version 1 of the App manifest schema
Builder for AppManifestV1
.
Version 1 of the App manifest schema
Builder for AppManifestV1
.
Normalized, validated representation of the App Manifest.
Cell “slots” correspond to cell entries in the AppManifest.
The DNA portion of an app slot
Description of an app “slot” defined by this app. Slots get filled according to the provisioning rules, as well as by potential runtime clones.
The result of running Cell resolution
The instructions on how to get the DNA to be registered
Representation of all DNAs and Cells available in a given context. When given a DnaVersionSpec, a particular DNA can be selected from this gamut.
We don’t have any notion of DNA versioning other than the hash, but this is a placeholder to indicate the need for it in the future and to start using it in public interfaces.
Defines a criterion for a DNA version to match against.
An AppBundle along with an AgentPubKey and optional InstalledAppId
Information needed to specify a Dna as part of an App
A collection of DnaHashes paired with an AgentPubKey and an app id
An app which has been installed. An installed app is merely its collection of “slots”, associated with an ID.
The common data between apps of any status
Data about an installed Cell. It’s deprecated because it is not used in the new installation scheme using AppBundles.
The instructions on how to get the DNA to be registered
An active app
An app which is either Paused or Disabled, i.e. not Running
Enums
Errors occurring while installing an AppBundle
The possible locations of an AppBundle
Container struct which uses the manifest_version
field to determine
which manifest version to deserialize to.
Rules to determine if and how a Cell will be created for this Dna
The status of an installed app.
A declaration of the side effects of a particular AppStatusTransition.
The AppStatus without the reasons.
Represents a state transition operation from one state to another
Rules to determine if and how a Cell will be created for this Dna
Uninhabitable placeholder
Specifies what step should be taken to provision a cell while installing an App
Possible results of Cell resolution
The reason for an app being in a Disabled state.
Possible results of DNA resolution
The source of the DNA to be installed, either as binary data, or from a path
Allow the DNA version to be specified as a single hash, rather than a singleton list. Just a convenience.
The reason for an app being in a Paused state. NB: there is no way to manually pause an app.
The various reasons for why an App is not in the Running state.
Functions
This function is called in places where it will be necessary to rework that area after use_existing has been implemented
Type Definitions
A friendly (nick)name used by UIs to refer to the Cells which make up the app
Specifies remote, local, or bundled location of DNA
The unique identifier for an installed app in this conductor
A map from InstalledAppId -> InstalledApp
Identifier for an AppSlot